From 8d1d654fb401245cefa690a03e61f56cf953999e Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 17 Aug 2005 10:04:33 +0000 Subject: [PATCH] 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. --- bfd/ChangeLog | 6 ++++++ bfd/elf32-cris.c | 13 +++++++------ bfd/elfxx-mips.c | 7 +++---- ld/testsuite/ChangeLog | 17 +++++++++++++++++ ld/testsuite/ld-alpha/tlsbin.rd | 6 +++--- ld/testsuite/ld-alpha/tlsbinr.rd | 6 +++--- ld/testsuite/ld-cris/locref1.d | 3 +-- ld/testsuite/ld-cris/locref2.d | 3 +-- ld/testsuite/ld-i386/tlsbin.rd | 4 ++-- ld/testsuite/ld-ia64/tlsbin.rd | 4 ++-- ld/testsuite/ld-powerpc/tlsexe.r | 2 +- ld/testsuite/ld-powerpc/tlsexe32.r | 4 ++-- ld/testsuite/ld-powerpc/tlsexetoc.r | 2 +- ld/testsuite/ld-s390/tlsbin.rd | 4 ++-- ld/testsuite/ld-s390/tlsbin_64.rd | 4 ++-- ld/testsuite/ld-sparc/tlssunbin32.rd | 6 +++--- ld/testsuite/ld-sparc/tlssunbin64.rd | 6 +++--- ld/testsuite/ld-x86-64/tlsbin.rd | 4 ++-- 18 files changed, 61 insertions(+), 40 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 7d0d5f3..52e65fb 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 ced86c3..618210a 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 53b5c9e..389c2af 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 0b7dc41..14e0877 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 32c9268..8a5a78a 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 3148293..8497075 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 c3e60a1..e38c642 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 c68b6e8..8b51d45 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 544538d..b485626 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 86997a3..1fff203 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 7c501bd..2e4fab6 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 eacc6b0..aff95b7 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 f252784..d6664cd 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 c4439dc..1fa3469 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 aff1eca..34e9649 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 912d760..4869131 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 8a3a168..4ce130b 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 7a0c9a0..dc3ef22 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 -- 2.7.4