Struct ParserConfig
pub struct ParserConfig {
pub parse_relocations: bool,
pub parse_dyn_symbols: bool,
pub parse_symtab_symbols: bool,
pub parse_symbol_versions: bool,
pub parse_notes: bool,
pub parse_overlay: bool,
pub count_mtd: DynSymCount,
pub page_size: u64,
}Expand description
This structure is used to tweak the ELF parser: crate::elf::Binary::parse_with_config
Fields§
§parse_relocations: boolWhether relocations (including plt-like relocations) should be parsed.
parse_dyn_symbols: boolWhether dynamic symbols (those from .dynsym) should be parsed
parse_symtab_symbols: boolWhether debug symbols (those from .symtab) should be parsed
parse_symbol_versions: boolWhether versioning symbols should be parsed
parse_notes: boolWhether ELF notes information should be parsed
parse_overlay: boolWhether the overlay data should be parsed
count_mtd: DynSymCountThe method used to count the number of dynamic symbols
page_size: u64Memory page size if the binary uses a non-standard value.
For instance, SPARCV9 binary can use page size from 0x2000 to 0x100000.
Trait Implementations§
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more