Trait falcon::loader::Loader
[−]
[src]
pub trait Loader: Clone { fn memory(&self) -> Result<Memory>; fn function_entries(&self) -> Result<Vec<FunctionEntry>>; fn program_entry(&self) -> u64; fn architecture(&self) -> Result<Architecture>; fn function(&self, address: u64) -> Result<Function> { ... } fn program(&self) -> Result<Program> { ... } }
Generic trait for all loaders
Required Methods
fn memory(&self) -> Result<Memory>
Get a model of the memory contained in the binary
fn function_entries(&self) -> Result<Vec<FunctionEntry>>
Get addresses for known function entries
fn program_entry(&self) -> u64
The address program execution should begin at
fn architecture(&self) -> Result<Architecture>
Get the architecture of the binary
Provided Methods
fn function(&self, address: u64) -> Result<Function>
Lift just one function from the executable
fn program(&self) -> Result<Program>
Lift executable into an il::Program