diff options
Diffstat (limited to 'binaryview.cpp')
| -rw-r--r-- | binaryview.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/binaryview.cpp b/binaryview.cpp index 282fff73..85a7cfbe 100644 --- a/binaryview.cpp +++ b/binaryview.cpp @@ -5829,6 +5829,16 @@ optional<pair<string, BNStringType>> BinaryView::StringifyUnicodeData(Architectu } +Ref<Relocation> BinaryView::GetNextRelocation(uint64_t addr, uint64_t maxAddr) +{ + BNRelocation* reloc = BNGetNextRelocation(m_object, addr, maxAddr); + if (!reloc) + return nullptr; + + return new Relocation(reloc); +} + + Relocation::Relocation(BNRelocation* reloc) { m_object = reloc; |
