Skip to main content

Module elf

Module elf 

Source
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§

abi
ELF ABI constants.
write
ELF writing helpers.

Structs§

Elf32Layout
Marker for 32-bit ELF class layouts.
Elf32Sym
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.
Elf64Layout
Marker for 64-bit ELF class layouts.
ElfClass
Semantic wrapper for the ELF EI_CLASS field.
ElfDataEncoding
Semantic wrapper for the ELF EI_DATA byte.
ElfDyn
ELF dynamic section entry.
ElfDynamicTag
Semantic wrapper for the ELF d_tag field.
ElfFileType
Semantic wrapper for the ELF e_type field.
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_machine field.
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.
ElfProgramFlags
Bitflags wrapper for the ELF p_flags field.
ElfProgramType
Semantic wrapper for the ELF p_type field.
ElfRel
ELF REL relocation entry.
ElfRela
ELF RELA relocation entry.
ElfRelocationType
Semantic wrapper for the ELF relocation type encoded in r_info.
ElfRelr
ELF RELR relocation entry.
ElfSectionFlags
Bitflags wrapper for the ELF sh_flags field.
ElfSectionId
Stable identifier for a real section-header table entry.
ElfSectionIndex
Semantic wrapper for the ELF symbol st_shndx field.
ElfSectionType
Semantic wrapper for the ELF sh_type field.
ElfShdr
ELF section header describing sections of the ELF file.
ElfSymbol
ELF symbol table entry.
ElfSymbolBind
Semantic wrapper for the ELF symbol binding field.
ElfSymbolType
Semantic wrapper for the ELF symbol type field.
HashTable
Standard dynamic ELF symbol hash table.
Lifecycle
ELF lifecycle functions associated with .init, .init_array, .fini, or .fini_array.
SymbolEntry
Symbol table entry plus its lookup metadata.
SymbolLookup
Symbol lookup request plus reusable hash precomputation state.
SymbolTable
Read-only dynamic symbol table of an ELF file.
SymbolTableView
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.
ElfRelEntry
Common interface shared by ELF REL and RELA relocation entries.

Type Aliases§

ElfRelType
Relocation entry type selected by a target architecture.
NativeElfLayout64-bit
ELF layout matching the host pointer width.