From 6e4c00a80fa86bcfefba9630a1ea8e2a47bef2de Mon Sep 17 00:00:00 2001 From: Brandon Miller Date: Wed, 28 May 2025 08:33:30 -0400 Subject: Support for Linux x86-64 x32 ABI --- binaryninjaapi.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index ca5b630c..6d5c144c 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -15593,6 +15593,7 @@ namespace BinaryNinja { static void InitViewCallback(void* ctxt, BNBinaryView* view); static uint32_t* GetGlobalRegistersCallback(void* ctxt, size_t* count); static void FreeRegisterListCallback(void* ctxt, uint32_t* regs, size_t count); + static size_t GetAddressSizeCallback(void* ctxt); static BNType* GetGlobalRegisterTypeCallback(void* ctxt, uint32_t reg); static void AdjustTypeParserInputCallback( void* ctxt, @@ -15777,6 +15778,12 @@ namespace BinaryNinja { */ virtual Ref GetGlobalRegisterType(uint32_t reg); + /*! Get the address size for this platform + + \return The address size for this platform + */ + virtual size_t GetAddressSize() const; + /*! Modify the input passed to the Type Parser with Platform-specific features. \param[in] parser Type Parser instance @@ -15904,6 +15911,7 @@ namespace BinaryNinja { std::vector& arguments, std::vector>& sourceFiles ) override; + virtual size_t GetAddressSize() const override; }; /*! -- cgit v1.3.1