Skip to content

Commit bcc48dc

Browse files
committed
Apply platform types on Hexagon statically linked binaries
1 parent 8572924 commit bcc48dc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

view/elf/elfview.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2561,6 +2561,12 @@ void ElfView::DefineElfSymbol(BNSymbolType type, const string& incomingName, uin
25612561
}
25622562
}
25632563

2564+
if (!typeRef && m_arch->GetName() == "hexagon")
2565+
{
2566+
// Apply platform types for statically linked Hexagon binaries
2567+
typeRef = GetDefaultPlatform()->GetFunctionByName(rawName);
2568+
}
2569+
25642570
// If unable to extract type information, create a default type with the given size and heuristic confidence
25652571
if (!typeRef && (size > 0 && size <= 8))
25662572
{

0 commit comments

Comments
 (0)