Christopher Cole 60970e0798 Pass the underlying reader to utils::read_* macros
This is in preparation to removing the reader from the File
struct. The file struct should be independent of any backing
store to allow for the creation and modification of ELF files
in addition to simple parsing.
2015-02-08 18:19:23 -08:00
2015-01-29 19:41:27 -08:00
2015-01-24 15:33:23 -08:00

Build Status

rust-elf

Pure-Rust library for parsing ELF files

Example:

extern crate elf;

use std::path::Path;

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

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

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

Description
Yggdrasil OS fork of rust-elf library
Readme 1.2 MiB
Languages
Rust 99.9%