Struct elfloader32::ElfBinary
[−]
[src]
pub struct ElfBinary<'s> { /* fields omitted */ }
Abstract representation of a loadable ELF binary.
Methods
impl<'s> ElfBinary<'s>
[src]
fn new(name: &'s str, region: &'s [u8]) -> Option<ElfBinary<'s>>
Create a new ElfBinary. Makes sure that the provided region has valid ELF magic byte sequence and is big enough to contain at least the ELF file header otherwise it will return None.
fn file_header(&self) -> &'s FileHeader
fn print_program_headers(&self)
Print the program headers.
fn program_headers(&self) -> &'s [ProgramHeader]
Create a slice of the program headers.
fn symbol_name(&self, symbol: &'s Symbol) -> &'s str
fn section_data(&self, section: &'s SectionHeader) -> &'s [u8]
fn section_name(&self, section: &'s SectionHeader) -> &'s str
fn for_each_symbol<F: FnMut(&'s Symbol)>(&self, func: F)
fn section_headers(&self) -> &'s [SectionHeader]
Create a slice of the section headers.