lief

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§

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