summaryrefslogtreecommitdiff
path: root/view/elf/elfview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'view/elf/elfview.cpp')
-rw-r--r--view/elf/elfview.cpp6
1 files changed, 6 insertions, 0 deletions
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))
{