tiny.tldr.formats.elf.format
Defined in formats.elf.
API (50)
Actions
Public operations.
alignForwardalignForwardU64copyIntodecodeSectionHeaderselfSymbolInfohashU64isElfreadHeader: Decodes the file header at the start ofbytes.readSectionHeaderreadSymbol: Decodes one symbol table entry into the parsed symbol shape, by way ofreadSymbolRecord.readSymbolRecord: Decodes one 24-byte ELF64 symbol table entry, stored little-endian, into its on-disk record so the entry's byte layout is read in one place.readU16readU32readU64requireRangesectionBytessectionIsAllocatedstringFromTablesymbolBindingIsExternalDefinitionvalidateAlignmentwriteU16writeU32writeU64
Types and contracts
Public types and contracts.
Header: The ELF64 file header fields a producer picks: object type, machine, entry address, flags, and the offsets, counts and name table index of the program and section header tables.HeaderErrorRelaSectionHeaderSymbolSymbolRecord: The 24-byte on-disk form of an ELF64 symbol table entry, with each field at its file offset.
Namespaces
Public namespaces.
Values and defaults
Public values and defaults.
build_id_fast_desc_sizebuild_id_note_desc_offsetbuild_id_sha1_desc_sizedwarf_eh_pe_datareldwarf_eh_pe_pcreldwarf_eh_pe_sdata4dwarf_eh_pe_udata4eh_frame_hdr_entry_sizeeh_frame_hdr_fixed_sizeehdr_sizegroup_word_sizenative_endianparallel_relocation_thresholdphdr_sizerela_sizerelocations_per_workershdr_sizesym_size
Source
Source: lib/tldr/src/formats/elf/format.zig
zig
pub const record = @import("record.zig");pub const binary = @import("binary.zig");pub const byte = @import("byte.zig");pub const ehdr_size = record.ehdr_size;pub const phdr_size = record.phdr_size;pub const shdr_size = record.shdr_size;pub const sym_size = record.sym_size;pub const rela_size = record.rela_size;pub const group_word_size = record.group_word_size;pub const native_endian = record.native_endian;pub const build_id_note_desc_offset = record.build_id_note_desc_offset;pub const build_id_fast_desc_size = record.build_id_fast_desc_size;pub const build_id_sha1_desc_size = record.build_id_sha1_desc_size;pub const eh_frame_hdr_fixed_size = record.eh_frame_hdr_fixed_size;pub const eh_frame_hdr_entry_size = record.eh_frame_hdr_entry_size;pub const dwarf_eh_pe_udata4 = record.dwarf_eh_pe_udata4;pub const dwarf_eh_pe_sdata4 = record.dwarf_eh_pe_sdata4;pub const dwarf_eh_pe_pcrel = record.dwarf_eh_pe_pcrel;pub const dwarf_eh_pe_datarel = record.dwarf_eh_pe_datarel;pub const parallel_relocation_threshold = record.parallel_relocation_threshold;pub const relocations_per_worker = record.relocations_per_worker;pub const Header = record.Header;pub const HeaderError = record.HeaderError;pub const readHeader = record.readHeader;pub const SectionHeader = record.SectionHeader;pub const sectionIsAllocated = record.sectionIsAllocated;pub const SymbolRecord = record.SymbolRecord;pub const Symbol = record.Symbol;pub const symbolBindingIsExternalDefinition = record.symbolBindingIsExternalDefinition;pub const Rela = record.Rela;pub const sectionBytes = binary.sectionBytes;pub const isElf = binary.isElf;pub const requireRange = binary.requireRange;pub const stringFromTable = binary.stringFromTable;pub const decodeSectionHeaders = binary.decodeSectionHeaders;pub const readSectionHeader = binary.readSectionHeader;pub const readSymbolRecord = binary.readSymbolRecord;pub const readSymbol = binary.readSymbol;pub const validateAlignment = binary.validateAlignment;pub const alignForward = binary.alignForward;pub const alignForwardU64 = binary.alignForwardU64;pub const copyInto = byte.copyInto;pub const elfSymbolInfo = byte.elfSymbolInfo;pub const hashU64 = byte.hashU64;pub const readU16 = byte.readU16;pub const readU32 = byte.readU32;pub const readU64 = byte.readU64;pub const writeU16 = byte.writeU16;pub const writeU32 = byte.writeU32;pub const writeU64 = byte.writeU64;Source: lib/tldr/src/formats/elf/root.zig:7
zig
pub const format = @import("format.zig");Audit
| Definitions | 1 |
|---|---|
| Public names | 1 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |