Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions relocationhandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ bool RelocationHandler::ApplyRelocation(
Ref<BinaryView> view, Ref<Architecture> arch, Ref<Relocation> reloc, uint8_t* dest, size_t len)
{
return BNRelocationHandlerDefaultApplyRelocation(
m_object, view->GetObject(), arch->GetObject(), BNNewRelocationReference(reloc->GetObject()), dest, len);
m_object, view->GetObject(), arch->GetObject(), reloc->GetObject(), dest, len);
}


Expand All @@ -125,7 +125,7 @@ bool CoreRelocationHandler::ApplyRelocation(
Ref<BinaryView> view, Ref<Architecture> arch, Ref<Relocation> reloc, uint8_t* dest, size_t len)
{
return BNRelocationHandlerApplyRelocation(
m_object, view->GetObject(), arch->GetObject(), BNNewRelocationReference(reloc->GetObject()), dest, len);
m_object, view->GetObject(), arch->GetObject(), reloc->GetObject(), dest, len);
}


Expand All @@ -148,5 +148,5 @@ size_t CoreRelocationHandler::GetOperandForExternalRelocation(
const uint8_t* data, uint64_t addr, size_t length, Ref<LowLevelILFunction> il, Ref<Relocation> relocation)
{
return BNRelocationHandlerGetOperandForExternalRelocation(
m_object, data, addr, length, il->GetObject(), BNNewRelocationReference(relocation->GetObject()));
m_object, data, addr, length, il->GetObject(), relocation->GetObject());
}
Loading