LIEF: Library to Instrument Executable Formats Version 0.16.0
Loading...
Searching...
No Matches
LIEF::MachO::DyldChainedFixupsCreator Class Reference

#include <DyldChainedFixupsCreator.hpp>

Classes

struct  binding_info_t
 
struct  reloc_info_t
 

Public Member Functions

 DyldChainedFixupsCreator ()=default
 
DyldChainedFixupsCreatorfixups_version (uint32_t value)
 
DyldChainedFixupsCreatorimports_format (DYLD_CHAINED_FORMAT fmt)
 
DyldChainedFixupsCreatoradd_relocation (uint64_t address, uint64_t target)
 
DyldChainedFixupsCreatoradd_relocations (const std::vector< reloc_info_t > &relocations)
 
DyldChainedFixupsCreatoradd_binding (uint64_t address, std::string symbol, std::string library, uint64_t addend=0, bool weak=false)
 
DyldChainedFixupsCreatoradd_binding (uint64_t address, std::string symbol, uint64_t addend=0, bool weak=false)
 
DyldChainedFixupsCreatoradd_bindings (const std::vector< binding_info_t > &bindings)
 
DyldChainedFixupscreate (Binary &target)
 

Static Public Attributes

static constexpr uint32_t MAX_IMPORTS = (uint32_t(1) << 24) - 1
 
static constexpr uint32_t BIND24_THRESHOLD = (uint32_t(1) << 16) - 1
 

Constructor & Destructor Documentation

◆ DyldChainedFixupsCreator()

LIEF::MachO::DyldChainedFixupsCreator::DyldChainedFixupsCreator ( )
default

Member Function Documentation

◆ add_binding() [1/2]

DyldChainedFixupsCreator & LIEF::MachO::DyldChainedFixupsCreator::add_binding ( uint64_t address,
std::string symbol,
std::string library,
uint64_t addend = 0,
bool weak = false )

◆ add_binding() [2/2]

DyldChainedFixupsCreator & LIEF::MachO::DyldChainedFixupsCreator::add_binding ( uint64_t address,
std::string symbol,
uint64_t addend = 0,
bool weak = false )
inline

◆ add_bindings()

DyldChainedFixupsCreator & LIEF::MachO::DyldChainedFixupsCreator::add_bindings ( const std::vector< binding_info_t > & bindings)
inline

◆ add_relocation()

DyldChainedFixupsCreator & LIEF::MachO::DyldChainedFixupsCreator::add_relocation ( uint64_t address,
uint64_t target )

◆ add_relocations()

DyldChainedFixupsCreator & LIEF::MachO::DyldChainedFixupsCreator::add_relocations ( const std::vector< reloc_info_t > & relocations)
inline

◆ create()

DyldChainedFixups * LIEF::MachO::DyldChainedFixupsCreator::create ( Binary & target)

References LIEF::MachO::UNKNOWN.

◆ fixups_version()

DyldChainedFixupsCreator & LIEF::MachO::DyldChainedFixupsCreator::fixups_version ( uint32_t value)
inline

◆ imports_format()

DyldChainedFixupsCreator & LIEF::MachO::DyldChainedFixupsCreator::imports_format ( DYLD_CHAINED_FORMAT fmt)
inline

Member Data Documentation

◆ BIND24_THRESHOLD

uint32_t LIEF::MachO::DyldChainedFixupsCreator::BIND24_THRESHOLD = (uint32_t(1) << 16) - 1
staticconstexpr

◆ MAX_IMPORTS

uint32_t LIEF::MachO::DyldChainedFixupsCreator::MAX_IMPORTS = (uint32_t(1) << 24) - 1
staticconstexpr

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