Skip to content

Commit 22a1228

Browse files
committed
[TMS320C6x] Treat LOOP symbol as a block label
1 parent d68a447 commit 22a1228

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

view/elf/elfview.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,8 +1340,9 @@ bool ElfView::Init()
13401340
case ELF_STT_FUNC:
13411341
{
13421342
auto symbolType = FunctionSymbol;
1343-
if (m_plat && m_plat->GetName() == "tms320c6x" && entry->name.find('$') != std::string::npos) {
1344-
// TMS320C6x ELFs use ELF_STT_FUNC symbols for labeling blocks
1343+
if (m_plat && m_plat->GetName() == "tms320c6x" &&
1344+
(entry->name.find('$') != std::string::npos || entry->name == "LOOP")) {
1345+
// TMS320C6x ELFs use ELF_STT_FUNC *$* and LOOP symbols for labeling blocks
13451346
symbolType = LocalLabelSymbol;
13461347
}
13471348
DefineElfSymbol(symbolType, entry->name, entry->value, false, entry->binding);

0 commit comments

Comments
 (0)