summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/ELFObjectWriter.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2011-10-07 23:29:53 +0000
committerNick Lewycky <nicholas@mxc.ca>2011-10-07 23:29:53 +0000
commit133a16871f4c71d833d9dd354052846dd90d3390 (patch)
tree9637314700ee500d757808070f6bcb52d5b0af81 /llvm/lib/MC/ELFObjectWriter.cpp
parentc6ac5f73882db4784094192c638c6b039219212f (diff)
downloadbcm5719-llvm-133a16871f4c71d833d9dd354052846dd90d3390.tar.gz
bcm5719-llvm-133a16871f4c71d833d9dd354052846dd90d3390.zip
Don't emit the symbol table entry for the .symtab_shndx section either.
llvm-svn: 141440
Diffstat (limited to 'llvm/lib/MC/ELFObjectWriter.cpp')
-rw-r--r--llvm/lib/MC/ELFObjectWriter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/MC/ELFObjectWriter.cpp b/llvm/lib/MC/ELFObjectWriter.cpp
index bb7adb5769a..e0ed86222cf 100644
--- a/llvm/lib/MC/ELFObjectWriter.cpp
+++ b/llvm/lib/MC/ELFObjectWriter.cpp
@@ -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);
OpenPOWER on IntegriCloud