Struct lief::elf::parser_config::Config
pub struct Config {
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: [lief::elf::Binary::parse_with_config
]
Fields§
§parse_relocations: bool
Whether relocations (including plt-like relocations) should be parsed.
parse_dyn_symbols: bool
Whether dynamic symbols (those from .dynsym
) should be parsed
parse_symtab_symbols: bool
Whether debug symbols (those from .symtab
) should be parsed
parse_symbol_versions: bool
Whether versioning symbols should be parsed
parse_notes: bool
Whether ELF notes information should be parsed
parse_overlay: bool
Whether the overlay data should be parsed
count_mtd: DynSymCount
The method used to count the number of dynamic symbols
page_size: u64
Memory 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 StructuralEq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
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