LIEF: Library to Instrument Executable Formats Version 0.15.0
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
LIEF::MachO::ParserConfig Struct Reference

This structure is used to tweak the MachO Parser (MachO::Parser) More...

#include <ParserConfig.hpp>

Public Member Functions

ParserConfigfull_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.
 

Detailed Description

This structure is used to tweak the MachO Parser (MachO::Parser)

Member Function Documentation

◆ full_dyldinfo()

ParserConfig & LIEF::MachO::ParserConfig::full_dyldinfo ( bool flag)

If flag is set to true, Exports, Bindings and Rebases opcodes are parsed.

Warning
Enabling this flag can slow down the parsing

Member Data Documentation

◆ fix_from_memory

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.


The documentation for this struct was generated from the following file: