Set root.linker_def on _TLS_MODULE_BASE_
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 15 Feb 2015 04:17:10 +0000 (20:17 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 15 Feb 2015 17:56:08 +0000 (09:56 -0800)
* 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
bfd/elf32-i386.c
bfd/elf64-x86-64.c

index fa3d7ea9eea653a2476fda5725d1b742508ff218..664c4c7a6ad2548cb4c5ab3ffc3ad16f67409a22 100644 (file)
@@ -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
index 452ec54bda9a5724f2d6f183ccbed311590af4d8..8028b05bb5d4b9c4d980ca57f0a599cc6d353523 100644 (file)
@@ -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);
        }
     }
index fd9c7265613b77b03a779a836c22abe0a0c5334f..eef0d60036b8ece831c867fbb0a829fcdb350a82 100644 (file)
@@ -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);
        }
     }