[ELF] - Error out when R_X86_64_PC32/R_X86_64_32 are used against preemptible symbol...
authorGeorge Rimar <grimar@accesssoftek.com>
Tue, 29 Mar 2016 08:35:42 +0000 (08:35 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Tue, 29 Mar 2016 08:35:42 +0000 (08:35 +0000)
commit86971050cb3263e4fa3f7735365e21e797f6a1bc
tree35ad641ad47def534216366be7b8a35f71266fbc
parent32ddc544c3a713d713d7f17abb6265453e4b0251
[ELF] - Error out when R_X86_64_PC32/R_X86_64_32 are used against preemptible symbol when linking shared object.

When R_X86_64_PC32/R_X86_64_32 relocations are
used against preemptible symbol and output is position independent,
error should be generated.

Differential revision: http://reviews.llvm.org/D18190

llvm-svn: 264707
lld/ELF/Target.cpp
lld/test/ELF/Inputs/allow-shlib-undefined.s
lld/test/ELF/Inputs/llvm33-rela-outside-group.o
lld/test/ELF/allow-shlib-undefined.s
lld/test/ELF/llvm33-rela-outside-group.s
lld/test/ELF/lto/linkonce-odr.ll
lld/test/ELF/lto/linkonce.ll
lld/test/ELF/no-undefined.s
lld/test/ELF/x86-64-reloc-32-fpic.s [new file with mode: 0644]
lld/test/ELF/x86-64-reloc-pc32-fpic.s [new file with mode: 0644]