Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
extern crate goblin;

use goblin::elf;
use std::path::Path;
use std::env;

pub fn main () {
    for (i, arg) in env::args().enumerate() {
        if i == 1 {
            let bin = elf::Elf::from_path(Path::new(arg.as_str()));
            println!("{:#?}", bin);
        }
    }
}