[ELF][test] Restore linkerscript/symbol-location.s to test getLinkerScriptLocation()
authorFangrui Song <maskray@google.com>
Fri, 31 May 2019 08:20:43 +0000 (08:20 +0000)
committerFangrui Song <maskray@google.com>
Fri, 31 May 2019 08:20:43 +0000 (08:20 +0000)
commit750d148e8fe0c35f850a51a5f75297110ef008ad
tree6d0147dc50f538b78c85af79204666196a7f359d
parent9058b50fb2d33a89ae711071e82e2e85a65d0081
[ELF][test] Restore linkerscript/symbol-location.s to test getLinkerScriptLocation()

The test (the only test that checks getLinkerScriptLocation()) deleted
by r358652 can be restored by replacing R_X86_64_PLT32 with
R_X86_64_PC32, and changing -pie to -shared (preemptable). Then, the
symbol will not be a link-time constant and a -fPIC error will be
issued.

llvm-svn: 362207
lld/test/ELF/linkerscript/symbol-location.s [new file with mode: 0644]