From 5b43c09a23d37c3046320ad2978a1003dfca462c Mon Sep 17 00:00:00 2001 From: Brandon Miller Date: Thu, 21 Aug 2025 22:28:09 -0400 Subject: Apply platform types on Hexagon statically linked binaries --- view/elf/elfview.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'view/elf/elfview.cpp') diff --git a/view/elf/elfview.cpp b/view/elf/elfview.cpp index 5bfcd5c8..2b898ad6 100644 --- a/view/elf/elfview.cpp +++ b/view/elf/elfview.cpp @@ -2561,6 +2561,12 @@ void ElfView::DefineElfSymbol(BNSymbolType type, const string& incomingName, uin } } + if (!typeRef && m_arch->GetName() == "hexagon") + { + // Apply platform types for statically linked Hexagon binaries + typeRef = GetDefaultPlatform()->GetFunctionByName(rawName); + } + // If unable to extract type information, create a default type with the given size and heuristic confidence if (!typeRef && (size > 0 && size <= 8)) { -- cgit v1.3.1