Mark ELF's first symbol as format specific so that llvm-nm ignores it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186860 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola 2013-07-22 19:24:34 +00:00
parent 1f4492e0b0
commit 30115ec7a3
2 changed files with 3 additions and 1 deletions

View File

@ -1232,7 +1232,8 @@ error_code ELFObjectFile<ELFT>::getSymbolFlags(DataRefImpl Symb,
Result |= SymbolRef::SF_Absolute;
if (symb->getType() == ELF::STT_FILE ||
symb->getType() == ELF::STT_SECTION)
symb->getType() == ELF::STT_SECTION ||
Symb == begin_symbols()->getRawDataRefImpl())
Result |= SymbolRef::SF_FormatSpecific;
if (getSymbolTableIndex(symb) == ELF::SHN_UNDEF)

View File

@ -18,6 +18,7 @@ COFF: U {{_?}}SomeOtherFunction
COFF: 00000000 T {{_?}}main
COFF: U {{_?}}puts
ELF-NOT: U
ELF: U SomeOtherFunction
ELF: 00000000 T main
ELF: U puts