Module falcon::loader

source ·
Expand description

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

Loader for a single ELf file.
Loader which links together multiple Elf files.
A helper to build an ElfLinker using the builder pattern.
A declared entry point for a function.
Experimental loader which takes a program specification in Json form.
Loader for a single PE file.

Traits

Generic trait for all loaders