pub trait ElfExt {
    fn load_segment_size(&self) -> usize;
    fn get_symbol_address(&self, symbol: &str) -> Option<u64>;
    fn get_interpreter(&self) -> Result<&str, &str>;
    fn get_phdr_vaddr(&self) -> Option<u64>;
    fn dynsym(&self) -> Result<&[DynEntry64], &'static str>;
    fn relocate(&self, vmar: Arc<VmAddressRegion>) -> Result<(), &'static str>;
}
Expand description

Extensional ELF loading methods for ElfFile.

Required Methods

Get total size of all LOAD segments.

Get address of the given symbol.

Get the program interpreter path name.

Get address of elf phdr

Get the symbol table for dynamic linking (.dynsym section).

Relocate according to the dynamic relocation section (.rel.dyn section).

Implementations on Foreign Types

Implementors