Loading...
Searching...
No Matches
BinaryNinja::CoreRelocationHandler Class Reference

Public Member Functions

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

Additional Inherited Members

Public Attributes inherited from BinaryNinja::CoreRefCountObject< BNRelocationHandler, BNNewRelocationHandlerReference, BNFreeRelocationHandler >
std::atomic< int > m_refs
bool m_registeredRef
BNRelocationHandler * m_object
Protected Member Functions inherited from BinaryNinja::RelocationHandler
 RelocationHandler ()
 RelocationHandler (BNRelocationHandler *handler)
Static Protected Member Functions inherited from BinaryNinja::RelocationHandler
static void FreeCallback (void *ctxt)

Constructor & Destructor Documentation

◆ CoreRelocationHandler()

CoreRelocationHandler::CoreRelocationHandler ( BNRelocationHandler * handler)

Member Function Documentation

◆ GetRelocationInfo()

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

Reimplemented from BinaryNinja::RelocationHandler.

◆ ApplyRelocation()

bool CoreRelocationHandler::ApplyRelocation ( Ref< BinaryView > view,
Ref< Architecture > arch,
Ref< Relocation > reloc,
uint8_t * dest,
size_t len )
overridevirtual

Reimplemented from BinaryNinja::RelocationHandler.

◆ GetOperandForExternalRelocation()

size_t CoreRelocationHandler::GetOperandForExternalRelocation ( const uint8_t * data,
uint64_t addr,
size_t length,
Ref< LowLevelILFunction > il,
Ref< Relocation > relocation )
overridevirtual

Reimplemented from BinaryNinja::RelocationHandler.