x86: Don't define _TLS_MODULE_BASE_ for ld -r
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 22 Nov 2022 21:58:47 +0000 (13:58 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 22 Nov 2022 22:03:16 +0000 (14:03 -0800)
commit04ad71937f28561ad5a2bbbc7e8f0af21e1019f8
tree2d978f2db649db8a7f5fa0d919ea220d68da8c40
parent26c527e62e701ae256c1af243ec9d73e5560bd48
x86: Don't define _TLS_MODULE_BASE_ for ld -r

bfd/

PR ld/29820
* elfxx-x86.c (_bfd_x86_elf_always_size_sections): Don't define
 _TLS_MODULE_BASE_ for ld -r.

ld/

PR ld/29820
* testsuite/ld-x86-64/pr29820.d: New file.
* testsuite/ld-x86-64/pr29820.s: Likewise.
* testsuite/ld-x86-64/x86-64.ex: Run pr29820.
bfd/elfxx-x86.c
ld/testsuite/ld-x86-64/pr29820.d [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr29820.s [new file with mode: 0644]
ld/testsuite/ld-x86-64/x86-64.exp