Skip to content

Commit c0813b6

Browse files
committed
[TMS320C6x] Filter out more $ labels from symbols
1 parent 14dd8ce commit c0813b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

view/elf/elfview.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1338,7 +1338,7 @@ bool ElfView::Init()
13381338
DefineElfSymbol(FunctionSymbol, entry->name, entry->value, false, entry->binding);
13391339
break;
13401340
case ELF_STT_FUNC:
1341-
if (!m_plat || m_plat->GetName() != "tms320c6x" || !entry->name.starts_with("$C$")) {
1341+
if (!m_plat || m_plat->GetName() != "tms320c6x" || entry->name.find('$') == std::string::npos) {
13421342
// TMS320C6x ELFs contain function symbols for labeling blocks that aren't actually functions
13431343
DefineElfSymbol(FunctionSymbol, entry->name, entry->value, false, entry->binding);
13441344
}

0 commit comments

Comments
 (0)