From 635c06c68ec72e579573f87ab86996b5952bf853 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Fri, 29 Jun 2018 16:54:48 -0400 Subject: Add api for querying relocation --- binaryninjaapi.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index e52a3a16..510b392a 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -1042,6 +1042,10 @@ namespace BinaryNinja uint32_t GetFlags() const; bool IsAutoDefined() const; + std::vector> GetRelocationRanges() const; + std::vector> GetRelocationRangesAtAddress(uint64_t addr) const; + uint64_t GetRelocationsCount() const; + void SetStart(uint64_t newSegmentBase); void SetLength(uint64_t length); void SetDataOffset(uint64_t dataOffset); @@ -1227,6 +1231,9 @@ namespace BinaryNinja void DefineRelocation(Architecture* arch, BNRelocationInfo& info, uint64_t target, uint64_t reloc); void DefineRelocation(Architecture* arch, BNRelocationInfo& info, Ref target, uint64_t reloc); + std::vector> GetRelocationRanges() const; + std::vector> GetRelocationRangesAtAddress(uint64_t addr) const; + void RegisterNotification(BinaryDataNotification* notify); void UnregisterNotification(BinaryDataNotification* notify); -- cgit v1.3.1