[ELF][PPC32] Don't report "relocation refers to a discarded section" for .got2
authorFangrui Song <maskray@google.com>
Sun, 1 Mar 2020 02:40:58 +0000 (18:40 -0800)
committerFangrui Song <maskray@google.com>
Mon, 2 Mar 2020 03:54:40 +0000 (19:54 -0800)
commit315f8a55f504f5b6073fe62b55a30ad5c21957a1
tree992d59e9bff334bfb66ab8547dc1fba00561ccf6
parentbfdb834bc3d5e948002e5061a4c50d5c9a97de59
[ELF][PPC32] Don't report "relocation refers to a discarded section" for .got2

Similar to D63182 [ELF][PPC64] Don't report "relocation refers to a discarded section" for .toc

Reviewed By: Bdragon28

Differential Revision: https://reviews.llvm.org/D75419
lld/ELF/InputSection.cpp
lld/ELF/Relocations.cpp
lld/test/ELF/comdat-discarded-ppc32.s [new file with mode: 0644]