Trait zircon_object::util::elf_loader::ElfExt[][src]

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 dynsym(&self) -> Result<&[DynEntry64], &'static str>;
fn relocate(&self, base: usize) -> Result<(), &'static str>; }

Extensional ELF loading methods for ElfFile.

Required methods

fn load_segment_size(&self) -> usize[src]

Get total size of all LOAD segments.

fn get_symbol_address(&self, symbol: &str) -> Option<u64>[src]

Get address of the given symbol.

fn get_interpreter(&self) -> Result<&str, &str>[src]

Get the program interpreter path name.

fn dynsym(&self) -> Result<&[DynEntry64], &'static str>[src]

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

fn relocate(&self, base: usize) -> Result<(), &'static str>[src]

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

Loading content...

Implementations on Foreign Types

impl ElfExt for ElfFile<'_>[src]

Loading content...

Implementors

Loading content...