mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 20:34:38 +00:00
Don't emit the symbol table entry for the .symtab_shndx section either.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141440 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4a8d43e9a7
commit
d2fdb4a285
@ -302,7 +302,8 @@ void ELFObjectWriter::WriteSymbolTable(MCDataFragment *SymtabF,
|
||||
if (Section.getType() == ELF::SHT_RELA ||
|
||||
Section.getType() == ELF::SHT_REL ||
|
||||
Section.getType() == ELF::SHT_STRTAB ||
|
||||
Section.getType() == ELF::SHT_SYMTAB)
|
||||
Section.getType() == ELF::SHT_SYMTAB ||
|
||||
Section.getType() == ELF::SHT_SYMTAB_SHNDX)
|
||||
continue;
|
||||
WriteSymbolEntry(SymtabF, ShndxF, 0, ELF::STT_SECTION, 0, 0,
|
||||
ELF::STV_DEFAULT, SectionIndexMap.lookup(&Section), false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user