elf_parser

Crates.ioelf_parser
lib.rself_parser
version0.1.1
sourcesrc
created_at2022-01-29 19:13:12.96186
updated_at2022-01-29 19:17:01.684606
descriptionA minimal no_std ELF (32/64) parser.
homepage
repositoryhttps://github.com/gedatsu217/elf_parser
max_upload_size
id523755
size108,601
Shu Anzai (gedatsu217)

documentation

README

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);
    }
}
Commit count: 20

cargo fmt