tiny.tldr.formats.elf.object
Defined in formats.elf.
API (13)
Actions
Public operations.
build: Plans the layout (the planned file offsets for every record), allocates the output once at the planned size, writes it, and frees the layout, for tests and tools that want the object's bytes in one call.groupBytes: Writes a COMDAT group payload intoout: the COMDAT flag word, then one 32-bit word per member section index.write: Writes one described object intoout, which is exactlylayout.sizebytes, using the layout (the planned file offsets for every record).
Types and contracts
Public types and contracts.
DescriptionErrorHeader: The struct holds the file header fields a producer picks: object type (relocatable by default), machine (x86-64 by default), entry address and flags.Layout: Records where each part of one described object goes in the file: each section's bytes, each relocation section,.symtab,.strtab,.shstrtaband the section header table, along with the total file size.Relocation: Describes one relocation against a described section: the target section's index, the offset inside it, the symbol index, the relocation type and the addend.Section: Describes one section of a description (the values describing a relocatable object), so a caller lists one per section the object carries, in file order.Symbol: Describes one symbol of a description (the values describing a relocatable object), so a description lists one per symbol table entry, locals first.
Namespaces
Public namespaces.
Source
Source: lib/tldr/src/formats/elf/object/root.zig
zig
pub const model = @import("model.zig");pub const layout = @import("layout.zig");pub const writer = @import("write.zig");pub const Error = model.Error;pub const Header = model.Header;pub const Section = model.Section;pub const Symbol = model.Symbol;pub const Relocation = model.Relocation;pub const Description = model.Description;pub const groupBytes = model.groupBytes;pub const Layout = layout.Layout;pub const write = writer.write;pub const build = writer.build;Source: lib/tldr/src/formats/elf/root.zig:17
zig
pub const object = @import("object/root.zig");Audit
| Definitions | 1 |
|---|---|
| Public names | 1 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |