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
 
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 ()
 

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