Expand description
ELF (Executable and Linkable Format) parsing and data structures.
This module provides a collection of types and utilities for working with the ELF format as defined in the System V ABI. It includes support for headers, program headers, section headers, dynamic sections, and symbol tables.
Modules§
Structs§
- Elf32
Layout - Marker for 32-bit ELF class layouts.
- Elf32
Sym - 32-bit ELF symbol table entry.
This struct represents the native 32-bit symbol format used in ELF32 files.
For 64-bit targets, the active native symbol layout resolves to
elf::symbol::Elf64_Sym. - Elf64
Layout - Marker for 64-bit ELF class layouts.
- ElfClass
- Semantic wrapper for the ELF
EI_CLASSfield. - ElfData
Encoding - Semantic wrapper for the ELF
EI_DATAbyte. - ElfDyn
- ELF dynamic section entry.
- ElfDynamic
Tag - Semantic wrapper for the ELF
d_tagfield. - ElfFile
Type - Semantic wrapper for the ELF
e_typefield. - ElfHeader
- Core ELF data types for program headers, relocations, and symbols. A wrapper around the ELF header structure
- ElfMachine
- Semantic wrapper for the ELF
e_machinefield. - ElfNhdr
- ELF note header (
Elf_Nhdr). - ElfNote
- A parsed ELF note view.
- ElfNotes
- Iterator over ELF notes contained in a section or segment payload.
- ElfPhdr
- ELF program header describing segments to be loaded into memory.
- ElfProgram
Flags - Bitflags wrapper for the ELF
p_flagsfield. - ElfProgram
Type - Semantic wrapper for the ELF
p_typefield. - ElfRel
- ELF REL relocation entry.
- ElfRela
- ELF RELA relocation entry.
- ElfRelocation
Type - Semantic wrapper for the ELF relocation type encoded in
r_info. - ElfRelr
- ELF RELR relocation entry.
- ElfSection
Flags - Bitflags wrapper for the ELF
sh_flagsfield. - ElfSection
Id - Stable identifier for a real section-header table entry.
- ElfSection
Index - Semantic wrapper for the ELF symbol
st_shndxfield. - ElfSection
Type - Semantic wrapper for the ELF
sh_typefield. - ElfShdr
- ELF section header describing sections of the ELF file.
- ElfSymbol
- ELF symbol table entry.
- ElfSymbol
Bind - Semantic wrapper for the ELF symbol binding field.
- ElfSymbol
Type - Semantic wrapper for the ELF symbol type field.
- Hash
Table - Standard dynamic ELF symbol hash table.
- Lifecycle
- ELF lifecycle functions associated with
.init,.init_array,.fini, or.fini_array. - Symbol
Entry - Symbol table entry plus its lookup metadata.
- Symbol
Lookup - Symbol lookup request plus reusable hash precomputation state.
- Symbol
Table - Read-only dynamic symbol table of an ELF file.
- Symbol
Table View - Read-only symbol table view shared by dynamic and relocatable symbol tables.
Traits§
- ElfLayout
- Groups the raw ELF types/constants selected for one ELF class.
- ElfRel
Entry - Common interface shared by ELF
RELandRELArelocation entries.
Type Aliases§
- ElfRel
Type - Relocation entry type selected by a target architecture.
- Native
ElfLayout 64-bit - ELF layout matching the host pointer width.