From: Alan Modra Date: Wed, 17 Aug 2005 10:04:33 +0000 (+0000) Subject: bfd/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8d1d654fb401245cefa690a03e61f56cf953999e;p=binutils-gdb.git bfd/ * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Move assert later. * elfxx-mips.c (_bfd_mips_elf_hide_symbol): Cope with being called without any got section. ld/testsuite/ * ld-alpha/tlsbin.rd: Update. * ld-alpha/tlsbinr.rd: Update. * ld-cris/locref1.d: Update. * ld-cris/locref2.d: Update. * ld-i386/tlsbin.rd: Update. * ld-ia64/tlsbin.rd: Update. * ld-powerpc/tlsexe.r: Update. * ld-powerpc/tlsexe32.r: Update. * ld-powerpc/tlsexetoc.r: Update. * ld-s390/tlsbin.rd: Update. * ld-s390/tlsbin_64.rd: Update. * ld-sparc/tlssunbin32.rd: Update. * ld-sparc/tlssunbin64.rd: Update. * ld-x86-64/tlsbin.rd: Update. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 7d0d5f36dfb..52e65fbd3f0 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2005-08-17 Alan Modra + + * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Move assert later. + * elfxx-mips.c (_bfd_mips_elf_hide_symbol): Cope with being called + without any got section. + 2005-08-17 Danny Smith * cofflink.c (_bfd_coff_generic_relocate_section): Correct diff --git a/bfd/elf32-cris.c b/bfd/elf32-cris.c index ced86c34d8a..618210a1215 100644 --- a/bfd/elf32-cris.c +++ b/bfd/elf32-cris.c @@ -2078,9 +2078,6 @@ elf_cris_adjust_gotplt_to_got (h, p) PTR p; { struct bfd_link_info *info = (struct bfd_link_info *) p; - bfd *dynobj = elf_hash_table (info)->dynobj; - - BFD_ASSERT (dynobj != NULL); if (h->root.root.type == bfd_link_hash_warning) h = (struct elf_cris_link_hash_entry *) h->root.root.u.i.link; @@ -2100,9 +2097,13 @@ elf_cris_adjust_gotplt_to_got (h, p) else { /* No GOT entry for this symbol. We need to create one. */ - asection *sgot = bfd_get_section_by_name (dynobj, ".got"); - asection *srelgot - = bfd_get_section_by_name (dynobj, ".rela.got"); + bfd *dynobj = elf_hash_table (info)->dynobj; + asection *sgot; + asection *srelgot; + + BFD_ASSERT (dynobj != NULL); + sgot = bfd_get_section_by_name (dynobj, ".got"); + srelgot = bfd_get_section_by_name (dynobj, ".rela.got"); /* Put an accurate refcount there. */ h->root.got.refcount = h->gotplt_refcount; diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c index 53b5c9ee918..389c2affa3b 100644 --- a/bfd/elfxx-mips.c +++ b/bfd/elfxx-mips.c @@ -8424,11 +8424,10 @@ _bfd_mips_elf_hide_symbol (struct bfd_link_info *info, h->forced_local = force_local; dynobj = elf_hash_table (info)->dynobj; - if (dynobj != NULL && force_local && h->root.type != STT_TLS) + if (dynobj != NULL && force_local && h->root.type != STT_TLS + && (got = mips_elf_got_section (dynobj, FALSE)) != NULL + && (g = mips_elf_section_data (got)->u.got_info) != NULL) { - got = mips_elf_got_section (dynobj, FALSE); - g = mips_elf_section_data (got)->u.got_info; - if (g->next) { struct mips_got_entry e; diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 0b7dc41e7d7..14e087781a3 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,20 @@ +2005-08-17 Alan Modra + + * ld-alpha/tlsbin.rd: Update. + * ld-alpha/tlsbinr.rd: Update. + * ld-cris/locref1.d: Update. + * ld-cris/locref2.d: Update. + * ld-i386/tlsbin.rd: Update. + * ld-ia64/tlsbin.rd: Update. + * ld-powerpc/tlsexe.r: Update. + * ld-powerpc/tlsexe32.r: Update. + * ld-powerpc/tlsexetoc.r: Update. + * ld-s390/tlsbin.rd: Update. + * ld-s390/tlsbin_64.rd: Update. + * ld-sparc/tlssunbin32.rd: Update. + * ld-sparc/tlssunbin64.rd: Update. + * ld-x86-64/tlsbin.rd: Update. + 2005-08-16 Hans-Peter Nilsson * ld-cris/dso-1.s: Add missing alignment directive. diff --git a/ld/testsuite/ld-alpha/tlsbin.rd b/ld/testsuite/ld-alpha/tlsbin.rd index 32c92680f55..8a5a78ab397 100644 --- a/ld/testsuite/ld-alpha/tlsbin.rd +++ b/ld/testsuite/ld-alpha/tlsbin.rd @@ -99,17 +99,18 @@ 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 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 [0-9 ]+: [0-9a-f]+ +0 TLS +GLOBAL DEFAULT +10 bg3 -[0-9 ]+: [0-9a-f]+ +0 OBJECT +GLOBAL HIDDEN +11 _DYNAMIC [0-9 ]+: [0-9a-f]+ +0 TLS +GLOBAL DEFAULT +9 sg3 [0-9 ]+: [0-9a-f]+ +0 TLS +GLOBAL HIDDEN +9 sh3 [0-9 ]+: [0-9a-f]+ +0 TLS +GLOBAL DEFAULT +UND sG2 [0-9 ]+: [0-9a-f]+ +0 TLS +GLOBAL DEFAULT +9 sg4 [0-9 ]+: [0-9a-f]+ +0 TLS +GLOBAL DEFAULT +9 sg5 -[0-9 ]+: [0-9a-f]+ +0 OBJECT +GLOBAL HIDDEN +12 _PROCEDURE_LINKAGE_TABLE_ [0-9 ]+: [0-9a-f]+ +0 TLS +GLOBAL DEFAULT +10 bg5 [0-9 ]+: [0-9a-f]+ +4 FUNC +GLOBAL DEFAULT +UND __tls_get_addr [0-9 ]+: [0-9a-f]+ +0 TLS +GLOBAL HIDDEN +9 sh7 @@ -127,7 +128,6 @@ Symbol table '.symtab' contains [0-9]+ entries: [0-9 ]+: [0-9a-f]+ +0 TLS +GLOBAL DEFAULT +9 sg6 [0-9 ]+: [0-9a-f]+ +0 TLS +GLOBAL DEFAULT +9 sg7 [0-9 ]+: [0-9a-f]+ +0 NOTYPE +GLOBAL DEFAULT +ABS _edata -[0-9 ]+: [0-9a-f]+ +0 OBJECT +GLOBAL HIDDEN +13 _GLOBAL_OFFSET_TABLE_ [0-9 ]+: [0-9a-f]+ +0 NOTYPE +GLOBAL DEFAULT +ABS _end [0-9 ]+: [0-9a-f]+ +0 TLS +GLOBAL HIDDEN +9 sh2 [0-9 ]+: [0-9a-f]+ +0 TLS +GLOBAL HIDDEN +9 sh6 diff --git a/ld/testsuite/ld-alpha/tlsbinr.rd b/ld/testsuite/ld-alpha/tlsbinr.rd index 314829334c9..8497075ac89 100644 --- a/ld/testsuite/ld-alpha/tlsbinr.rd +++ b/ld/testsuite/ld-alpha/tlsbinr.rd @@ -94,17 +94,18 @@ 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 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 [0-9 ]+: [0-9a-f]+ +0 TLS +GLOBAL DEFAULT +10 bg3 -[0-9 ]+: [0-9a-f]+ +0 OBJECT +GLOBAL HIDDEN +11 _DYNAMIC [0-9 ]+: [0-9a-f]+ +0 TLS +GLOBAL DEFAULT +9 sg3 [0-9 ]+: [0-9a-f]+ +0 TLS +GLOBAL HIDDEN +9 sh3 [0-9 ]+: [0-9a-f]+ +0 TLS +GLOBAL DEFAULT +UND sG2 [0-9 ]+: [0-9a-f]+ +0 TLS +GLOBAL DEFAULT +9 sg4 [0-9 ]+: [0-9a-f]+ +0 TLS +GLOBAL DEFAULT +9 sg5 -[0-9 ]+: [0-9a-f]+ +0 OBJECT +GLOBAL HIDDEN +12 _PROCEDURE_LINKAGE_TABLE_ [0-9 ]+: [0-9a-f]+ +0 TLS +GLOBAL DEFAULT +10 bg5 [0-9 ]+: [0-9a-f]+ +4 FUNC +GLOBAL DEFAULT +UND __tls_get_addr [0-9 ]+: [0-9a-f]+ +0 TLS +GLOBAL HIDDEN +9 sh7 @@ -122,7 +123,6 @@ Symbol table '.symtab' contains [0-9]+ entries: [0-9 ]+: [0-9a-f]+ +0 TLS +GLOBAL DEFAULT +9 sg6 [0-9 ]+: [0-9a-f]+ +0 TLS +GLOBAL DEFAULT +9 sg7 [0-9 ]+: [0-9a-f]+ +0 NOTYPE +GLOBAL DEFAULT +ABS _edata -[0-9 ]+: [0-9a-f]+ +0 OBJECT +GLOBAL HIDDEN +13 _GLOBAL_OFFSET_TABLE_ [0-9 ]+: [0-9a-f]+ +0 NOTYPE +GLOBAL DEFAULT +ABS _end [0-9 ]+: [0-9a-f]+ +0 TLS +GLOBAL HIDDEN +9 sh2 [0-9 ]+: [0-9a-f]+ +0 TLS +GLOBAL HIDDEN +9 sh6 diff --git a/ld/testsuite/ld-cris/locref1.d b/ld/testsuite/ld-cris/locref1.d index c3e60a1a33d..e38c642fe34 100644 --- a/ld/testsuite/ld-cris/locref1.d +++ b/ld/testsuite/ld-cris/locref1.d @@ -11,11 +11,10 @@ SYMBOL TABLE: #... +0+82084 l O \.got 0+ \.hidden _GLOBAL_OFFSET_TABLE_ 0+80076 g F \.text 0+2 expfn 0+82090 g O \.data 0+4 expobj #... -0+82084 g O \.got 0+ \.hidden _GLOBAL_OFFSET_TABLE_ -#... Disassembly of section \.text: #... 0+80078 : diff --git a/ld/testsuite/ld-cris/locref2.d b/ld/testsuite/ld-cris/locref2.d index c68b6e80980..8b51d45c55d 100644 --- a/ld/testsuite/ld-cris/locref2.d +++ b/ld/testsuite/ld-cris/locref2.d @@ -11,11 +11,10 @@ SYMBOL TABLE: #... +0+82088 l O \.got 0+ \.hidden _GLOBAL_OFFSET_TABLE_ 0+ w \*UND\* 0+ expfn 0+ w \*UND\* 0+ expobj #... -0+82088 g O \.got 0+ \.hidden _GLOBAL_OFFSET_TABLE_ -#... Disassembly of section \.text: #... 0+8007c : diff --git a/ld/testsuite/ld-i386/tlsbin.rd b/ld/testsuite/ld-i386/tlsbin.rd index 544538d459b..b4856260840 100644 --- a/ld/testsuite/ld-i386/tlsbin.rd +++ b/ld/testsuite/ld-i386/tlsbin.rd @@ -121,13 +121,14 @@ Symbol table '.symtab' contains 73 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+ +0 TLS +GLOBAL DEFAULT UND sG3 +[0-9]+: 0000001c +0 TLS +GLOBAL DEFAULT +9 sg8 +[0-9]+: 0000007c +0 TLS +GLOBAL DEFAULT +10 bg8 +[0-9]+: 00000074 +0 TLS +GLOBAL DEFAULT +10 bg6 +[0-9]+: 0+ +0 TLS +GLOBAL DEFAULT UND sG5 +[0-9]+: 00000068 +0 TLS +GLOBAL DEFAULT +10 bg3 - +[0-9]+: 0+804a060 +0 OBJECT GLOBAL HIDDEN +11 _DYNAMIC +[0-9]+: 00000008 +0 TLS +GLOBAL DEFAULT +9 sg3 +[0-9]+: 0+ +0 TLS +GLOBAL DEFAULT UND sG7 +[0-9]+: 00000048 +0 TLS +GLOBAL HIDDEN +9 sh3 @@ -152,7 +153,6 @@ Symbol table '.symtab' contains 73 entries: +[0-9]+: 00000014 +0 TLS +GLOBAL DEFAULT +9 sg6 +[0-9]+: 00000018 +0 TLS +GLOBAL DEFAULT +9 sg7 +[0-9]+: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _edata - +[0-9]+: [0-9a-f]+ +0 OBJECT GLOBAL HIDDEN 13 _GLOBAL_OFFSET_TABLE_ +[0-9]+: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _end +[0-9]+: 00000044 +0 TLS +GLOBAL HIDDEN +9 sh2 +[0-9]+: 00000054 +0 TLS +GLOBAL HIDDEN +9 sh6 diff --git a/ld/testsuite/ld-ia64/tlsbin.rd b/ld/testsuite/ld-ia64/tlsbin.rd index 86997a3e541..1fff20301be 100644 --- a/ld/testsuite/ld-ia64/tlsbin.rd +++ b/ld/testsuite/ld-ia64/tlsbin.rd @@ -103,11 +103,12 @@ Symbol table '.symtab' contains 69 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_ .* TLS +GLOBAL DEFAULT +11 sg8 .* TLS +GLOBAL DEFAULT +12 bg8 .* TLS +GLOBAL DEFAULT +12 bg6 .* TLS +GLOBAL DEFAULT +12 bg3 -.* OBJECT +GLOBAL HIDDEN +13 _DYNAMIC .* TLS +GLOBAL DEFAULT +11 sg3 .* TLS +GLOBAL HIDDEN +11 sh3 .* TLS +GLOBAL DEFAULT +UND sG2 @@ -130,7 +131,6 @@ Symbol table '.symtab' contains 69 entries: .* TLS +GLOBAL DEFAULT +11 sg6 .* TLS +GLOBAL DEFAULT +11 sg7 .* NOTYPE +GLOBAL DEFAULT +ABS _edata -.* OBJECT +GLOBAL HIDDEN +14 _GLOBAL_OFFSET_TABLE_ .* NOTYPE +GLOBAL DEFAULT +ABS _end .* TLS +GLOBAL HIDDEN +11 sh2 .* TLS +GLOBAL HIDDEN +11 sh6 diff --git a/ld/testsuite/ld-powerpc/tlsexe.r b/ld/testsuite/ld-powerpc/tlsexe.r index 7c501bd04e7..2e4fab64e63 100644 --- a/ld/testsuite/ld-powerpc/tlsexe.r +++ b/ld/testsuite/ld-powerpc/tlsexe.r @@ -98,8 +98,8 @@ Symbol table '\.symtab' contains 40 entries: .* TLS +LOCAL +DEFAULT +9 ie4 .* TLS +LOCAL +DEFAULT +9 le4 .* TLS +LOCAL +DEFAULT +9 le5 +.* OBJECT +LOCAL +HIDDEN +11 _DYNAMIC .* FUNC +LOCAL +DEFAULT +UND \.__tls_get_addr -.* OBJECT +GLOBAL HIDDEN +11 _DYNAMIC .* GLOBAL DEFAULT +UND gd .* GLOBAL DEFAULT +10 le0 .* GLOBAL DEFAULT +UND __tls_get_addr diff --git a/ld/testsuite/ld-powerpc/tlsexe32.r b/ld/testsuite/ld-powerpc/tlsexe32.r index eacc6b0299d..aff95b7246c 100644 --- a/ld/testsuite/ld-powerpc/tlsexe32.r +++ b/ld/testsuite/ld-powerpc/tlsexe32.r @@ -95,7 +95,8 @@ Symbol table '\.symtab' contains 40 entries: .* TLS +LOCAL +DEFAULT +8 ie4 .* TLS +LOCAL +DEFAULT +8 le4 .* TLS +LOCAL +DEFAULT +8 le5 -.* OBJECT +GLOBAL HIDDEN +10 _DYNAMIC +.* OBJECT +LOCAL +HIDDEN +10 _DYNAMIC +.* OBJECT +LOCAL +HIDDEN +11 _GLOBAL_OFFSET_TABLE_ .* TLS +GLOBAL DEFAULT +UND gd .* TLS +GLOBAL DEFAULT +9 le0 .* FUNC +GLOBAL DEFAULT +UND __tls_get_addr @@ -108,7 +109,6 @@ Symbol table '\.symtab' contains 40 entries: .* TLS +GLOBAL DEFAULT +9 ld1 .* NOTYPE +GLOBAL DEFAULT +ABS __bss_start .* NOTYPE +GLOBAL DEFAULT +ABS _edata -.* OBJECT +GLOBAL +HIDDEN +11 _GLOBAL_OFFSET_TABLE_ .* NOTYPE +GLOBAL DEFAULT +ABS _end .* TLS +GLOBAL DEFAULT +9 gd0 .* TLS +GLOBAL DEFAULT +9 ie0 diff --git a/ld/testsuite/ld-powerpc/tlsexetoc.r b/ld/testsuite/ld-powerpc/tlsexetoc.r index f252784376e..d6664cdd19a 100644 --- a/ld/testsuite/ld-powerpc/tlsexetoc.r +++ b/ld/testsuite/ld-powerpc/tlsexetoc.r @@ -97,8 +97,8 @@ Symbol table '\.symtab' contains 41 entries: .* TLS +LOCAL +DEFAULT +9 le4 .* TLS +LOCAL +DEFAULT +9 le5 .* NOTYPE +LOCAL +DEFAULT +12 \.Lie0 +.* OBJECT +LOCAL +HIDDEN +11 _DYNAMIC .* FUNC +LOCAL +DEFAULT +UND \.__tls_get_addr -.* OBJECT +GLOBAL HIDDEN +11 _DYNAMIC .* TLS +GLOBAL DEFAULT +UND gd .* TLS +GLOBAL DEFAULT +10 le0 .* FUNC +GLOBAL DEFAULT +UND __tls_get_addr diff --git a/ld/testsuite/ld-s390/tlsbin.rd b/ld/testsuite/ld-s390/tlsbin.rd index c4439dcca1f..1fa3469c763 100644 --- a/ld/testsuite/ld-s390/tlsbin.rd +++ b/ld/testsuite/ld-s390/tlsbin.rd @@ -110,12 +110,13 @@ Symbol table '.symtab' contains 68 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_ .* TLS +GLOBAL DEFAULT UND sG3 .* TLS +GLOBAL DEFAULT +9 sg8 .* TLS +GLOBAL DEFAULT +10 bg8 .* TLS +GLOBAL DEFAULT +10 bg6 .* TLS +GLOBAL DEFAULT +10 bg3 -.* OBJECT GLOBAL HIDDEN +11 _DYNAMIC .* TLS +GLOBAL DEFAULT +9 sg3 .* TLS +GLOBAL HIDDEN +9 sh3 .* TLS +GLOBAL DEFAULT UND sG2 @@ -139,7 +140,6 @@ Symbol table '.symtab' contains 68 entries: .* TLS +GLOBAL DEFAULT +9 sg6 .* TLS +GLOBAL DEFAULT +9 sg7 .* NOTYPE GLOBAL DEFAULT ABS _edata -.* OBJECT GLOBAL HIDDEN 12 _GLOBAL_OFFSET_TABLE_ .* NOTYPE GLOBAL DEFAULT ABS _end .* TLS +GLOBAL HIDDEN +9 sh2 .* TLS +GLOBAL HIDDEN +9 sh6 diff --git a/ld/testsuite/ld-s390/tlsbin_64.rd b/ld/testsuite/ld-s390/tlsbin_64.rd index aff1eca933a..34e96495e4a 100644 --- a/ld/testsuite/ld-s390/tlsbin_64.rd +++ b/ld/testsuite/ld-s390/tlsbin_64.rd @@ -110,12 +110,13 @@ Symbol table '.symtab' contains 68 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_ .* TLS +GLOBAL DEFAULT +UND sG3 .* TLS +GLOBAL DEFAULT +9 sg8 .* TLS +GLOBAL DEFAULT +10 bg8 .* TLS +GLOBAL DEFAULT +10 bg6 .* TLS +GLOBAL DEFAULT +10 bg3 -.* OBJECT +GLOBAL HIDDEN +11 _DYNAMIC .* TLS +GLOBAL DEFAULT +9 sg3 .* TLS +GLOBAL HIDDEN +9 sh3 .* TLS +GLOBAL DEFAULT +UND sG2 @@ -139,7 +140,6 @@ Symbol table '.symtab' contains 68 entries: .* TLS +GLOBAL DEFAULT +9 sg6 .* TLS +GLOBAL DEFAULT +9 sg7 .* NOTYPE +GLOBAL DEFAULT +ABS _edata -.* OBJECT +GLOBAL HIDDEN +12 _GLOBAL_OFFSET_TABLE_ .* NOTYPE +GLOBAL DEFAULT +ABS _end .* TLS +GLOBAL HIDDEN +9 sh2 .* TLS +GLOBAL HIDDEN +9 sh6 diff --git a/ld/testsuite/ld-sparc/tlssunbin32.rd b/ld/testsuite/ld-sparc/tlssunbin32.rd index 912d760f8da..4869131c9d2 100644 --- a/ld/testsuite/ld-sparc/tlssunbin32.rd +++ b/ld/testsuite/ld-sparc/tlssunbin32.rd @@ -90,18 +90,19 @@ Symbol table '.symtab' contains 67 entries: .* TLS +LOCAL +DEFAULT +8 bl6 .* TLS +LOCAL +DEFAULT +8 bl7 .* TLS +LOCAL +DEFAULT +8 bl8 +.* OBJECT +LOCAL +HIDDEN +9 _DYNAMIC +.* OBJECT +LOCAL +HIDDEN +ABS _PROCEDURE_LINKAGE_TABLE_ +.* OBJECT +LOCAL +HIDDEN +10 _GLOBAL_OFFSET_TABLE_ .* TLS +GLOBAL DEFAULT +7 sg8 .* TLS +GLOBAL DEFAULT +8 bg8 .* TLS +GLOBAL DEFAULT +8 bg6 .* TLS +GLOBAL DEFAULT +UND sG5 .* TLS +GLOBAL DEFAULT +8 bg3 -.* OBJECT +GLOBAL HIDDEN +9 _DYNAMIC .* TLS +GLOBAL DEFAULT +7 sg3 .* TLS +GLOBAL HIDDEN +7 sh3 .* TLS +GLOBAL DEFAULT +UND sG2 .* TLS +GLOBAL DEFAULT +7 sg4 .* TLS +GLOBAL DEFAULT +7 sg5 -.* OBJECT +GLOBAL HIDDEN +ABS _PROCEDURE_LINKAGE_TABLE_ .* TLS +GLOBAL DEFAULT +8 bg5 .* FUNC +GLOBAL DEFAULT +UND __tls_get_addr .* TLS +GLOBAL HIDDEN +7 sh7 @@ -120,7 +121,6 @@ Symbol table '.symtab' contains 67 entries: .* TLS +GLOBAL DEFAULT +7 sg6 .* TLS +GLOBAL DEFAULT +7 sg7 .* NOTYPE +GLOBAL DEFAULT +ABS _edata -.* OBJECT +GLOBAL +HIDDEN +10 _GLOBAL_OFFSET_TABLE_ .* NOTYPE +GLOBAL DEFAULT +ABS _end .* TLS +GLOBAL HIDDEN +7 sh2 .* TLS +GLOBAL HIDDEN +7 sh6 diff --git a/ld/testsuite/ld-sparc/tlssunbin64.rd b/ld/testsuite/ld-sparc/tlssunbin64.rd index 8a3a168cde1..4ce130b7250 100644 --- a/ld/testsuite/ld-sparc/tlssunbin64.rd +++ b/ld/testsuite/ld-sparc/tlssunbin64.rd @@ -90,18 +90,19 @@ Symbol table '.symtab' contains 67 entries: .* TLS +LOCAL +DEFAULT +8 bl6 .* TLS +LOCAL +DEFAULT +8 bl7 .* TLS +LOCAL +DEFAULT +8 bl8 +.* OBJECT +LOCAL +HIDDEN +9 _DYNAMIC +.* OBJECT +LOCAL +HIDDEN +ABS _PROCEDURE_LINKAGE_TABLE_ +.* OBJECT +LOCAL +HIDDEN +10 _GLOBAL_OFFSET_TABLE_ .* TLS +GLOBAL DEFAULT +7 sg8 .* TLS +GLOBAL DEFAULT +8 bg8 .* TLS +GLOBAL DEFAULT +8 bg6 .* TLS +GLOBAL DEFAULT +UND sG5 .* TLS +GLOBAL DEFAULT +8 bg3 -.* OBJECT +GLOBAL HIDDEN +9 _DYNAMIC .* TLS +GLOBAL DEFAULT +7 sg3 .* TLS +GLOBAL HIDDEN +7 sh3 .* TLS +GLOBAL DEFAULT +UND sG2 .* TLS +GLOBAL DEFAULT +7 sg4 .* TLS +GLOBAL DEFAULT +7 sg5 -.* OBJECT +GLOBAL HIDDEN +ABS _PROCEDURE_LINKAGE_TABLE_ .* TLS +GLOBAL DEFAULT +8 bg5 .* FUNC +GLOBAL DEFAULT +UND __tls_get_addr .* TLS +GLOBAL HIDDEN +7 sh7 @@ -120,7 +121,6 @@ Symbol table '.symtab' contains 67 entries: .* TLS +GLOBAL DEFAULT +7 sg6 .* TLS +GLOBAL DEFAULT +7 sg7 .* NOTYPE +GLOBAL DEFAULT +ABS _edata -.* OBJECT +GLOBAL +HIDDEN +10 _GLOBAL_OFFSET_TABLE_ .* NOTYPE +GLOBAL DEFAULT +ABS _end .* TLS +GLOBAL HIDDEN +7 sh2 .* TLS +GLOBAL HIDDEN +7 sh6 diff --git a/ld/testsuite/ld-x86-64/tlsbin.rd b/ld/testsuite/ld-x86-64/tlsbin.rd index 7a0c9a06d1f..dc3ef22b389 100644 --- a/ld/testsuite/ld-x86-64/tlsbin.rd +++ b/ld/testsuite/ld-x86-64/tlsbin.rd @@ -112,12 +112,13 @@ Symbol table '.symtab' contains 69 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_ .* TLS +GLOBAL DEFAULT +9 sg8 .* TLS +GLOBAL DEFAULT +10 bg8 .* TLS +GLOBAL DEFAULT +10 bg6 .* TLS +GLOBAL DEFAULT UND sG5 .* TLS +GLOBAL DEFAULT +10 bg3 -.* OBJECT GLOBAL HIDDEN +11 _DYNAMIC .* TLS +GLOBAL DEFAULT +9 sg3 .* TLS +GLOBAL HIDDEN +9 sh3 .* TLS +GLOBAL DEFAULT UND sG2 @@ -141,7 +142,6 @@ Symbol table '.symtab' contains 69 entries: .* TLS +GLOBAL DEFAULT +9 sg6 .* TLS +GLOBAL DEFAULT +9 sg7 .* NOTYPE GLOBAL DEFAULT ABS _edata -.* OBJECT GLOBAL HIDDEN 13 _GLOBAL_OFFSET_TABLE_ .* NOTYPE GLOBAL DEFAULT ABS _end .* TLS +GLOBAL HIDDEN +9 sh2 .* TLS +GLOBAL HIDDEN +9 sh6