summaryrefslogtreecommitdiff
path: root/binaryninjacore.h
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2018-05-12 20:59:22 -0400
committerPeter LaFosse <peter@vector35.com>2018-05-12 20:59:22 -0400
commitbcbf41603888f03beff805415982cc1d9623e2c1 (patch)
tree241763f311ee38d4f6860a896544ee2b00e9986e /binaryninjacore.h
parenta7524ae957f62fded3991152a360c553c99639b6 (diff)
Add support for symbolic relocations
Diffstat (limited to 'binaryninjacore.h')
-rw-r--r--binaryninjacore.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/binaryninjacore.h b/binaryninjacore.h
index f3b34a1d..73ccbd4d 100644
--- a/binaryninjacore.h
+++ b/binaryninjacore.h
@@ -1053,6 +1053,7 @@ extern "C"
size_t (*getAddressSize)(void* ctxt);
bool (*save)(void* ctxt, BNFileAccessor* accessor);
void (*defineRelocation) (void* ctxt, BNArchitecture* arch, BNRelocationInfo* info, uint64_t target, uint64_t reloc);
+ void (*defineSymbolRelocation) (void* ctxt, BNArchitecture* arch, BNRelocationInfo* info, BNSymbol* target, uint64_t reloc);
};
struct BNCustomBinaryViewType
@@ -1993,6 +1994,8 @@ extern "C"
BINARYNINJACOREAPI bool BNSaveToFilename(BNBinaryView* view, const char* filename);
BINARYNINJACOREAPI void BNDefineRelocation(BNBinaryView* view, BNArchitecture* arch, BNRelocationInfo* info,
uint64_t target, uint64_t reloc);
+ BINARYNINJACOREAPI void BNDefineSymbolRelocation(BNBinaryView* view, BNArchitecture* arch, BNRelocationInfo* info,
+ BNSymbol* target, uint64_t reloc);
BINARYNINJACOREAPI void BNRegisterDataNotification(BNBinaryView* view, BNBinaryDataNotification* notify);
BINARYNINJACOREAPI void BNUnregisterDataNotification(BNBinaryView* view, BNBinaryDataNotification* notify);