Struct lief::dsc::dylib::ExtractOpt
pub struct ExtractOpt {
pub pack: bool,
pub fix_branches: bool,
pub fix_memory: bool,
pub fix_relocations: bool,
pub fix_objc: bool,
pub create_dyld_chained_fixup_cmd: Option<bool>,
}
Expand description
This structure is used to tweak the extraction process while calling
Dylib::get_with_opt
. These options allow to deoptimize the dylib and get an
accurate representation of the origin Mach-O binary.
Fields§
§pack: bool
Whether the segment’s offsets should be packed to avoid an in-memory size while writing back the binary.
fix_branches: bool
Fix call instructions that target addresses outside the current dylib virtual space.
crate::dsc::enable_cache
or crate::dsc::DyldSharedCache::enable_caching
fix_memory: bool
Fix memory accesses performed outside the dylib’s virtual space
crate::dsc::enable_cache
or crate::dsc::DyldSharedCache::enable_caching
fix_relocations: bool
Recover and fix relocations
crate::dsc::enable_cache
or crate::dsc::DyldSharedCache::enable_caching
fix_objc: bool
Fix Objective-C information
crate::dsc::enable_cache
or crate::dsc::DyldSharedCache::enable_caching
create_dyld_chained_fixup_cmd: Option<bool>
Whether the LC_DYLD_CHAINED_FIXUPS
command should be (re)created.
If this value is not set, LIEF will add the command only if it’s meaningful regarding the other options