We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6201874 commit 65815a4Copy full SHA for 65815a4
llvm/tools/llvm-nm/llvm-nm.cpp
@@ -1616,6 +1616,11 @@ static void dumpSymbolsFromDLInfoMachO(MachOObjectFile &MachO,
1616
}
1617
// See if these addresses are already in the symbol table.
1618
unsigned FunctionStartsAdded = 0;
1619
+ // The addresses from FoundFns come from LC_FUNCTION_STARTS. Its contents
1620
+ // are delta encoded addresses from the start of __TEXT, ending when zero
1621
+ // is found. Because of this, the addresses should be unique, and even if
1622
+ // we create fake entries on SymbolList in the second loop, SymbolAddresses
1623
+ // should not need to be updated there.
1624
SmallSet<uint64_t, 32> SymbolAddresses;
1625
for (const auto &S : SymbolList)
1626
SymbolAddresses.insert(S.Address);
0 commit comments