Expand description

A minimal no_std ELF (32/64) parser.

Example Usage

use elf_parser::Elf64;

fn main() {
    let bytes = include_bytes!("path/to/elf_file");
    let elf64 = Elf64::from_bytes(bytes).unwrap();
    let ehdr = elf64.ehdr();
    dbg!(ehdr);
     
    let phdr_iter = elf64.phdr_iter();
    for phdr in phdr_iter {     
        dbg!(phdr);
    }
}

Re-exports

pub use elf32::Elf32;
pub use elf32::Elf32Ehdr;
pub use elf32::Elf32Phdr;
pub use elf32::Elf32Shdr;
pub use elf64::Elf64;
pub use elf64::Elf64Ehdr;
pub use elf64::Elf64Phdr;
pub use elf64::Elf64Shdr;

Modules

Enums