x86: Check the versioned __tls_get_addr symbol
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 20 Jan 2018 22:25:24 +0000 (14:25 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 20 Jan 2018 22:29:36 +0000 (14:29 -0800)
commit8a1b824af786989f879ab1421a4279f60bba141a
treef65b22a2b06df3077fd57cb0978c81fc28d320ea
parent44301db1ac68cd26c559df225fe6d1bbc96638a0
x86: Check the versioned __tls_get_addr symbol

We need to check the versioned __tls_get_addr symbol when looking up
"__tls_get_addr".

bfd/

PR ld/22721
* elfxx-x86.c (_bfd_x86_elf_link_check_relocs): Check the
versioned __tls_get_addr symbol.

ld/

PR ld/22721
* testsuite/ld-plugin/lto.exp: Run PR ld/22721 tests.
* testsuite/ld-plugin/pr22721.t: New file.
* testsuite/ld-plugin/pr22721a.s: Likewise.
* testsuite/ld-plugin/pr22721b.c: Likewise.
bfd/ChangeLog
bfd/elfxx-x86.c
ld/ChangeLog
ld/testsuite/ld-plugin/lto.exp
ld/testsuite/ld-plugin/pr22721.t [new file with mode: 0644]
ld/testsuite/ld-plugin/pr22721a.s [new file with mode: 0644]
ld/testsuite/ld-plugin/pr22721b.c [new file with mode: 0644]