Revert "Revert "Reland D61583 [ELF] Error on relocations to STT_SECTION symbols if...
commit6ba76dd77952af32d08fa547e8b3984c7816bbd1
authorSean Fertile <sfertile@ca.ibm.com>
Thu, 6 Jun 2019 20:16:53 +0000 (6 20:16 +0000)
committerSean Fertile <sfertile@ca.ibm.com>
Thu, 6 Jun 2019 20:16:53 +0000 (6 20:16 +0000)
treee50976feffe2671ff46ef4114eaf858b1f9a2a5a
parent38c5ee180280816ed9e8ff36afa4520b682d0679
Revert "Revert "Reland D61583 [ELF] Error on relocations to STT_SECTION symbols if the sections were discarded""

This reverts commit 729111cf1824159bb4dd331cab8a829eab30313f.

Reverting the previous commit breaks other LLD buildbots.

llvm-svn: 362743
lld/ELF/DWARF.cpp
lld/ELF/InputFiles.cpp
lld/ELF/InputSection.cpp
lld/ELF/Relocations.cpp
lld/test/ELF/comdat-discarded-error.s
lld/test/ELF/comdat-discarded-gdb-index.s [new file with mode: 0644]
lld/test/ELF/comdat-discarded-reloc.s
lld/test/ELF/comdat.s
lld/test/ELF/invalid-undef-section-symbol.test
lld/test/ELF/relocatable-eh-frame.s