LIEF: Library to Instrument Executable Formats Version 0.17.0
|
This structure is used to tweak the MachO Parser (MachO::Parser). More...
#include <ParserConfig.hpp>
Public Member Functions | |
ParserConfig & | full_dyldinfo (bool flag) |
If flag is set to true, Exports, Bindings and Rebases opcodes are parsed. |
Static Public Member Functions | |
static ParserConfig | deep () |
Return a parser configuration such as all the objects supported by LIEF are parsed. | |
static ParserConfig | quick () |
Return a configuration to parse the most important MachO structures. |
Public Attributes | |
bool | parse_dyld_exports = true |
Parse the Dyld export trie. | |
bool | parse_dyld_bindings = true |
Parse the Dyld binding opcodes. | |
bool | parse_dyld_rebases = true |
Parse the Dyld rebase opcodes. | |
bool | parse_overlay = true |
Whether the overlay data should be parsed. | |
bool | fix_from_memory = false |
When parsing Mach-O from memory, this option can be used to undo relocations and symbols bindings. | |
bool | from_dyld_shared_cache = false |
Whether the binary is coming/extracted from Dyld shared cache. |
This structure is used to tweak the MachO Parser (MachO::Parser).
|
static |
Return a parser configuration such as all the objects supported by LIEF are parsed.
Referenced by LIEF::MachO::BinaryParser::parse(), LIEF::MachO::BinaryParser::parse(), LIEF::MachO::Parser::parse(), LIEF::MachO::Parser::parse(), LIEF::MachO::Parser::parse(), LIEF::MachO::Parser::parse_from_memory(), and LIEF::MachO::Parser::parse_from_memory().
ParserConfig & LIEF::MachO::ParserConfig::full_dyldinfo | ( | bool | flag | ) |
If flag is set to true, Exports, Bindings and Rebases opcodes are parsed.
|
static |
Return a configuration to parse the most important MachO structures.
bool LIEF::MachO::ParserConfig::fix_from_memory = false |
When parsing Mach-O from memory, this option can be used to undo relocations and symbols bindings.
When activated, this option requires parse_dyld_bindings and parse_dyld_rebases to be enabled.
bool LIEF::MachO::ParserConfig::from_dyld_shared_cache = false |
Whether the binary is coming/extracted from Dyld shared cache.
bool LIEF::MachO::ParserConfig::parse_dyld_bindings = true |
Parse the Dyld binding opcodes.
bool LIEF::MachO::ParserConfig::parse_dyld_exports = true |
Parse the Dyld export trie.
bool LIEF::MachO::ParserConfig::parse_dyld_rebases = true |
Parse the Dyld rebase opcodes.
bool LIEF::MachO::ParserConfig::parse_overlay = true |
Whether the overlay data should be parsed.