From 224e24b283b8be99415431856e6b63dea7305996 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Mon, 19 Apr 2021 15:39:33 -0400 Subject: Fix Mach-O duplicate symbol handling for external relocations. --- binaryninjacore.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'binaryninjacore.h') diff --git a/binaryninjacore.h b/binaryninjacore.h index 47e0d69d..0115eecf 100644 --- a/binaryninjacore.h +++ b/binaryninjacore.h @@ -28,14 +28,14 @@ // Current ABI version for linking to the core. This is incremented any time // there are changes to the API that affect linking, including new functions, // new types, or modifications to existing functions or types. -#define BN_CURRENT_CORE_ABI_VERSION 4 +#define BN_CURRENT_CORE_ABI_VERSION 5 // Minimum ABI version that is supported for loading of plugins. Plugins that // are linked to an ABI version less than this will not be able to load and // will require rebuilding. The minimum version is increased when there are // incompatible changes that break binary compatibility, such as changes to // existing types or functions. -#define BN_MINIMUM_CORE_ABI_VERSION 3 +#define BN_MINIMUM_CORE_ABI_VERSION 4 #ifdef __GNUC__ # ifdef BINARYNINJACORE_LIBRARY @@ -3836,8 +3836,7 @@ __attribute__ ((format (printf, 1, 2))) BINARYNINJACOREAPI void BNDefineUserSymbol(BNBinaryView* view, BNSymbol* sym); BINARYNINJACOREAPI void BNUndefineUserSymbol(BNBinaryView* view, BNSymbol* sym); BINARYNINJACOREAPI void BNDefineImportedFunction(BNBinaryView* view, BNSymbol* importAddressSym, BNFunction* func, BNType* type); - BINARYNINJACOREAPI void BNDefineAutoSymbolAndVariableOrFunction(BNBinaryView* view, BNPlatform* platform, - BNSymbol* sym, BNType* type); + BINARYNINJACOREAPI BNSymbol* BNDefineAutoSymbolAndVariableOrFunction(BNBinaryView* view, BNPlatform* platform, BNSymbol* sym, BNType* type); BINARYNINJACOREAPI BNSymbol* BNImportedFunctionFromImportAddressSymbol(BNSymbol* sym, uint64_t addr); -- cgit v1.3.1