LIEF: Library to Instrument Executable Formats Version 0.17.0
|
This structure is used to tweak the extraction process while calling Dylib::get. These options allow to deoptimize the dylib and get an accurate representation of the origin Mach-O binary. More...
#include <Dylib.hpp>
Public Member Functions | |
extract_opt_t () | |
Public Attributes | |
bool | pack = true |
Whether the segment's offsets should be packed to avoid an in-memory size while writing back the binary. | |
bool | fix_branches = false |
Fix call instructions that target addresses outside the current dylib virtual space. | |
bool | fix_memory = false |
Fix memory accesses performed outside the dylib's virtual space. | |
bool | fix_relocations = false |
Recover and fix relocations. | |
bool | fix_objc = false |
Fix Objective-C information. | |
LIEF::result< bool > | create_dyld_chained_fixup_cmd |
Whether the LC_DYLD_CHAINED_FIXUPS command should be (re)created. | |
This structure is used to tweak the extraction process while calling Dylib::get. These options allow to deoptimize the dylib and get an accurate representation of the origin Mach-O binary.
LIEF::dsc::Dylib::extract_opt_t::extract_opt_t | ( | ) |
LIEF::result<bool> LIEF::dsc::Dylib::extract_opt_t::create_dyld_chained_fixup_cmd |
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
bool LIEF::dsc::Dylib::extract_opt_t::fix_branches = false |
Fix call instructions that target addresses outside the current dylib virtual space.
bool LIEF::dsc::Dylib::extract_opt_t::fix_memory = false |
Fix memory accesses performed outside the dylib's virtual space.
bool LIEF::dsc::Dylib::extract_opt_t::fix_objc = false |
Fix Objective-C information.
bool LIEF::dsc::Dylib::extract_opt_t::fix_relocations = false |
Recover and fix relocations.
bool LIEF::dsc::Dylib::extract_opt_t::pack = true |
Whether the segment's offsets should be packed to avoid an in-memory size while writing back the binary.