diff options
| author | Peter LaFosse <peter@vector35.com> | 2018-06-29 16:54:48 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2018-06-29 16:54:48 -0400 |
| commit | 635c06c68ec72e579573f87ab86996b5952bf853 (patch) | |
| tree | cd6a95bc6066f3bfb534611be7db614b3886e131 /binaryninjaapi.h | |
| parent | d0c07251a780ca3b638b2cdff0afa00c92aea421 (diff) | |
Add api for querying relocation
Diffstat (limited to 'binaryninjaapi.h')
| -rw-r--r-- | binaryninjaapi.h | 7 |
1 files changed, 7 insertions, 0 deletions
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<std::pair<uint64_t, uint64_t>> GetRelocationRanges() const; + std::vector<std::pair<uint64_t, uint64_t>> 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<Symbol> target, uint64_t reloc); + std::vector<std::pair<uint64_t, uint64_t>> GetRelocationRanges() const; + std::vector<std::pair<uint64_t, uint64_t>> GetRelocationRangesAtAddress(uint64_t addr) const; + void RegisterNotification(BinaryDataNotification* notify); void UnregisterNotification(BinaryDataNotification* notify); |
