aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfxx-x86.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2022-11-22 13:58:47 -0800
committerH.J. Lu <hjl.tools@gmail.com>2022-11-22 14:03:16 -0800
commit04ad71937f28561ad5a2bbbc7e8f0af21e1019f8 (patch)
tree2d978f2db649db8a7f5fa0d919ea220d68da8c40 /bfd/elfxx-x86.c
parent26c527e62e701ae256c1af243ec9d73e5560bd48 (diff)
downloadgdb-04ad71937f28561ad5a2bbbc7e8f0af21e1019f8.zip
gdb-04ad71937f28561ad5a2bbbc7e8f0af21e1019f8.tar.gz
gdb-04ad71937f28561ad5a2bbbc7e8f0af21e1019f8.tar.bz2
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.
Diffstat (limited to 'bfd/elfxx-x86.c')
-rw-r--r--bfd/elfxx-x86.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elfxx-x86.c b/bfd/elfxx-x86.c
index c48d038..bbf8688 100644
--- a/bfd/elfxx-x86.c
+++ b/bfd/elfxx-x86.c
@@ -2932,7 +2932,7 @@ _bfd_x86_elf_always_size_sections (bfd *output_bfd,
{
asection *tls_sec = elf_hash_table (info)->tls_sec;
- if (tls_sec)
+ if (tls_sec && !bfd_link_relocatable (info))
{
struct elf_link_hash_entry *tlsbase;