Add a compile-time test for PR ld/22263
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 12 Oct 2017 21:41:22 +0000 (14:41 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 12 Oct 2017 21:55:01 +0000 (14:55 -0700)
commit74ffa566739c7e98568a9aa8b5ab8d8f3730d30d
tree5c0589c5e2a8bd184a02a867740062666d005964
parenta900ff724a725ea951ba8b17232577e1a4b4866e
Add a compile-time test for PR ld/22263

This compile-time test requires a target C compiler to run.  It fails
on many targets where ELF backend linkers incorrectly check bfd_link_pic
for TLS relocations, which should check bfd_link_executable instead.

PR ld/22263
* testsuite/ld-elf/pr22263-1.rd: New file.
* testsuite/ld-elf/pr22263-1a.c: Likewise.
* testsuite/ld-elf/pr22263-1b.c: Likewise.
* testsuite/ld-elf/tls.exp: Likewise.
ld/ChangeLog
ld/testsuite/ld-elf/pr22263-1.rd [new file with mode: 0644]
ld/testsuite/ld-elf/pr22263-1a.c [new file with mode: 0644]
ld/testsuite/ld-elf/pr22263-1b.c [new file with mode: 0644]
ld/testsuite/ld-elf/tls.exp [new file with mode: 0644]