From 576fa8831a7334ef5be41d9f3dc72a92bc227979 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Sat, 14 Feb 2015 20:17:10 -0800 Subject: [PATCH] Set root.linker_def on _TLS_MODULE_BASE_ * elf32-i386.c (elf_i386_always_size_sections): Set root.linker_def on _TLS_MODULE_BASE_. * elf64-x86-64.c (elf_x86_64_always_size_sections): Likewise. --- bfd/ChangeLog | 6 ++++++ bfd/elf32-i386.c | 1 + bfd/elf64-x86-64.c | 1 + 3 files changed, 8 insertions(+) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index fa3d7ea9eea..664c4c7a6ad 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2015-02-15 H.J. Lu + + * elf32-i386.c (elf_i386_always_size_sections): Set root.linker_def + on _TLS_MODULE_BASE_. + * elf64-x86-64.c (elf_x86_64_always_size_sections): Likewise. + 2015-02-15 Alan Modra * dwarf2.c (read_rangelist): Correct buffer overflow check diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c index 452ec54bda9..8028b05bb5d 100644 --- a/bfd/elf32-i386.c +++ b/bfd/elf32-i386.c @@ -3143,6 +3143,7 @@ elf_i386_always_size_sections (bfd *output_bfd, tlsbase = (struct elf_link_hash_entry *)bh; tlsbase->def_regular = 1; tlsbase->other = STV_HIDDEN; + tlsbase->root.linker_def = 1; (*bed->elf_backend_hide_symbol) (info, tlsbase, TRUE); } } diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c index fd9c7265613..eef0d60036b 100644 --- a/bfd/elf64-x86-64.c +++ b/bfd/elf64-x86-64.c @@ -3409,6 +3409,7 @@ elf_x86_64_always_size_sections (bfd *output_bfd, tlsbase = (struct elf_link_hash_entry *)bh; tlsbase->def_regular = 1; tlsbase->other = STV_HIDDEN; + tlsbase->root.linker_def = 1; (*bed->elf_backend_hide_symbol) (info, tlsbase, TRUE); } } -- 2.39.5