BinaryNinja::RelocationHandler Class Reference

Public Member Functions

virtual bool GetRelocationInfo (Ref< BinaryView > view, Ref< Architecture > arch, std::vector< BNRelocationInfo > &result)
 
virtual bool ApplyRelocation (Ref< BinaryView > view, Ref< Architecture > arch, Ref< Relocation > reloc, uint8_t *dest, size_t len)
 
virtual size_t GetOperandForExternalRelocation (const uint8_t *data, uint64_t addr, size_t length, Ref< LowLevelILFunction > il, Ref< Relocation > relocation)
 
- Public Member Functions inherited from BinaryNinja::CoreRefCountObject< BNRelocationHandler, BNNewRelocationHandlerReference, BNFreeRelocationHandler >
 CoreRefCountObject ()
 
virtual ~CoreRefCountObject ()
 
BNRelocationHandlerGetObject () const
 
void AddRef ()
 
void Release ()
 
void AddRefForRegistration ()
 
void ReleaseForRegistration ()
 
void AddRefForCallback ()
 
void ReleaseForCallback ()
 

Protected Member Functions

 RelocationHandler ()
 
 RelocationHandler (BNRelocationHandler *handler)
 

Static Protected Member Functions

static void FreeCallback (void *ctxt)
 

Additional Inherited Members

- Static Public Member Functions inherited from BinaryNinja::CoreRefCountObject< BNRelocationHandler, BNNewRelocationHandlerReference, BNFreeRelocationHandler >
static BNRelocationHandlerGetObject (CoreRefCountObject *obj)
 
static BNRelocationHandlerGetObject (const CoreRefCountObject *obj)
 
- Public Attributes inherited from BinaryNinja::CoreRefCountObject< BNRelocationHandler, BNNewRelocationHandlerReference, BNFreeRelocationHandler >
std::atomic< int > m_refs
 
bool m_registeredRef
 
BNRelocationHandlerm_object
 

Constructor & Destructor Documentation

◆ RelocationHandler() [1/2]

RelocationHandler::RelocationHandler ( )
protected

◆ RelocationHandler() [2/2]

RelocationHandler::RelocationHandler ( BNRelocationHandler handler)
protected

Member Function Documentation

◆ FreeCallback()

void RelocationHandler::FreeCallback ( void *  ctxt)
staticprotected

◆ GetRelocationInfo()

bool RelocationHandler::GetRelocationInfo ( Ref< BinaryView view,
Ref< Architecture arch,
std::vector< BNRelocationInfo > &  result 
)
virtual

◆ ApplyRelocation()

bool RelocationHandler::ApplyRelocation ( Ref< BinaryView view,
Ref< Architecture arch,
Ref< Relocation reloc,
uint8_t *  dest,
size_t  len 
)
virtual

◆ GetOperandForExternalRelocation()

size_t RelocationHandler::GetOperandForExternalRelocation ( const uint8_t *  data,
uint64_t  addr,
size_t  length,
Ref< LowLevelILFunction il,
Ref< Relocation relocation 
)
virtual