diff options
-rw-r--r-- | bfd/ChangeLog | 6 | ||||
-rw-r--r-- | bfd/elf32-i386.c | 1 | ||||
-rw-r--r-- | bfd/elf64-x86-64.c | 1 |
3 files changed, 8 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index fa3d7ea..664c4c7 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2015-02-15 H.J. Lu <hongjiu.lu@intel.com> + + * 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 <amodra@gmail.com> * dwarf2.c (read_rangelist): Correct buffer overflow check diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c index 452ec54..8028b05 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 fd9c726..eef0d60 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); } } |