Struct Config
pub struct Config {Show 22 fields
pub dt_hash: bool,
pub dyn_str: bool,
pub dynamic_section: bool,
pub fini_array: bool,
pub gnu_hash: bool,
pub init_array: bool,
pub interpreter: bool,
pub jmprel: bool,
pub notes: bool,
pub preinit_array: bool,
pub relr: bool,
pub android_rela: bool,
pub rela: bool,
pub static_symtab: bool,
pub sym_verdef: bool,
pub sym_verneed: bool,
pub sym_versym: bool,
pub symtab: bool,
pub coredump_notes: bool,
pub force_relocate: bool,
pub keep_empty_version_requirement: bool,
pub skip_dynamic: bool,
}Expand description
Structure used to configure the crate::elf::Binary::write_with_config operation
Fields§
§dt_hash: boolRebuild DT_HASH
dyn_str: boolRebuild DT_STRTAB
dynamic_section: boolRebuild PT_DYNAMIC segment
fini_array: boolRebuild DT_FINI_ARRAY
gnu_hash: boolRebuild DT_GNU_HASH
init_array: boolRebuild DT_INIT_ARRAY
interpreter: boolRebuild PT_INTERPRETER
jmprel: boolRebuild DT_JMPREL
notes: boolRebuild notes sections
preinit_array: boolRebuild DT_PREINIT_ARRAY
relr: boolRebuild DT_RELR
android_rela: boolRebuild DT_ANDROID_REL[A]
rela: boolRebuild DT_REL[A]
static_symtab: boolRebuild .symtab
sym_verdef: boolRebuild DT_VERDEF
sym_verneed: boolRebuild DT_VERNEED
sym_versym: boolRebuild DT_VERSYM
symtab: boolRebuild DT_SYMTAB
coredump_notes: boolRebuild the Coredump notes
force_relocate: boolForce to relocating all the ELF structures that are supported by LIEF (mostly for testing)
keep_empty_version_requirement: boolRemove entries in .gnu.version_r if they are not associated with at least one version
skip_dynamic: boolSkip relocating the PT_DYNAMIC segment (only relevant if Config::keep_empty_version_requirement is set)
Trait Implementations§
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