10 releases

Uses old Rust 2015

0.0.10 Sep 23, 2016
0.0.9 Apr 21, 2016
0.0.6 Jan 12, 2016
0.0.5 Jul 24, 2015
0.0.2 Jan 29, 2015

#13 in #elf

Download history 829/week @ 2021-01-12 1016/week @ 2021-01-19 445/week @ 2021-01-26 986/week @ 2021-02-02 1097/week @ 2021-02-09 673/week @ 2021-02-16 1432/week @ 2021-02-23 1143/week @ 2021-03-02 699/week @ 2021-03-09 564/week @ 2021-03-16 1670/week @ 2021-03-23 901/week @ 2021-03-30 1048/week @ 2021-04-06 1496/week @ 2021-04-13 844/week @ 2021-04-20 891/week @ 2021-04-27

3,558 downloads per month
Used in 17 crates (16 directly)

MIT/Apache

43KB
931 lines

Build Status

rust-elf

Pure-Rust library for parsing ELF files

Documentation

Example:

extern crate elf;

use std::env;
use std::path::PathBuf;

let path = PathBuf::from("/some/file/path");
let file = match elf::File::open_path(&path) {
    Ok(f) => f,
    Err(e) => panic!("Error: {:?}", e),
};

let text_scn = match file.get_section(".text") {
    Some(s) => s,
    None => panic!("Failed to look up .text section"),
};

println!("{}", text_scn.data);

Dependencies

~165KB