Module elf
Expand description
Module for the ELF file format support in LIEF.
The Binary structure exposes the main API to inspect an ELF file. It can be instantiated,
using either: crate::elf::parse, crate::elf::Binary::parse or crate::Binary::parse
let elf = lief::elf::parse("/bin/ls").unwrap();
for section in elf.sections() {
println!("section: {}", section.name());
}Modules§
Structs§
- This is the main interface to read and write ELF binary attributes.
- Structure that wraps the GNU-hash implementation
- Class which represents the ELF’s header. This class mirrors the raw ELF
Elfxx_Ehdrstructure - This structure is used to tweak the ELF parser:
crate::elf::Binary::parse_with_config - Structure which represents an ELF relocation
- Structure which represents an ELF Section
- Structure which represents an ELF segment
- Structure which represents an ELF symbol
- Structure which represents an entry defined in the
DT_VERSYMdynamic entry - Structure which represents an entry defined in
DT_VERDEFor.gnu.version_d - Structure which represents an entry in the
DT_VERNEEDor.gnu.version_rtable - This structure wraps the sysv-hash info
Enums§
- Enum that represents the different variants of a dynamic entry
- The different notes recognized and supported by LIEF
- Strategy used for relocating the PHDR table
- Strategy for inserting a new section
Functions§
- Check that the layout of the given binary is correct
- Parse an ELF file from the given filepath
- Parse an ELF file from the given filepath and configuration