mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 00:20:25 +00:00
llvm-nm: Don't print mapping symbols.
This matches the behavior of gnu nm. Fixes pr23930. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240695 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -394,6 +394,15 @@ uint32_t ELFObjectFile<ELFT>::getSymbolFlags(DataRefImpl Symb) const {
|
||||
EIter == EF.begin_symbols() || EIter == EF.begin_dynamic_symbols())
|
||||
Result |= SymbolRef::SF_FormatSpecific;
|
||||
|
||||
if (EF.getHeader()->e_machine == ELF::EM_ARM) {
|
||||
if (ErrorOr<StringRef> NameOrErr = EF.getSymbolName(EIter)) {
|
||||
StringRef Name = *NameOrErr;
|
||||
if (Name.startswith("$d") || Name.startswith("$t") ||
|
||||
Name.startswith("$a"))
|
||||
Result |= SymbolRef::SF_FormatSpecific;
|
||||
}
|
||||
}
|
||||
|
||||
if (ESym->st_shndx == ELF::SHN_UNDEF)
|
||||
Result |= SymbolRef::SF_Undefined;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user