summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl@lucon.org>2009-09-24 15:56:52 +0000
committerH.J. Lu <hjl@lucon.org>2009-09-24 15:56:52 +0000
commit249dbd0a1eb89b6848d40b0c77f872a11f34033b (patch)
tree601a8838b391b60610900ddf54d2c842108c8e87
parent022a2f9d843bad054506f811fc21b60a2062ee36 (diff)
downloadbinutils-redhat-249dbd0a1eb89b6848d40b0c77f872a11f34033b.tar.gz
bfd/
2009-09-24 H.J. Lu <hongjiu.lu@intel.com> PR ld/10630 * elflink.c (elf_link_output_extsym): Turn off visibility on local symbol. (bfd_elf_final_link): Turn off visibility on dynamic local symbol. ld/testsuite/ 2009-09-24 H.J. Lu <hongjiu.lu@intel.com> PR ld/10630 * ld-alpha/tlsbin.rd: Remove HIDDEN/.hidden on local symbols. * ld-alpha/tlsbinr.rd: Likewise. * ld-alpha/tlspic.rd: Likewise. * ld-cris/libdso-2.d: Likewise. * ld-cris/locref1.d: Likewise. * ld-cris/locref2.d: Likewise. * ld-cris/tls-e-20a.d: Likewise. * ld-cris/tls-e-20.d: Likewise. * ld-cris/tls-e-80.d: Likewise. * ld-cris/tls-gc-68.d: Likewise. * ld-cris/tls-gc-69.d: Likewise. * ld-cris/tls-gc-70.d: Likewise. * ld-cris/tls-gc-75.d: Likewise. * ld-cris/tls-gc-76.d: Likewise. * ld-cris/tls-gc-79.d: Likewise. * ld-cris/tls-gd-1h.d: Likewise. * ld-cris/tls-gd-2h.d: Likewise. * ld-cris/tls-ld-4.d: Likewise. * ld-cris/tls-ld-5.d: Likewise. * ld-cris/tls-ld-6.d: Likewise. * ld-cris/tls-ld-7.d: Likewise. * ld-cris/tls-ldgd-14.d: Likewise. * ld-cris/tls-ldgd-15.d: Likewise. * ld-cris/tls-local-63.d: Likewise. * ld-cris/tls-local-64.d: Likewise. * ld-elf/pr9676.rd: Likewise. * ld-elf/pr9679.rd: Likewise. * ld-elfvsb/hidden2.d: Likewise. * ld-i386/tlsbindesc.rd: Likewise. * ld-i386/tlsbin.rd: Likewise. * ld-i386/tlsdesc.rd: Likewise. * ld-i386/tlsgdesc.rd: Likewise. * ld-i386/tlsnopic.rd: Likewise. * ld-i386/tlspic.rd: Likewise. * ld-ia64/tlsbin.rd: Likewise. * ld-ia64/tlspic.rd: Likewise. * ld-powerpc/tlsexe32.r: Likewise. * ld-powerpc/tlsexe.r: Likewise. * ld-powerpc/tlsexetoc.r: Likewise. * ld-powerpc/tlsso32.r: Likewise. * ld-powerpc/tlsso.r: Likewise. * ld-powerpc/tlstocso.r: Likewise. * ld-s390/tlsbin_64.rd: Likewise. * ld-s390/tlsbin.rd: Likewise. * ld-s390/tlspic_64.rd: Likewise. * ld-s390/tlspic.rd: Likewise. * ld-sparc/gotop32.rd: Likewise. * ld-sparc/gotop64.rd: Likewise. * ld-sparc/tlssunbin32.rd: Likewise. * ld-sparc/tlssunbin64.rd: Likewise. * ld-sparc/tlssunnopic32.rd: Likewise. * ld-sparc/tlssunnopic64.rd: Likewise. * ld-sparc/tlssunpic32.rd: Likewise. * ld-sparc/tlssunpic64.rd: Likewise. * ld-x86-64/tlsbindesc.rd: Likewise. * ld-x86-64/tlsbin.rd: Likewise. * ld-x86-64/tlsdesc.rd: Likewise. * ld-x86-64/tlsgdesc.rd: Likewise. * ld-x86-64/tlspic.rd: Likewise. * ld-xtensa/tlsbin.rd: Likewise. * ld-xtensa/tlspic.rd: Likewise. * ld-elf/local1.d: New. * ld-elf/local1.map: Likewise. * ld-elf/local1.s: Likewise. * ld-ia64/local1.d: Likewise. * ld-ia64/local1.map: Likewise. * ld-ia64/local1.s: Likewise.
-rw-r--r--bfd/ChangeLog8
-rw-r--r--bfd/elflink.c12
-rw-r--r--ld/testsuite/ChangeLog72
-rw-r--r--ld/testsuite/ld-alpha/tlsbin.rd6
-rw-r--r--ld/testsuite/ld-alpha/tlsbinr.rd6
-rw-r--r--ld/testsuite/ld-alpha/tlspic.rd38
-rw-r--r--ld/testsuite/ld-cris/libdso-2.d4
-rw-r--r--ld/testsuite/ld-cris/locref1.d2
-rw-r--r--ld/testsuite/ld-cris/locref2.d2
-rw-r--r--ld/testsuite/ld-cris/tls-e-20.d2
-rw-r--r--ld/testsuite/ld-cris/tls-e-20a.d2
-rw-r--r--ld/testsuite/ld-cris/tls-e-80.d2
-rw-r--r--ld/testsuite/ld-cris/tls-gc-68.d2
-rw-r--r--ld/testsuite/ld-cris/tls-gc-69.d2
-rw-r--r--ld/testsuite/ld-cris/tls-gc-70.d2
-rw-r--r--ld/testsuite/ld-cris/tls-gc-75.d2
-rw-r--r--ld/testsuite/ld-cris/tls-gc-76.d2
-rw-r--r--ld/testsuite/ld-cris/tls-gc-79.d2
-rw-r--r--ld/testsuite/ld-cris/tls-gd-1h.d2
-rw-r--r--ld/testsuite/ld-cris/tls-gd-2h.d2
-rw-r--r--ld/testsuite/ld-cris/tls-ld-4.d2
-rw-r--r--ld/testsuite/ld-cris/tls-ld-5.d4
-rw-r--r--ld/testsuite/ld-cris/tls-ld-6.d2
-rw-r--r--ld/testsuite/ld-cris/tls-ld-7.d4
-rw-r--r--ld/testsuite/ld-cris/tls-ldgd-14.d4
-rw-r--r--ld/testsuite/ld-cris/tls-ldgd-15.d4
-rw-r--r--ld/testsuite/ld-cris/tls-local-63.d2
-rw-r--r--ld/testsuite/ld-cris/tls-local-64.d2
-rw-r--r--ld/testsuite/ld-elf/pr9676.rd2
-rw-r--r--ld/testsuite/ld-elf/pr9679.rd2
-rw-r--r--ld/testsuite/ld-elfvsb/hidden2.d2
-rw-r--r--ld/testsuite/ld-i386/tlsbin.rd4
-rw-r--r--ld/testsuite/ld-i386/tlsbindesc.rd6
-rw-r--r--ld/testsuite/ld-i386/tlsdesc.rd38
-rw-r--r--ld/testsuite/ld-i386/tlsgdesc.rd4
-rw-r--r--ld/testsuite/ld-i386/tlsnopic.rd12
-rw-r--r--ld/testsuite/ld-i386/tlspic.rd36
-rw-r--r--ld/testsuite/ld-ia64/tlsbin.rd4
-rw-r--r--ld/testsuite/ld-ia64/tlspic.rd36
-rw-r--r--ld/testsuite/ld-powerpc/tlsexe.r2
-rw-r--r--ld/testsuite/ld-powerpc/tlsexe32.r4
-rw-r--r--ld/testsuite/ld-powerpc/tlsexetoc.r2
-rw-r--r--ld/testsuite/ld-powerpc/tlsso.r2
-rw-r--r--ld/testsuite/ld-powerpc/tlsso32.r4
-rw-r--r--ld/testsuite/ld-powerpc/tlstocso.r2
-rw-r--r--ld/testsuite/ld-s390/tlsbin.rd4
-rw-r--r--ld/testsuite/ld-s390/tlsbin_64.rd4
-rw-r--r--ld/testsuite/ld-s390/tlspic.rd36
-rw-r--r--ld/testsuite/ld-s390/tlspic_64.rd36
-rw-r--r--ld/testsuite/ld-sparc/gotop32.rd6
-rw-r--r--ld/testsuite/ld-sparc/gotop64.rd6
-rw-r--r--ld/testsuite/ld-sparc/tlssunbin32.rd6
-rw-r--r--ld/testsuite/ld-sparc/tlssunbin64.rd6
-rw-r--r--ld/testsuite/ld-sparc/tlssunnopic32.rd14
-rw-r--r--ld/testsuite/ld-sparc/tlssunnopic64.rd14
-rw-r--r--ld/testsuite/ld-sparc/tlssunpic32.rd38
-rw-r--r--ld/testsuite/ld-sparc/tlssunpic64.rd38
-rw-r--r--ld/testsuite/ld-x86-64/tlsbin.rd4
-rw-r--r--ld/testsuite/ld-x86-64/tlsbindesc.rd6
-rw-r--r--ld/testsuite/ld-x86-64/tlsdesc.rd38
-rw-r--r--ld/testsuite/ld-x86-64/tlsgdesc.rd4
-rw-r--r--ld/testsuite/ld-x86-64/tlspic.rd36
-rw-r--r--ld/testsuite/ld-xtensa/tlsbin.rd4
-rw-r--r--ld/testsuite/ld-xtensa/tlspic.rd36
64 files changed, 388 insertions, 306 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 20e3628560..fb20d07cca 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,11 @@
+2009-09-24 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/10630
+ * elflink.c (elf_link_output_extsym): Turn off visibility on
+ local symbol.
+ (bfd_elf_final_link): Turn off visibility on dynamic local
+ symbol.
+
2009-09-24 Alan Modra <amodra@bigpond.net.au>
PR binutils/10654
diff --git a/bfd/elflink.c b/bfd/elflink.c
index b99aceaa4b..f8029b0c38 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -8632,7 +8632,11 @@ elf_link_output_extsym (struct elf_link_hash_entry *h, void *data)
sym.st_size = h->size;
sym.st_other = h->other;
if (h->forced_local)
- sym.st_info = ELF_ST_INFO (STB_LOCAL, h->type);
+ {
+ sym.st_info = ELF_ST_INFO (STB_LOCAL, h->type);
+ /* Turn off visibility on local symbol. */
+ sym.st_other &= ~ELF_ST_VISIBILITY (-1);
+ }
else if (h->unique_global)
sym.st_info = ELF_ST_INFO (STB_GNU_UNIQUE, h->type);
else if (h->root.type == bfd_link_hash_undefweak
@@ -10704,13 +10708,11 @@ bfd_elf_final_link (bfd *abfd, struct bfd_link_info *info)
asection *s;
bfd_byte *dest;
- sym.st_size = e->isym.st_size;
- sym.st_other = e->isym.st_other;
-
- /* Copy the internal symbol as is.
+ /* Copy the internal symbol and turn off visibility.
Note that we saved a word of storage and overwrote
the original st_name with the dynstr_index. */
sym = e->isym;
+ sym.st_other &= ~ELF_ST_VISIBILITY (-1);
s = bfd_section_from_elf_index (e->input_bfd,
e->isym.st_shndx);
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 32d11f375e..ec944b6e77 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,75 @@
+2009-09-24 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/10630
+ * ld-alpha/tlsbin.rd: Remove HIDDEN/.hidden on local symbols.
+ * ld-alpha/tlsbinr.rd: Likewise.
+ * ld-alpha/tlspic.rd: Likewise.
+ * ld-cris/libdso-2.d: Likewise.
+ * ld-cris/locref1.d: Likewise.
+ * ld-cris/locref2.d: Likewise.
+ * ld-cris/tls-e-20a.d: Likewise.
+ * ld-cris/tls-e-20.d: Likewise.
+ * ld-cris/tls-e-80.d: Likewise.
+ * ld-cris/tls-gc-68.d: Likewise.
+ * ld-cris/tls-gc-69.d: Likewise.
+ * ld-cris/tls-gc-70.d: Likewise.
+ * ld-cris/tls-gc-75.d: Likewise.
+ * ld-cris/tls-gc-76.d: Likewise.
+ * ld-cris/tls-gc-79.d: Likewise.
+ * ld-cris/tls-gd-1h.d: Likewise.
+ * ld-cris/tls-gd-2h.d: Likewise.
+ * ld-cris/tls-ld-4.d: Likewise.
+ * ld-cris/tls-ld-5.d: Likewise.
+ * ld-cris/tls-ld-6.d: Likewise.
+ * ld-cris/tls-ld-7.d: Likewise.
+ * ld-cris/tls-ldgd-14.d: Likewise.
+ * ld-cris/tls-ldgd-15.d: Likewise.
+ * ld-cris/tls-local-63.d: Likewise.
+ * ld-cris/tls-local-64.d: Likewise.
+ * ld-elf/pr9676.rd: Likewise.
+ * ld-elf/pr9679.rd: Likewise.
+ * ld-elfvsb/hidden2.d: Likewise.
+ * ld-i386/tlsbindesc.rd: Likewise.
+ * ld-i386/tlsbin.rd: Likewise.
+ * ld-i386/tlsdesc.rd: Likewise.
+ * ld-i386/tlsgdesc.rd: Likewise.
+ * ld-i386/tlsnopic.rd: Likewise.
+ * ld-i386/tlspic.rd: Likewise.
+ * ld-ia64/tlsbin.rd: Likewise.
+ * ld-ia64/tlspic.rd: Likewise.
+ * ld-powerpc/tlsexe32.r: Likewise.
+ * ld-powerpc/tlsexe.r: Likewise.
+ * ld-powerpc/tlsexetoc.r: Likewise.
+ * ld-powerpc/tlsso32.r: Likewise.
+ * ld-powerpc/tlsso.r: Likewise.
+ * ld-powerpc/tlstocso.r: Likewise.
+ * ld-s390/tlsbin_64.rd: Likewise.
+ * ld-s390/tlsbin.rd: Likewise.
+ * ld-s390/tlspic_64.rd: Likewise.
+ * ld-s390/tlspic.rd: Likewise.
+ * ld-sparc/gotop32.rd: Likewise.
+ * ld-sparc/gotop64.rd: Likewise.
+ * ld-sparc/tlssunbin32.rd: Likewise.
+ * ld-sparc/tlssunbin64.rd: Likewise.
+ * ld-sparc/tlssunnopic32.rd: Likewise.
+ * ld-sparc/tlssunnopic64.rd: Likewise.
+ * ld-sparc/tlssunpic32.rd: Likewise.
+ * ld-sparc/tlssunpic64.rd: Likewise.
+ * ld-x86-64/tlsbindesc.rd: Likewise.
+ * ld-x86-64/tlsbin.rd: Likewise.
+ * ld-x86-64/tlsdesc.rd: Likewise.
+ * ld-x86-64/tlsgdesc.rd: Likewise.
+ * ld-x86-64/tlspic.rd: Likewise.
+ * ld-xtensa/tlsbin.rd: Likewise.
+ * ld-xtensa/tlspic.rd: Likewise.
+
+ * ld-elf/local1.d: New.
+ * ld-elf/local1.map: Likewise.
+ * ld-elf/local1.s: Likewise.
+ * ld-ia64/local1.d: Likewise.
+ * ld-ia64/local1.map: Likewise.
+ * ld-ia64/local1.s: Likewise.
+
2009-09-23 Matt Rice <ratmice@gmail.com>
* ld-elf/audit.exp: New.
diff --git a/ld/testsuite/ld-alpha/tlsbin.rd b/ld/testsuite/ld-alpha/tlsbin.rd
index aeeda2b083..44633ac43b 100644
--- a/ld/testsuite/ld-alpha/tlsbin.rd
+++ b/ld/testsuite/ld-alpha/tlsbin.rd
@@ -96,9 +96,9 @@ Symbol table '\.symtab' contains [0-9]+ entries:
[0-9 ]+: [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +10 bl6
[0-9 ]+: [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +10 bl7
[0-9 ]+: [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +10 bl8
-[0-9 ]+: [0-9a-f]+ +0 +OBJECT +LOCAL +HIDDEN +11 _DYNAMIC
-[0-9 ]+: [0-9a-f]+ +0 +OBJECT +LOCAL +HIDDEN +12 _PROCEDURE_LINKAGE_TABLE_
-[0-9 ]+: [0-9a-f]+ +0 +OBJECT +LOCAL +HIDDEN +13 _GLOBAL_OFFSET_TABLE_
+[0-9 ]+: [0-9a-f]+ +0 +OBJECT +LOCAL +DEFAULT +11 _DYNAMIC
+[0-9 ]+: [0-9a-f]+ +0 +OBJECT +LOCAL +DEFAULT +12 _PROCEDURE_LINKAGE_TABLE_
+[0-9 ]+: [0-9a-f]+ +0 +OBJECT +LOCAL +DEFAULT +13 _GLOBAL_OFFSET_TABLE_
[0-9 ]+: [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +9 sg8
[0-9 ]+: [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +10 bg8
[0-9 ]+: [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +10 bg6
diff --git a/ld/testsuite/ld-alpha/tlsbinr.rd b/ld/testsuite/ld-alpha/tlsbinr.rd
index 0aead2426b..247957d5ea 100644
--- a/ld/testsuite/ld-alpha/tlsbinr.rd
+++ b/ld/testsuite/ld-alpha/tlsbinr.rd
@@ -91,9 +91,9 @@ Symbol table '\.symtab' contains [0-9]+ entries:
[0-9 ]+: [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +10 bl6
[0-9 ]+: [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +10 bl7
[0-9 ]+: [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +10 bl8
-[0-9 ]+: [0-9a-f]+ +0 +OBJECT +LOCAL +HIDDEN +11 _DYNAMIC
-[0-9 ]+: [0-9a-f]+ +0 +OBJECT +LOCAL +HIDDEN +12 _PROCEDURE_LINKAGE_TABLE_
-[0-9 ]+: [0-9a-f]+ +0 +OBJECT +LOCAL +HIDDEN +13 _GLOBAL_OFFSET_TABLE_
+[0-9 ]+: [0-9a-f]+ +0 +OBJECT +LOCAL +DEFAULT +11 _DYNAMIC
+[0-9 ]+: [0-9a-f]+ +0 +OBJECT +LOCAL +DEFAULT +12 _PROCEDURE_LINKAGE_TABLE_
+[0-9 ]+: [0-9a-f]+ +0 +OBJECT +LOCAL +DEFAULT +13 _GLOBAL_OFFSET_TABLE_
[0-9 ]+: [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +9 sg8
[0-9 ]+: [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +10 bg8
[0-9 ]+: [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +10 bg6
diff --git a/ld/testsuite/ld-alpha/tlspic.rd b/ld/testsuite/ld-alpha/tlspic.rd
index 1aeb247b60..ac6a38a593 100644
--- a/ld/testsuite/ld-alpha/tlspic.rd
+++ b/ld/testsuite/ld-alpha/tlspic.rd
@@ -94,25 +94,25 @@ Symbol table '\.symtab' contains [0-9]+ entries:
.* [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +8 sl6
.* [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +8 sl7
.* [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +8 sl8
-.* [0-9a-f]+ +0 +TLS +LOCAL +HIDDEN +9 sH1
-.* [0-9a-f]+ +0 +OBJECT +LOCAL +HIDDEN +ABS _DYNAMIC
-.* [0-9a-f]+ +0 +TLS +LOCAL +HIDDEN +8 sh3
-.* [0-9a-f]+ +0 +TLS +LOCAL +HIDDEN +9 sH2
-.* [0-9a-f]+ +0 +TLS +LOCAL +HIDDEN +9 sH7
-.* [0-9a-f]+ +0 +OBJECT +LOCAL +HIDDEN +ABS _PROCEDURE_LINKAGE_TABLE_
-.* [0-9a-f]+ +0 +TLS +LOCAL +HIDDEN +8 sh7
-.* [0-9a-f]+ +0 +TLS +LOCAL +HIDDEN +8 sh8
-.* [0-9a-f]+ +0 +TLS +LOCAL +HIDDEN +9 sH4
-.* [0-9a-f]+ +0 +TLS +LOCAL +HIDDEN +8 sh4
-.* [0-9a-f]+ +0 +TLS +LOCAL +HIDDEN +9 sH3
-.* [0-9a-f]+ +0 +TLS +LOCAL +HIDDEN +8 sh5
-.* [0-9a-f]+ +0 +TLS +LOCAL +HIDDEN +9 sH5
-.* [0-9a-f]+ +0 +TLS +LOCAL +HIDDEN +9 sH6
-.* [0-9a-f]+ +0 +TLS +LOCAL +HIDDEN +9 sH8
-.* [0-9a-f]+ +0 +TLS +LOCAL +HIDDEN +8 sh1
-.* [0-9a-f]+ +0 +OBJECT +LOCAL +HIDDEN +ABS _GLOBAL_OFFSET_TABLE_
-.* [0-9a-f]+ +0 +TLS +LOCAL +HIDDEN +8 sh2
-.* [0-9a-f]+ +0 +TLS +LOCAL +HIDDEN +8 sh6
+.* [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +9 sH1
+.* [0-9a-f]+ +0 +OBJECT +LOCAL +DEFAULT +ABS _DYNAMIC
+.* [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +8 sh3
+.* [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +9 sH2
+.* [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +9 sH7
+.* [0-9a-f]+ +0 +OBJECT +LOCAL +DEFAULT +ABS _PROCEDURE_LINKAGE_TABLE_
+.* [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +8 sh7
+.* [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +8 sh8
+.* [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +9 sH4
+.* [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +8 sh4
+.* [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +9 sH3
+.* [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +8 sh5
+.* [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +9 sH5
+.* [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +9 sH6
+.* [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +9 sH8
+.* [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +8 sh1
+.* [0-9a-f]+ +0 +OBJECT +LOCAL +DEFAULT +ABS _GLOBAL_OFFSET_TABLE_
+.* [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +8 sh2
+.* [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +8 sh6
.* [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +8 sg8
.* [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +8 sg3
.* [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +8 sg4
diff --git a/ld/testsuite/ld-cris/libdso-2.d b/ld/testsuite/ld-cris/libdso-2.d
index ff1a4db7d8..165e2228e1 100644
--- a/ld/testsuite/ld-cris/libdso-2.d
+++ b/ld/testsuite/ld-cris/libdso-2.d
@@ -48,10 +48,10 @@ Symbol table '\.symtab' contains 18 entries:
+7: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +7
+8: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +8
+9: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +9
- +10: 0+2..[046c] +0 +OBJECT +LOCAL +HIDDEN +ABS _DYNAMIC
+ +10: 0+2..[046c] +0 +OBJECT +LOCAL +DEFAULT +ABS _DYNAMIC
+11: 0+2..[046c] +0 +NOTYPE +LOCAL +DEFAULT +ABS __bss_start
+12: 0+2..[046c] +0 +NOTYPE +LOCAL +DEFAULT +ABS _edata
- +13: 0+2..[046c] +0 +OBJECT +LOCAL +HIDDEN +ABS _GLOBAL_OFFSET_TABLE_
+ +13: 0+2..[046c] +0 +OBJECT +LOCAL +DEFAULT +ABS _GLOBAL_OFFSET_TABLE_
+14: 0+2..[046c] +0 +NOTYPE +LOCAL +DEFAULT +ABS _end
+15: 0+150 +2 +FUNC +LOCAL +DEFAULT +7 dsofn
+16: 0+ +0 +OBJECT +GLOBAL +DEFAULT +ABS TST1
diff --git a/ld/testsuite/ld-cris/locref1.d b/ld/testsuite/ld-cris/locref1.d
index e38c642fe3..ac26b28ea4 100644
--- a/ld/testsuite/ld-cris/locref1.d
+++ b/ld/testsuite/ld-cris/locref1.d
@@ -11,7 +11,7 @@
SYMBOL TABLE:
#...
-0+82084 l O \.got 0+ \.hidden _GLOBAL_OFFSET_TABLE_
+0+82084 l O \.got 0+ _GLOBAL_OFFSET_TABLE_
0+80076 g F \.text 0+2 expfn
0+82090 g O \.data 0+4 expobj
#...
diff --git a/ld/testsuite/ld-cris/locref2.d b/ld/testsuite/ld-cris/locref2.d
index 8b51d45c55..735b10ec4f 100644
--- a/ld/testsuite/ld-cris/locref2.d
+++ b/ld/testsuite/ld-cris/locref2.d
@@ -11,7 +11,7 @@
SYMBOL TABLE:
#...
-0+82088 l O \.got 0+ \.hidden _GLOBAL_OFFSET_TABLE_
+0+82088 l O \.got 0+ _GLOBAL_OFFSET_TABLE_
0+ w \*UND\* 0+ expfn
0+ w \*UND\* 0+ expobj
#...
diff --git a/ld/testsuite/ld-cris/tls-e-20.d b/ld/testsuite/ld-cris/tls-e-20.d
index d4fd8fce4a..0c723b06d4 100644
--- a/ld/testsuite/ld-cris/tls-e-20.d
+++ b/ld/testsuite/ld-cris/tls-e-20.d
@@ -35,7 +35,7 @@ SYMBOL TABLE:
0+80094 l d \.text 0+ \.text
0+820b0 l d \.tdata 0+ \.tdata
0+820bc l d \.got 0+ \.got
-0+820bc l O \.got 0+ \.hidden _GLOBAL_OFFSET_TABLE_
+0+820bc l O \.got 0+ _GLOBAL_OFFSET_TABLE_
0+ g \.tdata 0+4 \.hidden x
0+80098 g F \.text 0+6 tlsdsofn2
0+8 g \.tdata 0+4 \.hidden x2
diff --git a/ld/testsuite/ld-cris/tls-e-20a.d b/ld/testsuite/ld-cris/tls-e-20a.d
index 2ea7d0d6ea..201e0b114b 100644
--- a/ld/testsuite/ld-cris/tls-e-20a.d
+++ b/ld/testsuite/ld-cris/tls-e-20a.d
@@ -41,7 +41,7 @@ SYMBOL TABLE:
0+82168 l d \.got 0+ \.got
0+821a4 l d \.data 0+ \.data
0+ l \.tdata 0+80 tls128
-0+82168 l O \.got 0+ \.hidden _GLOBAL_OFFSET_TABLE_
+0+82168 l O \.got 0+ _GLOBAL_OFFSET_TABLE_
0+80 g \.tdata 0+4 \.hidden x
0+800c4 g F \.text 0+6 tlsdsofn2
0+821b4 g O \.data 0+4 got7var5
diff --git a/ld/testsuite/ld-cris/tls-e-80.d b/ld/testsuite/ld-cris/tls-e-80.d
index 273ac1f6de..6d84e0041f 100644
--- a/ld/testsuite/ld-cris/tls-e-80.d
+++ b/ld/testsuite/ld-cris/tls-e-80.d
@@ -42,7 +42,7 @@ SYMBOL TABLE:
0+820c0 l d \.tdata 0+ \.tdata
0+820d0 l d \.tbss 0+ \.tbss
0+820d0 l d \.got 0+ \.got
-0+820d0 l O \.got 0+ \.hidden _GLOBAL_OFFSET_TABLE_
+0+820d0 l O \.got 0+ _GLOBAL_OFFSET_TABLE_
0+ g \.tdata 0+4 \.hidden x
0+800a0 g F \.text 0+6 tlsdsofn2
0+800a8 g F \.text 0+6 tlsfn12
diff --git a/ld/testsuite/ld-cris/tls-gc-68.d b/ld/testsuite/ld-cris/tls-gc-68.d
index cfed0e5a5e..60fcc3be10 100644
--- a/ld/testsuite/ld-cris/tls-gc-68.d
+++ b/ld/testsuite/ld-cris/tls-gc-68.d
@@ -21,7 +21,7 @@ private flags = 0:
SYMBOL TABLE:
0+80074 l d .text 0+ .text
0+82078 l d .got 0+ .got
-0+82078 l O .got 0+ .hidden _GLOBAL_OFFSET_TABLE_
+0+82078 l O .got 0+ _GLOBAL_OFFSET_TABLE_
0+80074 g .text 0+ _start
0+82084 g \*ABS\* 0+ __bss_start
0+82084 g \*ABS\* 0+ _edata
diff --git a/ld/testsuite/ld-cris/tls-gc-69.d b/ld/testsuite/ld-cris/tls-gc-69.d
index dd9b30a3c7..e547ba4aa0 100644
--- a/ld/testsuite/ld-cris/tls-gc-69.d
+++ b/ld/testsuite/ld-cris/tls-gc-69.d
@@ -22,7 +22,7 @@ private flags = 0:
SYMBOL TABLE:
0+80074 l d .text 0+ .text
0+82078 l d .got 0+ .got
-0+82078 l O .got 0+ .hidden _GLOBAL_OFFSET_TABLE_
+0+82078 l O .got 0+ _GLOBAL_OFFSET_TABLE_
0+80074 g .text 0+ _start
0+82084 g \*ABS\* 0+ __bss_start
0+82084 g \*ABS\* 0+ _edata
diff --git a/ld/testsuite/ld-cris/tls-gc-70.d b/ld/testsuite/ld-cris/tls-gc-70.d
index 048b7e9286..d8d5324f5c 100644
--- a/ld/testsuite/ld-cris/tls-gc-70.d
+++ b/ld/testsuite/ld-cris/tls-gc-70.d
@@ -22,7 +22,7 @@ private flags = 0:
SYMBOL TABLE:
0+80074 l d .text 0+ .text
0+82078 l d .got 0+ .got
-0+82078 l O .got 0+ .hidden _GLOBAL_OFFSET_TABLE_
+0+82078 l O .got 0+ _GLOBAL_OFFSET_TABLE_
0+80074 g .text 0+ _start
0+82084 g \*ABS\* 0+ __bss_start
0+82084 g \*ABS\* 0+ _edata
diff --git a/ld/testsuite/ld-cris/tls-gc-75.d b/ld/testsuite/ld-cris/tls-gc-75.d
index de387dbe2d..2f4257e161 100644
--- a/ld/testsuite/ld-cris/tls-gc-75.d
+++ b/ld/testsuite/ld-cris/tls-gc-75.d
@@ -24,7 +24,7 @@ private flags = 0:
SYMBOL TABLE:
0+80074 l d .text 0+ .text
0+82078 l d .got 0+ .got
-0+82078 l O .got 0+ .hidden _GLOBAL_OFFSET_TABLE_
+0+82078 l O .got 0+ _GLOBAL_OFFSET_TABLE_
0+80074 g .text 0+ _start
0+82084 g \*ABS\* 0+ __bss_start
0+82084 g \*ABS\* 0+ _edata
diff --git a/ld/testsuite/ld-cris/tls-gc-76.d b/ld/testsuite/ld-cris/tls-gc-76.d
index 49a2dda446..f3c78df681 100644
--- a/ld/testsuite/ld-cris/tls-gc-76.d
+++ b/ld/testsuite/ld-cris/tls-gc-76.d
@@ -23,7 +23,7 @@ SYMBOL TABLE:
0+82080 l d .got 0+ .got
0+82090 l d .data 0+ .data
0+82090 l O .data 0+4 gc76var
-0+82080 l O .got 0+ .hidden _GLOBAL_OFFSET_TABLE_
+0+82080 l O .got 0+ _GLOBAL_OFFSET_TABLE_
0+80074 g .text 0+ _start
0+82094 g \*ABS\* 0+ __bss_start
0+82094 g \*ABS\* 0+ _edata
diff --git a/ld/testsuite/ld-cris/tls-gc-79.d b/ld/testsuite/ld-cris/tls-gc-79.d
index 37e8fce622..210f4789ef 100644
--- a/ld/testsuite/ld-cris/tls-gc-79.d
+++ b/ld/testsuite/ld-cris/tls-gc-79.d
@@ -22,7 +22,7 @@ private flags = 0:
SYMBOL TABLE:
0+80074 l d .text 0+ .text
0+82078 l d .got 0+ .got
-0+82078 l O .got 0+ .hidden _GLOBAL_OFFSET_TABLE_
+0+82078 l O .got 0+ _GLOBAL_OFFSET_TABLE_
0+80074 g .text 0+ _start
0+82084 g \*ABS\* 0+ __bss_start
0+82084 g \*ABS\* 0+ _edata
diff --git a/ld/testsuite/ld-cris/tls-gd-1h.d b/ld/testsuite/ld-cris/tls-gd-1h.d
index 9e8fab3881..2e024bd442 100644
--- a/ld/testsuite/ld-cris/tls-gd-1h.d
+++ b/ld/testsuite/ld-cris/tls-gd-1h.d
@@ -33,7 +33,7 @@ private flags = 0:
SYMBOL TABLE:
#...
-0+80 l \.tdata 0+4 \.hidden x
+0+80 l \.tdata 0+4 x
#...
DYNAMIC RELOCATION RECORDS
diff --git a/ld/testsuite/ld-cris/tls-gd-2h.d b/ld/testsuite/ld-cris/tls-gd-2h.d
index ed2803c21a..f63be5c2fa 100644
--- a/ld/testsuite/ld-cris/tls-gd-2h.d
+++ b/ld/testsuite/ld-cris/tls-gd-2h.d
@@ -33,7 +33,7 @@ private flags = 0:
SYMBOL TABLE:
#...
-0+80 l \.tdata 0+4 \.hidden x
+0+80 l \.tdata 0+4 x
#...
DYNAMIC RELOCATION RECORDS
diff --git a/ld/testsuite/ld-cris/tls-ld-4.d b/ld/testsuite/ld-cris/tls-ld-4.d
index b87d1d48c7..2ac3d71cb5 100644
--- a/ld/testsuite/ld-cris/tls-ld-4.d
+++ b/ld/testsuite/ld-cris/tls-ld-4.d
@@ -33,7 +33,7 @@ private flags = 0:
SYMBOL TABLE:
#...
-0+80 l \.tdata 0+4 \.hidden x
+0+80 l \.tdata 0+4 x
#...
DYNAMIC RELOCATION RECORDS
diff --git a/ld/testsuite/ld-cris/tls-ld-5.d b/ld/testsuite/ld-cris/tls-ld-5.d
index 756f1b0570..c2ea111100 100644
--- a/ld/testsuite/ld-cris/tls-ld-5.d
+++ b/ld/testsuite/ld-cris/tls-ld-5.d
@@ -33,8 +33,8 @@ private flags = 0:
SYMBOL TABLE:
#...
-0+84 l \.tdata 0+4 \.hidden x2
-0+80 l \.tdata 0+4 \.hidden x1
+0+84 l \.tdata 0+4 x2
+0+80 l \.tdata 0+4 x1
#...
DYNAMIC RELOCATION RECORDS
diff --git a/ld/testsuite/ld-cris/tls-ld-6.d b/ld/testsuite/ld-cris/tls-ld-6.d
index b178ad4c71..0b54114c0d 100644
--- a/ld/testsuite/ld-cris/tls-ld-6.d
+++ b/ld/testsuite/ld-cris/tls-ld-6.d
@@ -33,7 +33,7 @@ private flags = 0:
SYMBOL TABLE:
#...
-0+80 l \.tdata 0+4 \.hidden x
+0+80 l \.tdata 0+4 x
#...
DYNAMIC RELOCATION RECORDS
diff --git a/ld/testsuite/ld-cris/tls-ld-7.d b/ld/testsuite/ld-cris/tls-ld-7.d
index 92fcb8842d..c537050d1b 100644
--- a/ld/testsuite/ld-cris/tls-ld-7.d
+++ b/ld/testsuite/ld-cris/tls-ld-7.d
@@ -33,8 +33,8 @@ private flags = 0:
SYMBOL TABLE:
#...
-0+84 l \.tdata 0+4 \.hidden x2
-0+80 l \.tdata 0+4 \.hidden x1
+0+84 l \.tdata 0+4 x2
+0+80 l \.tdata 0+4 x1
#...
DYNAMIC RELOCATION RECORDS
diff --git a/ld/testsuite/ld-cris/tls-ldgd-14.d b/ld/testsuite/ld-cris/tls-ldgd-14.d
index 3b101ada39..4634dd2e0a 100644
--- a/ld/testsuite/ld-cris/tls-ldgd-14.d
+++ b/ld/testsuite/ld-cris/tls-ldgd-14.d
@@ -38,9 +38,9 @@ private flags = 0:
SYMBOL TABLE:
#...
-0+8c l \.tdata 0+4 \.hidden x2
+0+8c l \.tdata 0+4 x2
#...
-0+88 l \.tdata 0+4 \.hidden x1
+0+88 l \.tdata 0+4 x1
#...
0+80 g \.tdata 0+4 x
#...
diff --git a/ld/testsuite/ld-cris/tls-ldgd-15.d b/ld/testsuite/ld-cris/tls-ldgd-15.d
index 84d033f7d4..8583bd2344 100644
--- a/ld/testsuite/ld-cris/tls-ldgd-15.d
+++ b/ld/testsuite/ld-cris/tls-ldgd-15.d
@@ -38,9 +38,9 @@ private flags = 0:
SYMBOL TABLE:
#...
-0+8c l \.tdata 0+4 \.hidden x2
+0+8c l \.tdata 0+4 x2
#...
-0+88 l \.tdata 0+4 \.hidden x1
+0+88 l \.tdata 0+4 x1
#...
0+80 g \.tdata 0+4 x
#...
diff --git a/ld/testsuite/ld-cris/tls-local-63.d b/ld/testsuite/ld-cris/tls-local-63.d
index 3242833e52..f628097120 100644
--- a/ld/testsuite/ld-cris/tls-local-63.d
+++ b/ld/testsuite/ld-cris/tls-local-63.d
@@ -19,7 +19,7 @@ Symbol table '.dynsym' contains 7 entries:
#...
Symbol table '.symtab' contains 16 entries:
#...
- .: 00000000 +4 +TLS +LOCAL +HIDDEN +6 x
+ .: 00000000 +4 +TLS +LOCAL +DEFAULT +6 x
#...
Hex dump of section '.text':
0x00000184 5fae0c00 .*
diff --git a/ld/testsuite/ld-cris/tls-local-64.d b/ld/testsuite/ld-cris/tls-local-64.d
index bc9aeab34b..f813858b05 100644
--- a/ld/testsuite/ld-cris/tls-local-64.d
+++ b/ld/testsuite/ld-cris/tls-local-64.d
@@ -21,7 +21,7 @@ Symbol table '.dynsym' contains 7 entries:
#...
Symbol table '.symtab' contains 17 entries:
#...
- ..: 00000080 +4 +TLS +LOCAL +HIDDEN +6 x
+ ..: 00000080 +4 +TLS +LOCAL +DEFAULT +6 x
#...
Hex dump of section '.text':
0x00000184 5fae0c00 .*
diff --git a/ld/testsuite/ld-elf/pr9676.rd b/ld/testsuite/ld-elf/pr9676.rd
index 0585b1cb00..44a11cea2b 100644
--- a/ld/testsuite/ld-elf/pr9676.rd
+++ b/ld/testsuite/ld-elf/pr9676.rd
@@ -1,5 +1,5 @@
Symbol table '\.dynsym' contains [0-9]+ entries:
+Num: +Value +Size Type +Bind +Vis +Ndx Name
#...
- +[0-9]+: +[0-9a-f]+ +[0-9a-f]+ +FUNC +LOCAL +HIDDEN +[0-9]+ +foo
+ +[0-9]+: +[0-9a-f]+ +[0-9a-f]+ +FUNC +LOCAL +DEFAULT +[0-9]+ +foo
#...
diff --git a/ld/testsuite/ld-elf/pr9679.rd b/ld/testsuite/ld-elf/pr9679.rd
index 0585b1cb00..44a11cea2b 100644
--- a/ld/testsuite/ld-elf/pr9679.rd
+++ b/ld/testsuite/ld-elf/pr9679.rd
@@ -1,5 +1,5 @@
Symbol table '\.dynsym' contains [0-9]+ entries:
+Num: +Value +Size Type +Bind +Vis +Ndx Name
#...
- +[0-9]+: +[0-9a-f]+ +[0-9a-f]+ +FUNC +LOCAL +HIDDEN +[0-9]+ +foo
+ +[0-9]+: +[0-9a-f]+ +[0-9a-f]+ +FUNC +LOCAL +DEFAULT +[0-9]+ +foo
#...
diff --git a/ld/testsuite/ld-elfvsb/hidden2.d b/ld/testsuite/ld-elfvsb/hidden2.d
index 6671794ade..2996277633 100644
--- a/ld/testsuite/ld-elfvsb/hidden2.d
+++ b/ld/testsuite/ld-elfvsb/hidden2.d
@@ -5,5 +5,5 @@
Symbol table for image:
#...
-[ ]*[0-9]+ +[0-9]+: [0-9a-fA-F]* +0 +OBJECT +LOCAL +HIDDEN +ABS foo
+[ ]*[0-9]+ +[0-9]+: [0-9a-fA-F]* +0 +OBJECT +LOCAL +DEFAULT +ABS foo
#pass
diff --git a/ld/testsuite/ld-i386/tlsbin.rd b/ld/testsuite/ld-i386/tlsbin.rd
index 0bfdaab9db..84cec7858d 100644
--- a/ld/testsuite/ld-i386/tlsbin.rd
+++ b/ld/testsuite/ld-i386/tlsbin.rd
@@ -118,8 +118,8 @@ Symbol table '\.symtab' contains [0-9]+ entries:
+[0-9]+: 00000094 +0 +TLS +LOCAL +DEFAULT +10 bl6
+[0-9]+: 00000098 +0 +TLS +LOCAL +DEFAULT +10 bl7
+[0-9]+: 0000009c +0 +TLS +LOCAL +DEFAULT +10 bl8
- +[0-9]+: 0+804a060 +0 +OBJECT +LOCAL +HIDDEN +11 _DYNAMIC
- +[0-9]+: [0-9a-f]+ +0 +OBJECT +LOCAL +HIDDEN +13 _GLOBAL_OFFSET_TABLE_
+ +[0-9]+: 0+804a060 +0 +OBJECT +LOCAL +DEFAULT +11 _DYNAMIC
+ +[0-9]+: [0-9a-f]+ +0 +OBJECT +LOCAL +DEFAULT +13 _GLOBAL_OFFSET_TABLE_
+[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG3
+[0-9]+: 0000001c +0 +TLS +GLOBAL +DEFAULT +9 sg8
+[0-9]+: 0000007c +0 +TLS +GLOBAL +DEFAULT +10 bg8
diff --git a/ld/testsuite/ld-i386/tlsbindesc.rd b/ld/testsuite/ld-i386/tlsbindesc.rd
index 43b8c14c3e..c2cea19959 100644
--- a/ld/testsuite/ld-i386/tlsbindesc.rd
+++ b/ld/testsuite/ld-i386/tlsbindesc.rd
@@ -109,9 +109,9 @@ Symbol table '\.symtab' contains [0-9]+ entries:
+[0-9]+: 00000094 +0 +TLS +LOCAL +DEFAULT +8 bl6
+[0-9]+: 00000098 +0 +TLS +LOCAL +DEFAULT +8 bl7
+[0-9]+: 0000009c +0 +TLS +LOCAL +DEFAULT +8 bl8
- +[0-9]+: 00001000 +0 +TLS +LOCAL +HIDDEN +7 _TLS_MODULE_BASE_
- +[0-9]+: 0+804a060 +0 +OBJECT +LOCAL +HIDDEN +9 _DYNAMIC
- +[0-9]+: [0-9a-f]+ +0 +OBJECT +LOCAL +HIDDEN +11 _GLOBAL_OFFSET_TABLE_
+ +[0-9]+: 00001000 +0 +TLS +LOCAL +DEFAULT +7 _TLS_MODULE_BASE_
+ +[0-9]+: 0+804a060 +0 +OBJECT +LOCAL +DEFAULT +9 _DYNAMIC
+ +[0-9]+: [0-9a-f]+ +0 +OBJECT +LOCAL +DEFAULT +11 _GLOBAL_OFFSET_TABLE_
+[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG3
+[0-9]+: 0000001c +0 +TLS +GLOBAL +DEFAULT +7 sg8
+[0-9]+: 0000007c +0 +TLS +GLOBAL +DEFAULT +8 bg8
diff --git a/ld/testsuite/ld-i386/tlsdesc.rd b/ld/testsuite/ld-i386/tlsdesc.rd
index 311973af73..42edd44a58 100644
--- a/ld/testsuite/ld-i386/tlsdesc.rd
+++ b/ld/testsuite/ld-i386/tlsdesc.rd
@@ -116,25 +116,25 @@ Symbol table '\.symtab' contains [0-9]+ entries:
+[0-9]+: 0+34 +0 +TLS +LOCAL +DEFAULT +7 sl6
+[0-9]+: 0+38 +0 +TLS +LOCAL +DEFAULT +7 sl7
+[0-9]+: 0+3c +0 +TLS +LOCAL +DEFAULT +7 sl8
- +[0-9]+: 0+60 +0 +TLS +LOCAL +HIDDEN +8 sH1
- +[0-9]+: 0+ +0 +TLS +LOCAL +HIDDEN +7 _TLS_MODULE_BASE_
- +[0-9]+: [0-9a-f]+ +0 +OBJECT +LOCAL +HIDDEN +ABS _DYNAMIC
- +[0-9]+: 0+48 +0 +TLS +LOCAL +HIDDEN +7 sh3
- +[0-9]+: 0+64 +0 +TLS +LOCAL +HIDDEN +8 sH2
- +[0-9]+: 0+78 +0 +TLS +LOCAL +HIDDEN +8 sH7
- +[0-9]+: 0+58 +0 +TLS +LOCAL +HIDDEN +7 sh7
- +[0-9]+: 0+5c +0 +TLS +LOCAL +HIDDEN +7 sh8
- +[0-9]+: 0+6c +0 +TLS +LOCAL +HIDDEN +8 sH4
- +[0-9]+: 0+4c +0 +TLS +LOCAL +HIDDEN +7 sh4
- +[0-9]+: 0+68 +0 +TLS +LOCAL +HIDDEN +8 sH3
- +[0-9]+: 0+50 +0 +TLS +LOCAL +HIDDEN +7 sh5
- +[0-9]+: 0+70 +0 +TLS +LOCAL +HIDDEN +8 sH5
- +[0-9]+: 0+74 +0 +TLS +LOCAL +HIDDEN +8 sH6
- +[0-9]+: 0+7c +0 +TLS +LOCAL +HIDDEN +8 sH8
- +[0-9]+: 0+40 +0 +TLS +LOCAL +HIDDEN +7 sh1
- +[0-9]+: [0-9a-f]+ +0 +OBJECT +LOCAL +HIDDEN +ABS _GLOBAL_OFFSET_TABLE_
- +[0-9]+: 0+44 +0 +TLS +LOCAL +HIDDEN +7 sh2
- +[0-9]+: 0+54 +0 +TLS +LOCAL +HIDDEN +7 sh6
+ +[0-9]+: 0+60 +0 +TLS +LOCAL +DEFAULT +8 sH1
+ +[0-9]+: 0+ +0 +TLS +LOCAL +DEFAULT +7 _TLS_MODULE_BASE_
+ +[0-9]+: [0-9a-f]+ +0 +OBJECT +LOCAL +DEFAULT +ABS _DYNAMIC
+ +[0-9]+: 0+48 +0 +TLS +LOCAL +DEFAULT +7 sh3
+ +[0-9]+: 0+64 +0 +TLS +LOCAL +DEFAULT +8 sH2
+ +[0-9]+: 0+78 +0 +TLS +LOCAL +DEFAULT +8 sH7
+ +[0-9]+: 0+58 +0 +TLS +LOCAL +DEFAULT +7 sh7
+ +[0-9]+: 0+5c +0 +TLS +LOCAL +DEFAULT +7 sh8
+ +[0-9]+: 0+6c +0 +TLS +LOCAL +DEFAULT +8 sH4
+ +[0-9]+: 0+4c +0 +TLS +LOCAL +DEFAULT +7 sh4
+ +[0-9]+: 0+68 +0 +TLS +LOCAL +DEFAULT +8 sH3
+ +[0-9]+: 0+50 +0 +TLS +LOCAL +DEFAULT +7 sh5
+ +[0-9]+: 0+70 +0 +TLS +LOCAL +DEFAULT +8 sH5
+ +[0-9]+: 0+74 +0 +TLS +LOCAL +DEFAULT +8 sH6
+ +[0-9]+: 0+7c +0 +TLS +LOCAL +DEFAULT +8 sH8
+ +[0-9]+: 0+40 +0 +TLS +LOCAL +DEFAULT +7 sh1
+ +[0-9]+: [0-9a-f]+ +0 +OBJECT +LOCAL +DEFAULT +ABS _GLOBAL_OFFSET_TABLE_
+ +[0-9]+: 0+44 +0 +TLS +LOCAL +DEFAULT +7 sh2
+ +[0-9]+: 0+54 +0 +TLS +LOCAL +DEFAULT +7 sh6
+[0-9]+: 0+1c +0 +TLS +GLOBAL +DEFAULT +7 sg8
+[0-9]+: 0+8 +0 +TLS +GLOBAL +DEFAULT +7 sg3
+[0-9]+: 0+c +0 +TLS +GLOBAL +DEFAULT +7 sg4
diff --git a/ld/testsuite/ld-i386/tlsgdesc.rd b/ld/testsuite/ld-i386/tlsgdesc.rd
index 62f12f617c..3a224a2406 100644
--- a/ld/testsuite/ld-i386/tlsgdesc.rd
+++ b/ld/testsuite/ld-i386/tlsgdesc.rd
@@ -88,8 +88,8 @@ Symbol table '\.symtab' contains [0-9]+ entries:
+[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +8 *
+[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +9 *
+[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +10 *
- +[0-9]+: [0-9a-f]+ +0 +OBJECT +LOCAL +HIDDEN +ABS _DYNAMIC
- +[0-9]+: [0-9a-f]+ +0 +OBJECT +LOCAL +HIDDEN +ABS _GLOBAL_OFFSET_TABLE_
+ +[0-9]+: [0-9a-f]+ +0 +OBJECT +LOCAL +DEFAULT +ABS _DYNAMIC
+ +[0-9]+: [0-9a-f]+ +0 +OBJECT +LOCAL +DEFAULT +ABS _GLOBAL_OFFSET_TABLE_
+[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG3
+[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG5
+[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG2
diff --git a/ld/testsuite/ld-i386/tlsnopic.rd b/ld/testsuite/ld-i386/tlsnopic.rd
index 9f011cfa71..2590a9ff4a 100644
--- a/ld/testsuite/ld-i386/tlsnopic.rd
+++ b/ld/testsuite/ld-i386/tlsnopic.rd
@@ -99,12 +99,12 @@ Symbol table '\.symtab' contains [0-9]+ entries:
+[0-9]+: 0+08 +0 +TLS +LOCAL +DEFAULT +6 bl3
+[0-9]+: 0+0c +0 +TLS +LOCAL +DEFAULT +6 bl4
+[0-9]+: 0+10 +0 +TLS +LOCAL +DEFAULT +6 bl5
- +[0-9]+: [0-9a-f]+ +0 +OBJECT +LOCAL +HIDDEN +ABS _DYNAMIC
- +[0-9]+: 0+1c +0 +TLS +LOCAL +HIDDEN +6 sh3
- +[0-9]+: 0+20 +0 +TLS +LOCAL +HIDDEN +6 sh4
- +[0-9]+: 0+14 +0 +TLS +LOCAL +HIDDEN +6 sh1
- +[0-9]+: 0+218c +0 +OBJECT +LOCAL +HIDDEN +ABS _GLOBAL_OFFSET_TABLE_
- +[0-9]+: 0+18 +0 +TLS +LOCAL +HIDDEN +6 sh2
+ +[0-9]+: [0-9a-f]+ +0 +OBJECT +LOCAL +DEFAULT +ABS _DYNAMIC
+ +[0-9]+: 0+1c +0 +TLS +LOCAL +DEFAULT +6 sh3
+ +[0-9]+: 0+20 +0 +TLS +LOCAL +DEFAULT +6 sh4
+ +[0-9]+: 0+14 +0 +TLS +LOCAL +DEFAULT +6 sh1
+ +[0-9]+: 0+218c +0 +OBJECT +LOCAL +DEFAULT +ABS _GLOBAL_OFFSET_TABLE_
+ +[0-9]+: 0+18 +0 +TLS +LOCAL +DEFAULT +6 sh2
+[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sg3
+[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sg4
+[0-9]+: 0+1000 +0 +FUNC +GLOBAL +DEFAULT +5 fn3
diff --git a/ld/testsuite/ld-i386/tlspic.rd b/ld/testsuite/ld-i386/tlspic.rd
index 3a264e3236..46b8ed55c6 100644
--- a/ld/testsuite/ld-i386/tlspic.rd
+++ b/ld/testsuite/ld-i386/tlspic.rd
@@ -121,24 +121,24 @@ Symbol table '\.symtab' contains [0-9]+ entries:
+[0-9]+: 0+34 +0 +TLS +LOCAL +DEFAULT +8 sl6
+[0-9]+: 0+38 +0 +TLS +LOCAL +DEFAULT +8 sl7
+[0-9]+: 0+3c +0 +TLS +LOCAL +DEFAULT +8 sl8
- +[0-9]+: 0+60 +0 +TLS +LOCAL +HIDDEN +9 sH1
- +[0-9]+: [0-9a-f]+ +0 +OBJECT +LOCAL +HIDDEN +ABS _DYNAMIC
- +[0-9]+: 0+48 +0 +TLS +LOCAL +HIDDEN +8 sh3
- +[0-9]+: 0+64 +0 +TLS +LOCAL +HIDDEN +9 sH2
- +[0-9]+: 0+78 +0 +TLS +LOCAL +HIDDEN +9 sH7
- +[0-9]+: 0+58 +0 +TLS +LOCAL +HIDDEN +8 sh7
- +[0-9]+: 0+5c +0 +TLS +LOCAL +HIDDEN +8 sh8
- +[0-9]+: 0+6c +0 +TLS +LOCAL +HIDDEN +9 sH4
- +[0-9]+: 0+4c +0 +TLS +LOCAL +HIDDEN +8 sh4
- +[0-9]+: 0+68 +0 +TLS +LOCAL +HIDDEN +9 sH3
- +[0-9]+: 0+50 +0 +TLS +LOCAL +HIDDEN +8 sh5
- +[0-9]+: 0+70 +0 +TLS +LOCAL +HIDDEN +9 sH5
- +[0-9]+: 0+74 +0 +TLS +LOCAL +HIDDEN +9 sH6
- +[0-9]+: 0+7c +0 +TLS +LOCAL +HIDDEN +9 sH8
- +[0-9]+: 0+40 +0 +TLS +LOCAL +HIDDEN +8 sh1
- +[0-9]+: [0-9a-f]+ +0 +OBJECT +LOCAL +HIDDEN +ABS _GLOBAL_OFFSET_TABLE_
- +[0-9]+: 0+44 +0 +TLS +LOCAL +HIDDEN +8 sh2
- +[0-9]+: 0+54 +0 +TLS +LOCAL +HIDDEN +8 sh6
+ +[0-9]+: 0+60 +0 +TLS +LOCAL +DEFAULT +9 sH1
+ +[0-9]+: [0-9a-f]+ +0 +OBJECT +LOCAL +DEFAULT +ABS _DYNAMIC
+ +[0-9]+: 0+48 +0 +TLS +LOCAL +DEFAULT +8 sh3
+ +[0-9]+: 0+64 +0 +TLS +LOCAL +DEFAULT +9 sH2
+ +[0-9]+: 0+78 +0 +TLS +LOCAL +DEFAULT +9 sH7
+ +[0-9]+: 0+58 +0 +TLS +LOCAL +DEFAULT +8 sh7
+ +[0-9]+: 0+5c +0 +TLS +LOCAL +DEFAULT +8 sh8
+ +[0-9]+: 0+6c +0 +TLS +LOCAL +DEFAULT +9 sH4
+ +[0-9]+: 0+4c +0 +TLS +LOCAL +DEFAULT +8 sh4
+ +[0-9]+: 0+68 +0 +TLS +LOCAL +DEFAULT +9 sH3
+ +[0-9]+: 0+50 +0 +TLS +LOCAL +DEFAULT +8 sh5
+ +[0-9]+: 0+70 +0 +TLS +LOCAL +DEFAULT +9 sH5
+ +[0-9]+: 0+74 +0 +TLS +LOCAL +DEFAULT +9 sH6
+ +[0-9]+: 0+7c +0 +TLS +LOCAL +DEFAULT +9 sH8
+ +[0-9]+: 0+40 +0 +TLS +LOCAL +DEFAULT +8 sh1
+ +[0-9]+: [0-9a-f]+ +0 +OBJECT +LOCAL +DEFAULT +ABS _GLOBAL_OFFSET_TABLE_
+ +[0-9]+: 0+44 +0 +TLS +LOCAL +DEFAULT +8 sh2
+ +[0-9]+: 0+54 +0 +TLS +LOCAL +DEFAULT +8 sh6
+[0-9]+: 0+1c +0 +TLS +GLOBAL +DEFAULT +8 sg8
+[0-9]+: 0+8 +0 +TLS +GLOBAL +DEFAULT +8 sg3
+[0-9]+: 0+c +0 +TLS +GLOBAL +DEFAULT +8 sg4
diff --git a/ld/testsuite/ld-ia64/tlsbin.rd b/ld/testsuite/ld-ia64/tlsbin.rd
index 2929794094..0ad3a77b25 100644
--- a/ld/testsuite/ld-ia64/tlsbin.rd
+++ b/ld/testsuite/ld-ia64/tlsbin.rd
@@ -100,8 +100,8 @@ Symbol table '\.symtab' contains [0-9]+ entries:
.* TLS +LOCAL +DEFAULT +12 bl6
.* TLS +LOCAL +DEFAULT +12 bl7
.* TLS +LOCAL +DEFAULT +12 bl8
-.* OBJECT +LOCAL +HIDDEN +13 _DYNAMIC
-.* OBJECT +LOCAL +HIDDEN +14 _GLOBAL_OFFSET_TABLE_
+.* OBJECT +LOCAL +DEFAULT +13 _DYNAMIC
+.* OBJECT +LOCAL +DEFAULT +14 _GLOBAL_OFFSET_TABLE_
.* TLS +GLOBAL +DEFAULT +11 sg8
.* TLS +GLOBAL +DEFAULT +12 bg8
.* TLS +GLOBAL +DEFAULT +12 bg6
diff --git a/ld/testsuite/ld-ia64/tlspic.rd b/ld/testsuite/ld-ia64/tlspic.rd
index f44d75bbe2..8320365af1 100644
--- a/ld/testsuite/ld-ia64/tlspic.rd
+++ b/ld/testsuite/ld-ia64/tlspic.rd
@@ -98,24 +98,24 @@ Symbol table '\.symtab' contains [0-9]+ entries:
.* TLS +LOCAL +DEFAULT +10 sl6
.* TLS +LOCAL +DEFAULT +10 sl7
.* TLS +LOCAL +DEFAULT +10 sl8
-.* TLS +LOCAL +HIDDEN +11 sH1
-.* OBJECT +LOCAL +HIDDEN +ABS _DYNAMIC
-.* TLS +LOCAL +HIDDEN +10 sh3
-.* TLS +LOCAL +HIDDEN +11 sH2
-.* TLS +LOCAL +HIDDEN +11 sH7
-.* TLS +LOCAL +HIDDEN +10 sh7
-.* TLS +LOCAL +HIDDEN +10 sh8
-.* TLS +LOCAL +HIDDEN +11 sH4
-.* TLS +LOCAL +HIDDEN +10 sh4
-.* TLS +LOCAL +HIDDEN +11 sH3
-.* TLS +LOCAL +HIDDEN +10 sh5
-.* TLS +LOCAL +HIDDEN +11 sH5
-.* TLS +LOCAL +HIDDEN +11 sH6
-.* TLS +LOCAL +HIDDEN +11 sH8
-.* TLS +LOCAL +HIDDEN +10 sh1
-.* OBJECT +LOCAL +HIDDEN +ABS _GLOBAL_OFFSET_TABLE_
-.* TLS +LOCAL +HIDDEN +10 sh2
-.* TLS +LOCAL +HIDDEN +10 sh6
+.* TLS +LOCAL +DEFAULT +11 sH1
+.* OBJECT +LOCAL +DEFAULT +ABS _DYNAMIC
+.* TLS +LOCAL +DEFAULT +10 sh3
+.* TLS +LOCAL +DEFAULT +11 sH2
+.* TLS +LOCAL +DEFAULT +11 sH7
+.* TLS +LOCAL +DEFAULT +10 sh7
+.* TLS +LOCAL +DEFAULT +10 sh8
+.* TLS +LOCAL +DEFAULT +11 sH4
+.* TLS +LOCAL +DEFAULT +10 sh4
+.* TLS +LOCAL +DEFAULT +11 sH3
+.* TLS +LOCAL +DEFAULT +10 sh5
+.* TLS +LOCAL +DEFAULT +11 sH5
+.* TLS +LOCAL +DEFAULT +11 sH6
+.* TLS +LOCAL +DEFAULT +11 sH8
+.* TLS +LOCAL +DEFAULT +10 sh1
+.* OBJECT +LOCAL +DEFAULT +ABS _GLOBAL_OFFSET_TABLE_
+.* TLS +LOCAL +DEFAULT +10 sh2
+.* TLS +LOCAL +DEFAULT +10 sh6
.* TLS +GLOBAL +DEFAULT +10 sg8
.* TLS +GLOBAL +DEFAULT +10 sg3
.* TLS +GLOBAL +DEFAULT +10 sg4
diff --git a/ld/testsuite/ld-powerpc/tlsexe.r b/ld/testsuite/ld-powerpc/tlsexe.r
index 32126f3708..55d2503fa3 100644
--- a/ld/testsuite/ld-powerpc/tlsexe.r
+++ b/ld/testsuite/ld-powerpc/tlsexe.r
@@ -95,7 +95,7 @@ Symbol table '\.symtab' contains [0-9]+ entries:
.* TLS +LOCAL +DEFAULT +8 ie4
.* TLS +LOCAL +DEFAULT +8 le4
.* TLS +LOCAL +DEFAULT +8 le5
-.* OBJECT +LOCAL +HIDDEN +10 _DYNAMIC
+.* OBJECT +LOCAL +DEFAULT +10 _DYNAMIC
.* (FUNC|NOTYPE) +LOCAL +DEFAULT +UND \.__tls_get_addr(|_opt)
.* GLOBAL +DEFAULT +UND gd
.* GLOBAL +DEFAULT +9 le0
diff --git a/ld/testsuite/ld-powerpc/tlsexe32.r b/ld/testsuite/ld-powerpc/tlsexe32.r
index f5443bd359..6983b0809b 100644
--- a/ld/testsuite/ld-powerpc/tlsexe32.r
+++ b/ld/testsuite/ld-powerpc/tlsexe32.r
@@ -92,8 +92,8 @@ Symbol table '\.symtab' contains [0-9]+ entries:
.* TLS +LOCAL +DEFAULT +8 ie4
.* TLS +LOCAL +DEFAULT +8 le4
.* TLS +LOCAL +DEFAULT +8 le5
-.* OBJECT +LOCAL +HIDDEN +10 _DYNAMIC
-.* OBJECT +LOCAL +HIDDEN +11 _GLOBAL_OFFSET_TABLE_
+.* OBJECT +LOCAL +DEFAULT +10 _DYNAMIC
+.* OBJECT +LOCAL +DEFAULT +11 _GLOBAL_OFFSET_TABLE_
.* TLS +GLOBAL +DEFAULT +UND gd
.* TLS +GLOBAL +DEFAULT +9 le0
.* TLS +GLOBAL +DEFAULT +9 ld0
diff --git a/ld/testsuite/ld-powerpc/tlsexetoc.r b/ld/testsuite/ld-powerpc/tlsexetoc.r
index 267cba5b2d..1488effe0a 100644
--- a/ld/testsuite/ld-powerpc/tlsexetoc.r
+++ b/ld/testsuite/ld-powerpc/tlsexetoc.r
@@ -95,7 +95,7 @@ Symbol table '\.symtab' contains [0-9]+ entries:
.* TLS +LOCAL +DEFAULT +8 le4
.* TLS +LOCAL +DEFAULT +8 le5
.* NOTYPE +LOCAL +DEFAULT +12 \.Lie0
-.* OBJECT +LOCAL +HIDDEN +10 _DYNAMIC
+.* OBJECT +LOCAL +DEFAULT +10 _DYNAMIC
.* (FUNC|NOTYPE) +LOCAL +DEFAULT +UND \.__tls_get_addr(|_opt)
.* TLS +GLOBAL +DEFAULT +UND gd
.* TLS +GLOBAL +DEFAULT +9 le0
diff --git a/ld/testsuite/ld-powerpc/tlsso.r b/ld/testsuite/ld-powerpc/tlsso.r
index c1a7347ff7..b41019930e 100644
--- a/ld/testsuite/ld-powerpc/tlsso.r
+++ b/ld/testsuite/ld-powerpc/tlsso.r
@@ -109,7 +109,7 @@ Symbol table '\.symtab' contains [0-9]+ entries:
.* TLS +LOCAL +DEFAULT +7 ie4
.* TLS +LOCAL +DEFAULT +7 le4
.* TLS +LOCAL +DEFAULT +7 le5
-.* OBJECT +LOCAL +HIDDEN +ABS _DYNAMIC
+.* OBJECT +LOCAL +DEFAULT +ABS _DYNAMIC
.* NOTYPE +LOCAL +DEFAULT +UND \.__tls_get_addr
.* TLS +GLOBAL +DEFAULT +UND gd
.* TLS +GLOBAL +DEFAULT +8 le0
diff --git a/ld/testsuite/ld-powerpc/tlsso32.r b/ld/testsuite/ld-powerpc/tlsso32.r
index aff469b5a0..e075db2c34 100644
--- a/ld/testsuite/ld-powerpc/tlsso32.r
+++ b/ld/testsuite/ld-powerpc/tlsso32.r
@@ -110,8 +110,8 @@ Symbol table '\.symtab' contains [0-9]+ entries:
.* TLS +LOCAL +DEFAULT +7 ie4
.* TLS +LOCAL +DEFAULT +7 le4
.* TLS +LOCAL +DEFAULT +7 le5
-.* OBJECT +LOCAL +HIDDEN +ABS _DYNAMIC
-.* OBJECT +LOCAL +HIDDEN +ABS _GLOBAL_OFFSET_TABLE_
+.* OBJECT +LOCAL +DEFAULT +ABS _DYNAMIC
+.* OBJECT +LOCAL +DEFAULT +ABS _GLOBAL_OFFSET_TABLE_
.* TLS +GLOBAL +DEFAULT +UND gd
.* TLS +GLOBAL +DEFAULT +8 le0
.* NOTYPE +GLOBAL +DEFAULT +UND __tls_get_addr
diff --git a/ld/testsuite/ld-powerpc/tlstocso.r b/ld/testsuite/ld-powerpc/tlstocso.r
index 2855ddadcb..3fc01620b5 100644
--- a/ld/testsuite/ld-powerpc/tlstocso.r
+++ b/ld/testsuite/ld-powerpc/tlstocso.r
@@ -105,7 +105,7 @@ Symbol table '\.symtab' contains [0-9]+ entries:
.* TLS +LOCAL +DEFAULT +7 le4
.* TLS +LOCAL +DEFAULT +7 le5
.* NOTYPE +LOCAL +DEFAULT +11 \.Lie0
-.* OBJECT +LOCAL +HIDDEN +ABS _DYNAMIC
+.* OBJECT +LOCAL +DEFAULT +ABS _DYNAMIC
.* NOTYPE +LOCAL +DEFAULT +UND \.__tls_get_addr
.* TLS +GLOBAL +DEFAULT +UND gd
.* TLS +GLOBAL +DEFAULT +8 le0
diff --git a/ld/testsuite/ld-s390/tlsbin.rd b/ld/testsuite/ld-s390/tlsbin.rd
index a2b30847e6..678d92cfe0 100644
--- a/ld/testsuite/ld-s390/tlsbin.rd
+++ b/ld/testsuite/ld-s390/tlsbin.rd
@@ -107,8 +107,8 @@ Symbol table '\.symtab' contains [0-9]+ entries:
.* TLS +LOCAL +DEFAULT +10 bl6
.* TLS +LOCAL +DEFAULT +10 bl7
.* TLS +LOCAL +DEFAULT +10 bl8
-.* OBJECT +LOCAL +HIDDEN +11 _DYNAMIC
-.* OBJECT +LOCAL +HIDDEN +12 _GLOBAL_OFFSET_TABLE_
+.* OBJECT +LOCAL +DEFAULT +11 _DYNAMIC
+.* OBJECT +LOCAL +DEFAULT +12 _GLOBAL_OFFSET_TABLE_
.* TLS +GLOBAL +DEFAULT +UND sG3
.* TLS +GLOBAL +DEFAULT +9 sg8
.* TLS +GLOBAL +DEFAULT +10 bg8
diff --git a/ld/testsuite/ld-s390/tlsbin_64.rd b/ld/testsuite/ld-s390/tlsbin_64.rd
index b2c0987a61..1dcb6b72df 100644
--- a/ld/testsuite/ld-s390/tlsbin_64.rd
+++ b/ld/testsuite/ld-s390/tlsbin_64.rd
@@ -107,8 +107,8 @@ Symbol table '\.symtab' contains [0-9]+ entries:
.* TLS +LOCAL +DEFAULT +10 bl6
.* TLS +LOCAL +DEFAULT +10 bl7
.* TLS +LOCAL +DEFAULT +10 bl8
-.* OBJECT +LOCAL +HIDDEN +11 _DYNAMIC
-.* OBJECT +LOCAL +HIDDEN +12 _GLOBAL_OFFSET_TABLE_
+.* OBJECT +LOCAL +DEFAULT +11 _DYNAMIC
+.* OBJECT +LOCAL +DEFAULT +12 _GLOBAL_OFFSET_TABLE_
.* TLS +GLOBAL +DEFAULT +UND sG3
.* TLS +GLOBAL +DEFAULT +9 sg8
.* TLS +GLOBAL +DEFAULT +10 bg8
diff --git a/ld/testsuite/ld-s390/tlspic.rd b/ld/testsuite/ld-s390/tlspic.rd
index 6cee8ca8ef..ec63e3d633 100644
--- a/ld/testsuite/ld-s390/tlspic.rd
+++ b/ld/testsuite/ld-s390/tlspic.rd
@@ -109,24 +109,24 @@ Symbol table '\.symtab' contains [0-9]+ entries:
.* TLS +LOCAL +DEFAULT +8 sl6
.* TLS +LOCAL +DEFAULT +8 sl7
.* TLS +LOCAL +DEFAULT +8 sl8
-.* TLS +LOCAL +HIDDEN +9 sH1
-.* OBJECT +LOCAL +HIDDEN +ABS _DYNAMIC
-.* TLS +LOCAL +HIDDEN +8 sh3
-.* TLS +LOCAL +HIDDEN +9 sH2
-.* TLS +LOCAL +HIDDEN +9 sH7
-.* TLS +LOCAL +HIDDEN +8 sh7
-.* TLS +LOCAL +HIDDEN +8 sh8
-.* TLS +LOCAL +HIDDEN +9 sH4
-.* TLS +LOCAL +HIDDEN +8 sh4
-.* TLS +LOCAL +HIDDEN +9 sH3
-.* TLS +LOCAL +HIDDEN +8 sh5
-.* TLS +LOCAL +HIDDEN +9 sH5
-.* TLS +LOCAL +HIDDEN +9 sH6
-.* TLS +LOCAL +HIDDEN +9 sH8
-.* TLS +LOCAL +HIDDEN +8 sh1
-.* OBJECT +LOCAL +HIDDEN +ABS _GLOBAL_OFFSET_TABLE_
-.* TLS +LOCAL +HIDDEN +8 sh2
-.* TLS +LOCAL +HIDDEN +8 sh6
+.* TLS +LOCAL +DEFAULT +9 sH1
+.* OBJECT +LOCAL +DEFAULT +ABS _DYNAMIC
+.* TLS +LOCAL +DEFAULT +8 sh3
+.* TLS +LOCAL +DEFAULT +9 sH2
+.* TLS +LOCAL +DEFAULT +9 sH7
+.* TLS +LOCAL +DEFAULT +8 sh7
+.* TLS +LOCAL +DEFAULT +8 sh8
+.* TLS +LOCAL +DEFAULT +9 sH4
+.* TLS +LOCAL +DEFAULT +8 sh4
+.* TLS +LOCAL +DEFAULT +9 sH3
+.* TLS +LOCAL +DEFAULT +8 sh5
+.* TLS +LOCAL +DEFAULT +9 sH5
+.* TLS +LOCAL +DEFAULT +9 sH6
+.* TLS +LOCAL +DEFAULT +9 sH8
+.* TLS +LOCAL +DEFAULT +8 sh1
+.* OBJECT +LOCAL +DEFAULT +ABS _GLOBAL_OFFSET_TABLE_
+.* TLS +LOCAL +DEFAULT +8 sh2
+.* TLS +LOCAL +DEFAULT +8 sh6
.* TLS +GLOBAL +DEFAULT +8 sg8
.* TLS +GLOBAL +DEFAULT +8 sg3
.* TLS +GLOBAL +DEFAULT +8 sg4
diff --git a/ld/testsuite/ld-s390/tlspic_64.rd b/ld/testsuite/ld-s390/tlspic_64.rd
index 45a2691c03..da8c9bf7a7 100644
--- a/ld/testsuite/ld-s390/tlspic_64.rd
+++ b/ld/testsuite/ld-s390/tlspic_64.rd
@@ -109,24 +109,24 @@ Symbol table '\.symtab' contains [0-9]+ entries:
.* TLS +LOCAL +DEFAULT +8 sl6
.* TLS +LOCAL +DEFAULT +8 sl7
.* TLS +LOCAL +DEFAULT +8 sl8
-.* TLS +LOCAL +HIDDEN +9 sH1
-.* OBJECT +LOCAL +HIDDEN +ABS _DYNAMIC
-.* TLS +LOCAL +HIDDEN +8 sh3
-.* TLS +LOCAL +HIDDEN +9 sH2
-.* TLS +LOCAL +HIDDEN +9 sH7
-.* TLS +LOCAL +HIDDEN +8 sh7
-.* TLS +LOCAL +HIDDEN +8 sh8
-.* TLS +LOCAL +HIDDEN +9 sH4
-.* TLS +LOCAL +HIDDEN +8 sh4
-.* TLS +LOCAL +HIDDEN +9 sH3
-.* TLS +LOCAL +HIDDEN +8 sh5
-.* TLS +LOCAL +HIDDEN +9 sH5
-.* TLS +LOCAL +HIDDEN +9 sH6
-.* TLS +LOCAL +HIDDEN +9 sH8
-.* TLS +LOCAL +HIDDEN +8 sh1
-.* OBJECT +LOCAL +HIDDEN +ABS _GLOBAL_OFFSET_TABLE_
-.* TLS +LOCAL +HIDDEN +8 sh2
-.* TLS +LOCAL +HIDDEN +8 sh6
+.* TLS +LOCAL +DEFAULT +9 sH1
+.* OBJECT +LOCAL +DEFAULT +ABS _DYNAMIC
+.* TLS +LOCAL +DEFAULT +8 sh3
+.* TLS +LOCAL +DEFAULT +9 sH2
+.* TLS +LOCAL +DEFAULT +9 sH7
+.* TLS +LOCAL +DEFAULT +8 sh7
+.* TLS +LOCAL +DEFAULT +8 sh8
+.* TLS +LOCAL +DEFAULT +9 sH4
+.* TLS +LOCAL +DEFAULT +8 sh4
+.* TLS +LOCAL +DEFAULT +9 sH3
+.* TLS +LOCAL +DEFAULT +8 sh5
+.* TLS +LOCAL +DEFAULT +9 sH5
+.* TLS +LOCAL +DEFAULT +9 sH6
+.* TLS +LOCAL +DEFAULT +9 sH8
+.* TLS +LOCAL +DEFAULT +8 sh1
+.* OBJECT +LOCAL +DEFAULT +ABS _GLOBAL_OFFSET_TABLE_
+.* TLS +LOCAL +DEFAULT +8 sh2
+.* TLS +LOCAL +DEFAULT +8 sh6
.* TLS +GLOBAL +DEFAULT +8 sg8
.* TLS +GLOBAL +DEFAULT +8 sg3
.* TLS +GLOBAL +DEFAULT +8 sg4
diff --git a/ld/testsuite/ld-sparc/gotop32.rd b/ld/testsuite/ld-sparc/gotop32.rd
index f4b576fc6e..566066c0f1 100644
--- a/ld/testsuite/ld-sparc/gotop32.rd
+++ b/ld/testsuite/ld-sparc/gotop32.rd
@@ -59,9 +59,9 @@ Symbol table '\.symtab' contains [0-9]+ entries:
.* SECTION +LOCAL +DEFAULT +6 *
.* SECTION +LOCAL +DEFAULT +7 *
.* SECTION +LOCAL +DEFAULT +8 *
-.* OBJECT +LOCAL +HIDDEN +ABS _DYNAMIC
-.* OBJECT +LOCAL +HIDDEN +ABS _PROCEDURE_LINKAGE_TABLE_
-.* OBJECT +LOCAL +HIDDEN +ABS _GLOBAL_OFFSET_TABLE_
+.* OBJECT +LOCAL +DEFAULT +ABS _DYNAMIC
+.* OBJECT +LOCAL +DEFAULT +ABS _PROCEDURE_LINKAGE_TABLE_
+.* OBJECT +LOCAL +DEFAULT +ABS _GLOBAL_OFFSET_TABLE_
.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start
.* FUNC +GLOBAL +DEFAULT +5 foo
.* NOTYPE +GLOBAL +DEFAULT +ABS _edata
diff --git a/ld/testsuite/ld-sparc/gotop64.rd b/ld/testsuite/ld-sparc/gotop64.rd
index 06f71fe4e5..4d3e519a74 100644
--- a/ld/testsuite/ld-sparc/gotop64.rd
+++ b/ld/testsuite/ld-sparc/gotop64.rd
@@ -59,9 +59,9 @@ Symbol table '\.symtab' contains [0-9]+ entries:
.* SECTION +LOCAL +DEFAULT +6 *
.* SECTION +LOCAL +DEFAULT +7 *
.* SECTION +LOCAL +DEFAULT +8 *
-.* OBJECT +LOCAL +HIDDEN +ABS _DYNAMIC
-.* OBJECT +LOCAL +HIDDEN +ABS _PROCEDURE_LINKAGE_TABLE_
-.* OBJECT +LOCAL +HIDDEN +ABS _GLOBAL_OFFSET_TABLE_
+.* OBJECT +LOCAL +DEFAULT +ABS _DYNAMIC
+.* OBJECT +LOCAL +DEFAULT +ABS _PROCEDURE_LINKAGE_TABLE_
+.* OBJECT +LOCAL +DEFAULT +ABS _GLOBAL_OFFSET_TABLE_
.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start
.* FUNC +GLOBAL +DEFAULT +5 foo
.* NOTYPE +GLOBAL +DEFAULT +ABS _edata
diff --git a/ld/testsuite/ld-sparc/tlssunbin32.rd b/ld/testsuite/ld-sparc/tlssunbin32.rd
index e5fbf085ec..69a0317735 100644
--- a/ld/testsuite/ld-sparc/tlssunbin32.rd
+++ b/ld/testsuite/ld-sparc/tlssunbin32.rd
@@ -87,9 +87,9 @@ Symbol table '\.symtab' contains [0-9]+ entries:
.* TLS +LOCAL +DEFAULT +8 bl6
.* TLS +LOCAL +DEFAULT +8 bl7
.* TLS +LOCAL +DEFAULT +8 bl8
-.* OBJECT +LOCAL +HIDDEN +9 _DYNAMIC
-.* OBJECT +LOCAL +HIDDEN +10 _PROCEDURE_LINKAGE_TABLE_
-.* OBJECT +LOCAL +HIDDEN +10 _GLOBAL_OFFSET_TABLE_
+.* OBJECT +LOCAL +DEFAULT +9 _DYNAMIC
+.* OBJECT +LOCAL +DEFAULT +10 _PROCEDURE_LINKAGE_TABLE_
+.* OBJECT +LOCAL +DEFAULT +10 _GLOBAL_OFFSET_TABLE_
.* TLS +GLOBAL +DEFAULT +7 sg8
.* TLS +GLOBAL +DEFAULT +8 bg8
.* TLS +GLOBAL +DEFAULT +8 bg6
diff --git a/ld/testsuite/ld-sparc/tlssunbin64.rd b/ld/testsuite/ld-sparc/tlssunbin64.rd
index 50a98c1fa9..483a9cf798 100644
--- a/ld/testsuite/ld-sparc/tlssunbin64.rd
+++ b/ld/testsuite/ld-sparc/tlssunbin64.rd
@@ -87,9 +87,9 @@ Symbol table '\.symtab' contains [0-9]+ entries:
.* TLS +LOCAL +DEFAULT +8 bl6
.* TLS +LOCAL +DEFAULT +8 bl7
.* TLS +LOCAL +DEFAULT +8 bl8
-.* OBJECT +LOCAL +HIDDEN +9 _DYNAMIC
-.* OBJECT +LOCAL +HIDDEN +10 _PROCEDURE_LINKAGE_TABLE_
-.* OBJECT +LOCAL +HIDDEN +10 _GLOBAL_OFFSET_TABLE_
+.* OBJECT +LOCAL +DEFAULT +9 _DYNAMIC
+.* OBJECT +LOCAL +DEFAULT +10 _PROCEDURE_LINKAGE_TABLE_
+.* OBJECT +LOCAL +DEFAULT +10 _GLOBAL_OFFSET_TABLE_
.* TLS +GLOBAL +DEFAULT +7 sg8
.* TLS +GLOBAL +DEFAULT +8 bg8
.* TLS +GLOBAL +DEFAULT +8 bg6
diff --git a/ld/testsuite/ld-sparc/tlssunnopic32.rd b/ld/testsuite/ld-sparc/tlssunnopic32.rd
index 04797b1d37..a35652bb05 100644
--- a/ld/testsuite/ld-sparc/tlssunnopic32.rd
+++ b/ld/testsuite/ld-sparc/tlssunnopic32.rd
@@ -78,13 +78,13 @@ Symbol table '\.symtab' contains [0-9]+ entries:
.* TLS +LOCAL +DEFAULT +6 bl3
.* TLS +LOCAL +DEFAULT +6 bl4
.* TLS +LOCAL +DEFAULT +6 bl5
-.* OBJECT +LOCAL +HIDDEN +ABS _DYNAMIC
-.* TLS +LOCAL +HIDDEN +6 sh3
-.* OBJECT +LOCAL +HIDDEN +ABS _PROCEDURE_LINKAGE_TABLE_
-.* TLS +LOCAL +HIDDEN +6 sh4
-.* TLS +LOCAL +HIDDEN +6 sh1
-.* OBJECT +LOCAL +HIDDEN +ABS _GLOBAL_OFFSET_TABLE_
-.* TLS +LOCAL +HIDDEN +6 sh2
+.* OBJECT +LOCAL +DEFAULT +ABS _DYNAMIC
+.* TLS +LOCAL +DEFAULT +6 sh3
+.* OBJECT +LOCAL +DEFAULT +ABS _PROCEDURE_LINKAGE_TABLE_
+.* TLS +LOCAL +DEFAULT +6 sh4
+.* TLS +LOCAL +DEFAULT +6 sh1
+.* OBJECT +LOCAL +DEFAULT +ABS _GLOBAL_OFFSET_TABLE_
+.* TLS +LOCAL +DEFAULT +6 sh2
.* FUNC +GLOBAL +DEFAULT +5 fn3
.* TLS +GLOBAL +DEFAULT +UND sg1
.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start
diff --git a/ld/testsuite/ld-sparc/tlssunnopic64.rd b/ld/testsuite/ld-sparc/tlssunnopic64.rd
index 44c09e91ad..3ccea679b5 100644
--- a/ld/testsuite/ld-sparc/tlssunnopic64.rd
+++ b/ld/testsuite/ld-sparc/tlssunnopic64.rd
@@ -80,13 +80,13 @@ Symbol table '\.symtab' contains [0-9]+ entries:
.* TLS +LOCAL +DEFAULT +6 bl3
.* TLS +LOCAL +DEFAULT +6 bl4
.* TLS +LOCAL +DEFAULT +6 bl5
-.* OBJECT +LOCAL +HIDDEN +ABS _DYNAMIC
-.* TLS +LOCAL +HIDDEN +6 sh3
-.* OBJECT +LOCAL +HIDDEN +ABS _PROCEDURE_LINKAGE_TABLE_
-.* TLS +LOCAL +HIDDEN +6 sh4
-.* TLS +LOCAL +HIDDEN +6 sh1
-.* OBJECT +LOCAL +HIDDEN +ABS _GLOBAL_OFFSET_TABLE_
-.* TLS +LOCAL +HIDDEN +6 sh2
+.* OBJECT +LOCAL +DEFAULT +ABS _DYNAMIC
+.* TLS +LOCAL +DEFAULT +6 sh3
+.* OBJECT +LOCAL +DEFAULT +ABS _PROCEDURE_LINKAGE_TABLE_
+.* TLS +LOCAL +DEFAULT +6 sh4
+.* TLS +LOCAL +DEFAULT +6 sh1
+.* OBJECT +LOCAL +DEFAULT +ABS _GLOBAL_OFFSET_TABLE_
+.* TLS +LOCAL +DEFAULT +6 sh2
.* FUNC +GLOBAL +DEFAULT +5 fn3
.* TLS +GLOBAL +DEFAULT +UND sg1
.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start
diff --git a/ld/testsuite/ld-sparc/tlssunpic32.rd b/ld/testsuite/ld-sparc/tlssunpic32.rd
index 46f0163c44..6ab67e9b5d 100644
--- a/ld/testsuite/ld-sparc/tlssunpic32.rd
+++ b/ld/testsuite/ld-sparc/tlssunpic32.rd
@@ -101,25 +101,25 @@ Symbol table '\.symtab' contains [0-9]+ entries:
.* TLS +LOCAL +DEFAULT +7 sl6
.* TLS +LOCAL +DEFAULT +7 sl7
.* TLS +LOCAL +DEFAULT +7 sl8
-.* TLS +LOCAL +HIDDEN +8 sH1
-.* OBJECT +LOCAL +HIDDEN +ABS _DYNAMIC
-.* TLS +LOCAL +HIDDEN +7 sh3
-.* TLS +LOCAL +HIDDEN +8 sH2
-.* TLS +LOCAL +HIDDEN +8 sH7
-.* OBJECT +LOCAL +HIDDEN +ABS _PROCEDURE_LINKAGE_TABLE_
-.* TLS +LOCAL +HIDDEN +7 sh7
-.* TLS +LOCAL +HIDDEN +7 sh8
-.* TLS +LOCAL +HIDDEN +8 sH4
-.* TLS +LOCAL +HIDDEN +7 sh4
-.* TLS +LOCAL +HIDDEN +8 sH3
-.* TLS +LOCAL +HIDDEN +7 sh5
-.* TLS +LOCAL +HIDDEN +8 sH5
-.* TLS +LOCAL +HIDDEN +8 sH6
-.* TLS +LOCAL +HIDDEN +8 sH8
-.* TLS +LOCAL +HIDDEN +7 sh1
-.* OBJECT +LOCAL +HIDDEN +ABS _GLOBAL_OFFSET_TABLE_
-.* TLS +LOCAL +HIDDEN +7 sh2
-.* TLS +LOCAL +HIDDEN +7 sh6
+.* TLS +LOCAL +DEFAULT +8 sH1
+.* OBJECT +LOCAL +DEFAULT +ABS _DYNAMIC
+.* TLS +LOCAL +DEFAULT +7 sh3
+.* TLS +LOCAL +DEFAULT +8 sH2
+.* TLS +LOCAL +DEFAULT +8 sH7
+.* OBJECT +LOCAL +DEFAULT +ABS _PROCEDURE_LINKAGE_TABLE_
+.* TLS +LOCAL +DEFAULT +7 sh7
+.* TLS +LOCAL +DEFAULT +7 sh8
+.* TLS +LOCAL +DEFAULT +8 sH4
+.* TLS +LOCAL +DEFAULT +7 sh4
+.* TLS +LOCAL +DEFAULT +8 sH3
+.* TLS +LOCAL +DEFAULT +7 sh5
+.* TLS +LOCAL +DEFAULT +8 sH5
+.* TLS +LOCAL +DEFAULT +8 sH6
+.* TLS +LOCAL +DEFAULT +8 sH8
+.* TLS +LOCAL +DEFAULT +7 sh1
+.* OBJECT +LOCAL +DEFAULT +ABS _GLOBAL_OFFSET_TABLE_
+.* TLS +LOCAL +DEFAULT +7 sh2
+.* TLS +LOCAL +DEFAULT +7 sh6
.* TLS +GLOBAL +DEFAULT +7 sg8
.* TLS +GLOBAL +DEFAULT +7 sg3
.* TLS +GLOBAL +DEFAULT +7 sg4
diff --git a/ld/testsuite/ld-sparc/tlssunpic64.rd b/ld/testsuite/ld-sparc/tlssunpic64.rd
index 44d468b27b..35a7c79f12 100644
--- a/ld/testsuite/ld-sparc/tlssunpic64.rd
+++ b/ld/testsuite/ld-sparc/tlssunpic64.rd
@@ -101,25 +101,25 @@ Symbol table '\.symtab' contains [0-9]+ entries:
.* TLS +LOCAL +DEFAULT +7 sl6
.* TLS +LOCAL +DEFAULT +7 sl7
.* TLS +LOCAL +DEFAULT +7 sl8
-.* TLS +LOCAL +HIDDEN +8 sH1
-.* OBJECT +LOCAL +HIDDEN +ABS _DYNAMIC
-.* TLS +LOCAL +HIDDEN +7 sh3
-.* TLS +LOCAL +HIDDEN +8 sH2
-.* TLS +LOCAL +HIDDEN +8 sH7
-.* OBJECT +LOCAL +HIDDEN +ABS _PROCEDURE_LINKAGE_TABLE_
-.* TLS +LOCAL +HIDDEN +7 sh7
-.* TLS +LOCAL +HIDDEN +7 sh8
-.* TLS +LOCAL +HIDDEN +8 sH4
-.* TLS +LOCAL +HIDDEN +7 sh4
-.* TLS +LOCAL +HIDDEN +8 sH3
-.* TLS +LOCAL +HIDDEN +7 sh5
-.* TLS +LOCAL +HIDDEN +8 sH5
-.* TLS +LOCAL +HIDDEN +8 sH6
-.* TLS +LOCAL +HIDDEN +8 sH8
-.* TLS +LOCAL +HIDDEN +7 sh1
-.* OBJECT +LOCAL +HIDDEN +ABS _GLOBAL_OFFSET_TABLE_
-.* TLS +LOCAL +HIDDEN +7 sh2
-.* TLS +LOCAL +HIDDEN +7 sh6
+.* TLS +LOCAL +DEFAULT +8 sH1
+.* OBJECT +LOCAL +DEFAULT +ABS _DYNAMIC
+.* TLS +LOCAL +DEFAULT +7 sh3
+.* TLS +LOCAL +DEFAULT +8 sH2
+.* TLS +LOCAL +DEFAULT +8 sH7
+.* OBJECT +LOCAL +DEFAULT +ABS _PROCEDURE_LINKAGE_TABLE_
+.* TLS +LOCAL +DEFAULT +7 sh7
+.* TLS +LOCAL +DEFAULT +7 sh8
+.* TLS +LOCAL +DEFAULT +8 sH4
+.* TLS +LOCAL +DEFAULT +7 sh4
+.* TLS +LOCAL +DEFAULT +8 sH3
+.* TLS +LOCAL +DEFAULT +7 sh5
+.* TLS +LOCAL +DEFAULT +8 sH5
+.* TLS +LOCAL +DEFAULT +8 sH6
+.* TLS +LOCAL +DEFAULT +8 sH8
+.* TLS +LOCAL +DEFAULT +7 sh1
+.* OBJECT +LOCAL +DEFAULT +ABS _GLOBAL_OFFSET_TABLE_
+.* TLS +LOCAL +DEFAULT +7 sh2
+.* TLS +LOCAL +DEFAULT +7 sh6
.* TLS +GLOBAL +DEFAULT +7 sg8
.* TLS +GLOBAL +DEFAULT +7 sg3
.* TLS +GLOBAL +DEFAULT +7 sg4
diff --git a/ld/testsuite/ld-x86-64/tlsbin.rd b/ld/testsuite/ld-x86-64/tlsbin.rd
index 3f0556ca07..03e5efcc9e 100644
--- a/ld/testsuite/ld-x86-64/tlsbin.rd
+++ b/ld/testsuite/ld-x86-64/tlsbin.rd
@@ -109,8 +109,8 @@ Symbol table '\.symtab' contains [0-9]+ entries:
.* TLS +LOCAL +DEFAULT +10 bl6
.* TLS +LOCAL +DEFAULT +10 bl7
.* TLS +LOCAL +DEFAULT +10 bl8
-.* OBJECT +LOCAL +HIDDEN +11 _DYNAMIC
-.* OBJECT +LOCAL +HIDDEN +13 _GLOBAL_OFFSET_TABLE_
+.* OBJECT +LOCAL +DEFAULT +11 _DYNAMIC
+.* OBJECT +LOCAL +DEFAULT +13 _GLOBAL_OFFSET_TABLE_
.* TLS +GLOBAL +DEFAULT +9 sg8
.* TLS +GLOBAL +DEFAULT +10 bg8
.* TLS +GLOBAL +DEFAULT +10 bg6
diff --git a/ld/testsuite/ld-x86-64/tlsbindesc.rd b/ld/testsuite/ld-x86-64/tlsbindesc.rd
index dab8c5b2fe..7e94022f13 100644
--- a/ld/testsuite/ld-x86-64/tlsbindesc.rd
+++ b/ld/testsuite/ld-x86-64/tlsbindesc.rd
@@ -100,9 +100,9 @@ Symbol table '\.symtab' contains [0-9]+ entries:
+[0-9]+: 0+94 +0 +TLS +LOCAL +DEFAULT +8 bl6
+[0-9]+: 0+98 +0 +TLS +LOCAL +DEFAULT +8 bl7
+[0-9]+: 0+9c +0 +TLS +LOCAL +DEFAULT +8 bl8
- +[0-9]+: 0+a0 +0 +TLS +LOCAL +HIDDEN +7 _TLS_MODULE_BASE_
- +[0-9]+: 0+601258 +0 +OBJECT +LOCAL +HIDDEN +9 _DYNAMIC
- +[0-9]+: 0+601378 +0 +OBJECT +LOCAL +HIDDEN +11 _GLOBAL_OFFSET_TABLE_
+ +[0-9]+: 0+a0 +0 +TLS +LOCAL +DEFAULT +7 _TLS_MODULE_BASE_
+ +[0-9]+: 0+601258 +0 +OBJECT +LOCAL +DEFAULT +9 _DYNAMIC
+ +[0-9]+: 0+601378 +0 +OBJECT +LOCAL +DEFAULT +11 _GLOBAL_OFFSET_TABLE_
+[0-9]+: 0+1c +0 +TLS +GLOBAL +DEFAULT +7 sg8
+[0-9]+: 0+7c +0 +TLS +GLOBAL +DEFAULT +8 bg8
+[0-9]+: 0+74 +0 +TLS +GLOBAL +DEFAULT +8 bg6
diff --git a/ld/testsuite/ld-x86-64/tlsdesc.rd b/ld/testsuite/ld-x86-64/tlsdesc.rd
index e3613520d5..662b639304 100644
--- a/ld/testsuite/ld-x86-64/tlsdesc.rd
+++ b/ld/testsuite/ld-x86-64/tlsdesc.rd
@@ -127,25 +127,25 @@ Symbol table '\.symtab' contains [0-9]+ entries:
+[0-9]+: 0+34 +0 +TLS +LOCAL +DEFAULT +8 sl6
+[0-9]+: 0+38 +0 +TLS +LOCAL +DEFAULT +8 sl7
+[0-9]+: 0+3c +0 +TLS +LOCAL +DEFAULT +8 sl8
- +[0-9]+: 0+60 +0 +TLS +LOCAL +HIDDEN +9 sH1
- +[0-9]+: 0+ +0 +TLS +LOCAL +HIDDEN +8 _TLS_MODULE_BASE_
- +[0-9]+: 0+2011b8 +0 +OBJECT +LOCAL +HIDDEN +ABS _DYNAMIC
- +[0-9]+: 0+48 +0 +TLS +LOCAL +HIDDEN +8 sh3
- +[0-9]+: 0+64 +0 +TLS +LOCAL +HIDDEN +9 sH2
- +[0-9]+: 0+78 +0 +TLS +LOCAL +HIDDEN +9 sH7
- +[0-9]+: 0+58 +0 +TLS +LOCAL +HIDDEN +8 sh7
- +[0-9]+: 0+5c +0 +TLS +LOCAL +HIDDEN +8 sh8
- +[0-9]+: 0+6c +0 +TLS +LOCAL +HIDDEN +9 sH4
- +[0-9]+: 0+4c +0 +TLS +LOCAL +HIDDEN +8 sh4
- +[0-9]+: 0+68 +0 +TLS +LOCAL +HIDDEN +9 sH3
- +[0-9]+: 0+50 +0 +TLS +LOCAL +HIDDEN +8 sh5
- +[0-9]+: 0+70 +0 +TLS +LOCAL +HIDDEN +9 sH5
- +[0-9]+: 0+74 +0 +TLS +LOCAL +HIDDEN +9 sH6
- +[0-9]+: 0+7c +0 +TLS +LOCAL +HIDDEN +9 sH8
- +[0-9]+: 0+40 +0 +TLS +LOCAL +HIDDEN +8 sh1
- +[0-9]+: 0+201350 +0 +OBJECT +LOCAL +HIDDEN +ABS _GLOBAL_OFFSET_TABLE_
- +[0-9]+: 0+44 +0 +TLS +LOCAL +HIDDEN +8 sh2
- +[0-9]+: 0+54 +0 +TLS +LOCAL +HIDDEN +8 sh6
+ +[0-9]+: 0+60 +0 +TLS +LOCAL +DEFAULT +9 sH1
+ +[0-9]+: 0+ +0 +TLS +LOCAL +DEFAULT +8 _TLS_MODULE_BASE_
+ +[0-9]+: 0+2011b8 +0 +OBJECT +LOCAL +DEFAULT +ABS _DYNAMIC
+ +[0-9]+: 0+48 +0 +TLS +LOCAL +DEFAULT +8 sh3
+ +[0-9]+: 0+64 +0 +TLS +LOCAL +DEFAULT +9 sH2
+ +[0-9]+: 0+78 +0 +TLS +LOCAL +DEFAULT +9 sH7
+ +[0-9]+: 0+58 +0 +TLS +LOCAL +DEFAULT +8 sh7
+ +[0-9]+: 0+5c +0 +TLS +LOCAL +DEFAULT +8 sh8
+ +[0-9]+: 0+6c +0 +TLS +LOCAL +DEFAULT +9 sH4
+ +[0-9]+: 0+4c +0 +TLS +LOCAL +DEFAULT +8 sh4
+ +[0-9]+: 0+68 +0 +TLS +LOCAL +DEFAULT +9 sH3
+ +[0-9]+: 0+50 +0 +TLS +LOCAL +DEFAULT +8 sh5
+ +[0-9]+: 0+70 +0 +TLS +LOCAL +DEFAULT +9 sH5
+ +[0-9]+: 0+74 +0 +TLS +LOCAL +DEFAULT +9 sH6
+ +[0-9]+: 0+7c +0 +TLS +LOCAL +DEFAULT +9 sH8
+ +[0-9]+: 0+40 +0 +TLS +LOCAL +DEFAULT +8 sh1
+ +[0-9]+: 0+201350 +0 +OBJECT +LOCAL +DEFAULT +ABS _GLOBAL_OFFSET_TABLE_
+ +[0-9]+: 0+44 +0 +TLS +LOCAL +DEFAULT +8 sh2
+ +[0-9]+: 0+54 +0 +TLS +LOCAL +DEFAULT +8 sh6
+[0-9]+: 0+1c +0 +TLS +GLOBAL +DEFAULT +8 sg8
+[0-9]+: 0+8 +0 +TLS +GLOBAL +DEFAULT +8 sg3
+[0-9]+: 0+c +0 +TLS +GLOBAL +DEFAULT +8 sg4
diff --git a/ld/testsuite/ld-x86-64/tlsgdesc.rd b/ld/testsuite/ld-x86-64/tlsgdesc.rd
index 3d420323b4..61d2fa84f3 100644
--- a/ld/testsuite/ld-x86-64/tlsgdesc.rd
+++ b/ld/testsuite/ld-x86-64/tlsgdesc.rd
@@ -89,8 +89,8 @@ Symbol table '\.symtab' contains [0-9]+ entries:
+[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +8 *
+[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +9 *
+[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +10 *
- +[0-9]+: [0-9a-f]+ +0 +OBJECT +LOCAL +HIDDEN +ABS _DYNAMIC
- +[0-9]+: [0-9a-f]+ +0 +OBJECT +LOCAL +HIDDEN +ABS _GLOBAL_OFFSET_TABLE_
+ +[0-9]+: [0-9a-f]+ +0 +OBJECT +LOCAL +DEFAULT +ABS _DYNAMIC
+ +[0-9]+: [0-9a-f]+ +0 +OBJECT +LOCAL +DEFAULT +ABS _GLOBAL_OFFSET_TABLE_
+[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG3
+[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG5
+[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG2
diff --git a/ld/testsuite/ld-x86-64/tlspic.rd b/ld/testsuite/ld-x86-64/tlspic.rd
index 86d7cc876c..798703e5cd 100644
--- a/ld/testsuite/ld-x86-64/tlspic.rd
+++ b/ld/testsuite/ld-x86-64/tlspic.rd
@@ -111,24 +111,24 @@ Symbol table '\.symtab' contains [0-9]+ entries:
.* TLS +LOCAL +DEFAULT +8 sl6
.* TLS +LOCAL +DEFAULT +8 sl7
.* TLS +LOCAL +DEFAULT +8 sl8
-.* TLS +LOCAL +HIDDEN +9 sH1
-.* OBJECT +LOCAL +HIDDEN +ABS _DYNAMIC
-.* TLS +LOCAL +HIDDEN +8 sh3
-.* TLS +LOCAL +HIDDEN +9 sH2
-.* TLS +LOCAL +HIDDEN +9 sH7
-.* TLS +LOCAL +HIDDEN +8 sh7
-.* TLS +LOCAL +HIDDEN +8 sh8
-.* TLS +LOCAL +HIDDEN +9 sH4
-.* TLS +LOCAL +HIDDEN +8 sh4
-.* TLS +LOCAL +HIDDEN +9 sH3
-.* TLS +LOCAL +HIDDEN +8 sh5
-.* TLS +LOCAL +HIDDEN +9 sH5
-.* TLS +LOCAL +HIDDEN +9 sH6
-.* TLS +LOCAL +HIDDEN +9 sH8
-.* TLS +LOCAL +HIDDEN +8 sh1
-.* OBJECT +LOCAL +HIDDEN +ABS _GLOBAL_OFFSET_TABLE_
-.* TLS +LOCAL +HIDDEN +8 sh2
-.* TLS +LOCAL +HIDDEN +8 sh6
+.* TLS +LOCAL +DEFAULT +9 sH1
+.* OBJECT +LOCAL +DEFAULT +ABS _DYNAMIC
+.* TLS +LOCAL +DEFAULT +8 sh3
+.* TLS +LOCAL +DEFAULT +9 sH2
+.* TLS +LOCAL +DEFAULT +9 sH7
+.* TLS +LOCAL +DEFAULT +8 sh7
+.* TLS +LOCAL +DEFAULT +8 sh8
+.* TLS +LOCAL +DEFAULT +9 sH4
+.* TLS +LOCAL +DEFAULT +8 sh4
+.* TLS +LOCAL +DEFAULT +9 sH3
+.* TLS +LOCAL +DEFAULT +8 sh5
+.* TLS +LOCAL +DEFAULT +9 sH5
+.* TLS +LOCAL +DEFAULT +9 sH6
+.* TLS +LOCAL +DEFAULT +9 sH8
+.* TLS +LOCAL +DEFAULT +8 sh1
+.* OBJECT +LOCAL +DEFAULT +ABS _GLOBAL_OFFSET_TABLE_
+.* TLS +LOCAL +DEFAULT +8 sh2
+.* TLS +LOCAL +DEFAULT +8 sh6
.* TLS +GLOBAL +DEFAULT +8 sg8
.* TLS +GLOBAL +DEFAULT +8 sg3
.* TLS +GLOBAL +DEFAULT +8 sg4
diff --git a/ld/testsuite/ld-xtensa/tlsbin.rd b/ld/testsuite/ld-xtensa/tlsbin.rd
index d70d2ebffe..dcb9fab7bb 100644
--- a/ld/testsuite/ld-xtensa/tlsbin.rd
+++ b/ld/testsuite/ld-xtensa/tlsbin.rd
@@ -92,8 +92,8 @@ Symbol table '\.symtab' contains [0-9]+ entries:
+[0-9]+: [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +8 sl6
+[0-9]+: [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +8 sl7
+[0-9]+: [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +8 sl8
- +[0-9]+: 0+ +0 +TLS +LOCAL +HIDDEN +8 _TLS_MODULE_BASE_
- +[0-9]+: [0-9a-f]+ +0 +OBJECT +LOCAL +HIDDEN +9 _DYNAMIC
+ +[0-9]+: 0+ +0 +TLS +LOCAL +DEFAULT +8 _TLS_MODULE_BASE_
+ +[0-9]+: [0-9a-f]+ +0 +OBJECT +LOCAL +DEFAULT +9 _DYNAMIC
+[0-9]+: [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +8 sg8
+[0-9]+: [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +8 sg3
+[0-9]+: [0-9a-f]+ +0 +TLS +GLOBAL +HIDDEN +8 sh3
diff --git a/ld/testsuite/ld-xtensa/tlspic.rd b/ld/testsuite/ld-xtensa/tlspic.rd
index 72cee3d90e..92d704e500 100644
--- a/ld/testsuite/ld-xtensa/tlspic.rd
+++ b/ld/testsuite/ld-xtensa/tlspic.rd
@@ -110,24 +110,24 @@ Symbol table '\.symtab' contains [0-9]+ entries:
+[0-9]+: 0+34 +0 +TLS +LOCAL +DEFAULT +7 sl6
+[0-9]+: 0+38 +0 +TLS +LOCAL +DEFAULT +7 sl7
+[0-9]+: 0+3c +0 +TLS +LOCAL +DEFAULT +7 sl8
- +[0-9]+: 0+60 +0 +TLS +LOCAL +HIDDEN +8 sH1
- +[0-9]+: 0+ +0 +TLS +LOCAL +HIDDEN +7 _TLS_MODULE_BASE_
- +[0-9]+: 0+144c +0 +OBJECT +LOCAL +HIDDEN +ABS _DYNAMIC
- +[0-9]+: 0+48 +0 +TLS +LOCAL +HIDDEN +7 sh3
- +[0-9]+: 0+64 +0 +TLS +LOCAL +HIDDEN +8 sH2
- +[0-9]+: 0+78 +0 +TLS +LOCAL +HIDDEN +8 sH7
- +[0-9]+: 0+58 +0 +TLS +LOCAL +HIDDEN +7 sh7
- +[0-9]+: 0+5c +0 +TLS +LOCAL +HIDDEN +7 sh8
- +[0-9]+: 0+6c +0 +TLS +LOCAL +HIDDEN +8 sH4
- +[0-9]+: 0+4c +0 +TLS +LOCAL +HIDDEN +7 sh4
- +[0-9]+: 0+68 +0 +TLS +LOCAL +HIDDEN +8 sH3
- +[0-9]+: 0+50 +0 +TLS +LOCAL +HIDDEN +7 sh5
- +[0-9]+: 0+70 +0 +TLS +LOCAL +HIDDEN +8 sH5
- +[0-9]+: 0+74 +0 +TLS +LOCAL +HIDDEN +8 sH6
- +[0-9]+: 0+7c +0 +TLS +LOCAL +HIDDEN +8 sH8
- +[0-9]+: 0+40 +0 +TLS +LOCAL +HIDDEN +7 sh1
- +[0-9]+: 0+44 +0 +TLS +LOCAL +HIDDEN +7 sh2
- +[0-9]+: 0+54 +0 +TLS +LOCAL +HIDDEN +7 sh6
+ +[0-9]+: 0+60 +0 +TLS +LOCAL +DEFAULT +8 sH1
+ +[0-9]+: 0+ +0 +TLS +LOCAL +DEFAULT +7 _TLS_MODULE_BASE_
+ +[0-9]+: 0+144c +0 +OBJECT +LOCAL +DEFAULT +ABS _DYNAMIC
+ +[0-9]+: 0+48 +0 +TLS +LOCAL +DEFAULT +7 sh3
+ +[0-9]+: 0+64 +0 +TLS +LOCAL +DEFAULT +8 sH2
+ +[0-9]+: 0+78 +0 +TLS +LOCAL +DEFAULT +8 sH7
+ +[0-9]+: 0+58 +0 +TLS +LOCAL +DEFAULT +7 sh7
+ +[0-9]+: 0+5c +0 +TLS +LOCAL +DEFAULT +7 sh8
+ +[0-9]+: 0+6c +0 +TLS +LOCAL +DEFAULT +8 sH4
+ +[0-9]+: 0+4c +0 +TLS +LOCAL +DEFAULT +7 sh4
+ +[0-9]+: 0+68 +0 +TLS +LOCAL +DEFAULT +8 sH3
+ +[0-9]+: 0+50 +0 +TLS +LOCAL +DEFAULT +7 sh5
+ +[0-9]+: 0+70 +0 +TLS +LOCAL +DEFAULT +8 sH5
+ +[0-9]+: 0+74 +0 +TLS +LOCAL +DEFAULT +8 sH6
+ +[0-9]+: 0+7c +0 +TLS +LOCAL +DEFAULT +8 sH8
+ +[0-9]+: 0+40 +0 +TLS +LOCAL +DEFAULT +7 sh1
+ +[0-9]+: 0+44 +0 +TLS +LOCAL +DEFAULT +7 sh2
+ +[0-9]+: 0+54 +0 +TLS +LOCAL +DEFAULT +7 sh6
+[0-9]+: 0+1c +0 +TLS +GLOBAL +DEFAULT +7 sg8
+[0-9]+: 0+8 +0 +TLS +GLOBAL +DEFAULT +7 sg3
+[0-9]+: 0+c +0 +TLS +GLOBAL +DEFAULT +7 sg4