elf_parser 0.1.1

A minimal no_std ELF (32/64) parser.
Documentation
  • Coverage
  • 15.28%
    33 out of 216 items documented0 out of 43 items with examples
  • Size
  • Source code size: 108.6 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.23 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • gedatsu217/elf_parser
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • gedatsu217

elf_parser

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_res in phdr_iter {
        let phdr = phdr_res.unwrap();        
        dbg!(phdr);
    }
}