Module falcon::loader[][src]

Loading executable binaries into Falcon.

use falcon::loader::Elf;
use falcon::loader::Loader;
use std::path::Path;

// Load an elf for analysis
let elf = Elf::from_file(Path::new("test_binaries/simple-0/simple-0"))?;
// Lift a program from the elf
let program = elf.program()?;
for function in program.functions() {
    println!("0x{:08x}: {}", function.address(), function.name());
}

Structs

Elf

Loader for a single ELf file.

ElfLinker

Loader which links together multiple Elf files.

ElfLinkerBuilder

A helper to build an ElfLinker using the builder pattern.

FunctionEntry

A declared entry point for a function.

Json

Experimental loader which takes a program specification in Json form.

Pe

Loader for a single ELf file.

Symbol

Traits

Loader

Generic trait for all loaders