Skip to content

Commit fd4f452

Browse files
committed
Do not define symbols from mapping symbols
1 parent 859bd3e commit fd4f452

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

view/elf/elfview.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1283,6 +1283,9 @@ bool ElfView::Init()
12831283
// handle long form symbols
12841284
if (auto pos = entryName.find(".", 2); (pos != std::string::npos))
12851285
{
1286+
// These mapping symbols do not define actual names
1287+
if (entryName[0] == '$' && (entryName[1] == 'x' || entryName[1] == 'a' || entryName[1] == 'd'))
1288+
continue;
12861289
entryName = entryName.substr(pos + 1);
12871290
if (entryName.size())
12881291
DefineElfSymbol(isMappingFunctionSymbol ? FunctionSymbol : DataSymbol, entryName, entry->value, false, entry->binding, entry->size);

0 commit comments

Comments
 (0)