mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
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:
parent
1f4492e0b0
commit
30115ec7a3
@ -1232,7 +1232,8 @@ error_code ELFObjectFile<ELFT>::getSymbolFlags(DataRefImpl Symb,
|
|||||||
Result |= SymbolRef::SF_Absolute;
|
Result |= SymbolRef::SF_Absolute;
|
||||||
|
|
||||||
if (symb->getType() == ELF::STT_FILE ||
|
if (symb->getType() == ELF::STT_FILE ||
|
||||||
symb->getType() == ELF::STT_SECTION)
|
symb->getType() == ELF::STT_SECTION ||
|
||||||
|
Symb == begin_symbols()->getRawDataRefImpl())
|
||||||
Result |= SymbolRef::SF_FormatSpecific;
|
Result |= SymbolRef::SF_FormatSpecific;
|
||||||
|
|
||||||
if (getSymbolTableIndex(symb) == ELF::SHN_UNDEF)
|
if (getSymbolTableIndex(symb) == ELF::SHN_UNDEF)
|
||||||
|
@ -18,6 +18,7 @@ COFF: U {{_?}}SomeOtherFunction
|
|||||||
COFF: 00000000 T {{_?}}main
|
COFF: 00000000 T {{_?}}main
|
||||||
COFF: U {{_?}}puts
|
COFF: U {{_?}}puts
|
||||||
|
|
||||||
|
ELF-NOT: U
|
||||||
ELF: U SomeOtherFunction
|
ELF: U SomeOtherFunction
|
||||||
ELF: 00000000 T main
|
ELF: 00000000 T main
|
||||||
ELF: U puts
|
ELF: U puts
|
||||||
|
Loading…
x
Reference in New Issue
Block a user