From 73d14ad423dbf247edb243d8e11da0dec7cafebc Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 1 Oct 2004 02:19:04 +0000 Subject: [PATCH] * ld-powerpc/tls.s (gd, ld): Set tls type for undefined syms. * ld-powerpc/tls32.s (gd, ld): Likewise. * ld-powerpc/tlstoc.s (gd, ld): Likewise. * ld-powerpc/tlsso.r: Update. * ld-powerpc/tlsso32.r: Update. * ld-powerpc/tlstocso.r: Update. --- ld/testsuite/ChangeLog | 9 +++++++++ ld/testsuite/ld-powerpc/tls.s | 3 +++ ld/testsuite/ld-powerpc/tls32.s | 3 +++ ld/testsuite/ld-powerpc/tlsso.r | 8 ++++---- ld/testsuite/ld-powerpc/tlsso32.r | 8 ++++---- ld/testsuite/ld-powerpc/tlstoc.s | 3 +++ ld/testsuite/ld-powerpc/tlstocso.r | 8 ++++---- 7 files changed, 30 insertions(+), 12 deletions(-) diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 76de52b3067..35b9ec9ddea 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,12 @@ +2004-10-01 Alan Modra + + * ld-powerpc/tls.s (gd, ld): Set tls type for undefined syms. + * ld-powerpc/tls32.s (gd, ld): Likewise. + * ld-powerpc/tlstoc.s (gd, ld): Likewise. + * ld-powerpc/tlsso.r: Update. + * ld-powerpc/tlsso32.r: Update. + * ld-powerpc/tlstocso.r: Update. + 2004-09-30 Paul Brook * ld-arm/arm-elf.exp: Add test for --target2=abs. diff --git a/ld/testsuite/ld-powerpc/tls.s b/ld/testsuite/ld-powerpc/tls.s index 5ad9f3d64c8..a19b20f927d 100644 --- a/ld/testsuite/ld-powerpc/tls.s +++ b/ld/testsuite/ld-powerpc/tls.s @@ -19,6 +19,9 @@ ie4: .quad 0x56789abcdef01234 le4: .quad 0x6789abcdef012345 le5: .quad 0x789abcdef0123456 + .type gd,@tls_object + .type ld,@tls_object + .text _start: #extern syms diff --git a/ld/testsuite/ld-powerpc/tls32.s b/ld/testsuite/ld-powerpc/tls32.s index b8d0e3d11cf..4ba7f1575b2 100644 --- a/ld/testsuite/ld-powerpc/tls32.s +++ b/ld/testsuite/ld-powerpc/tls32.s @@ -19,6 +19,9 @@ ie4: .long 0x56789abc le4: .long 0x6789abcd le5: .long 0x789abcde + .type gd,@tls_object + .type ld,@tls_object + .text _start: #extern syms diff --git a/ld/testsuite/ld-powerpc/tlsso.r b/ld/testsuite/ld-powerpc/tlsso.r index 487d4a8fdc3..9cb00ff6d77 100644 --- a/ld/testsuite/ld-powerpc/tlsso.r +++ b/ld/testsuite/ld-powerpc/tlsso.r @@ -80,12 +80,12 @@ Symbol table '\.dynsym' contains 22 entries: +[0-9]+: [0-9a-f]+ +0 SECTION LOCAL +DEFAULT +11 +[0-9]+: [0-9a-f]+ +0 SECTION LOCAL +DEFAULT +15 +[0-9]+: 0+10700 +0 OBJECT +GLOBAL DEFAULT +ABS _DYNAMIC - +[0-9]+: 0+ +0 NOTYPE +GLOBAL DEFAULT +UND gd + +[0-9]+: 0+ +0 TLS +GLOBAL DEFAULT +UND gd +[0-9]+: 0+60 +0 TLS +GLOBAL DEFAULT +8 le0 +[0-9]+: 0+ +24 OBJECT +GLOBAL DEFAULT +UND __tls_get_addr +[0-9]+: 0+40 +0 TLS +GLOBAL DEFAULT +8 ld0 +[0-9]+: 0+68 +0 TLS +GLOBAL DEFAULT +8 le1 - +[0-9]+: 0+ +0 NOTYPE +GLOBAL DEFAULT +UND ld + +[0-9]+: 0+ +0 TLS +GLOBAL DEFAULT +UND ld +[0-9]+: [0-9a-f]+ +0 NOTYPE +GLOBAL DEFAULT +6 _start +[0-9]+: 0+50 +0 TLS +GLOBAL DEFAULT +8 ld2 +[0-9]+: 0+48 +0 TLS +GLOBAL DEFAULT +8 ld1 @@ -125,12 +125,12 @@ Symbol table '\.symtab' contains 42 entries: +[0-9]+: 0+30 +0 TLS +LOCAL +DEFAULT +7 le5 +[0-9]+: [0-9a-f]+ +0 NOTYPE +LOCAL +DEFAULT +6 \.__tls_get_addr +[0-9]+: 0+10700 +0 OBJECT +GLOBAL DEFAULT +ABS _DYNAMIC - +[0-9]+: 0+ +0 NOTYPE +GLOBAL DEFAULT +UND gd + +[0-9]+: 0+ +0 TLS +GLOBAL DEFAULT +UND gd +[0-9]+: 0+60 +0 TLS +GLOBAL DEFAULT +8 le0 +[0-9]+: 0+ +24 OBJECT +GLOBAL DEFAULT +UND __tls_get_addr +[0-9]+: 0+40 +0 TLS +GLOBAL DEFAULT +8 ld0 +[0-9]+: 0+68 +0 TLS +GLOBAL DEFAULT +8 le1 - +[0-9]+: 0+ +0 NOTYPE +GLOBAL DEFAULT +UND ld + +[0-9]+: 0+ +0 TLS +GLOBAL DEFAULT +UND ld +[0-9]+: [0-9a-f]+ +0 NOTYPE +GLOBAL DEFAULT +6 _start +[0-9]+: 0+50 +0 TLS +GLOBAL DEFAULT +8 ld2 +[0-9]+: 0+48 +0 TLS +GLOBAL DEFAULT +8 ld1 diff --git a/ld/testsuite/ld-powerpc/tlsso32.r b/ld/testsuite/ld-powerpc/tlsso32.r index d2dbe27f700..4ca2fcf5277 100644 --- a/ld/testsuite/ld-powerpc/tlsso32.r +++ b/ld/testsuite/ld-powerpc/tlsso32.r @@ -85,12 +85,12 @@ Symbol table '\.dynsym' contains 28 entries: +[0-9]+: 0+105f8 +0 SECTION LOCAL +DEFAULT +14 +[0-9]+: 0+1064c +0 SECTION LOCAL +DEFAULT +16 +[0-9]+: 0+10524 +0 OBJECT +GLOBAL DEFAULT +ABS _DYNAMIC - +[0-9]+: 0+ +0 NOTYPE +GLOBAL DEFAULT +UND gd + +[0-9]+: 0+ +0 TLS +GLOBAL DEFAULT +UND gd +[0-9]+: 0+30 +0 TLS +GLOBAL DEFAULT +8 le0 +[0-9]+: 0+ +0 NOTYPE +GLOBAL DEFAULT +UND __tls_get_addr +[0-9]+: 0+20 +0 TLS +GLOBAL DEFAULT +8 ld0 +[0-9]+: 0+34 +0 TLS +GLOBAL DEFAULT +8 le1 - +[0-9]+: 0+ +0 NOTYPE +GLOBAL DEFAULT +UND ld + +[0-9]+: 0+ +0 TLS +GLOBAL DEFAULT +UND ld +[0-9]+: [0-9a-f]+ +0 NOTYPE +GLOBAL DEFAULT +6 _start +[0-9]+: [0-9a-f]+ +0 NOTYPE +GLOBAL DEFAULT +ABS __end +[0-9]+: [0-9a-f]+ +0 OBJECT +GLOBAL DEFAULT +13 _SDA_BASE_ @@ -134,12 +134,12 @@ Symbol table '\.symtab' contains 46 entries: +[0-9]+: 0+14 +0 TLS +LOCAL +DEFAULT +7 le4 +[0-9]+: 0+18 +0 TLS +LOCAL +DEFAULT +7 le5 +[0-9]+: 0+10524 +0 OBJECT +GLOBAL DEFAULT +ABS _DYNAMIC - +[0-9]+: 0+ +0 NOTYPE +GLOBAL DEFAULT +UND gd + +[0-9]+: 0+ +0 TLS +GLOBAL DEFAULT +UND gd +[0-9]+: 0+30 +0 TLS +GLOBAL DEFAULT +8 le0 +[0-9]+: 0+ +0 NOTYPE +GLOBAL DEFAULT +UND __tls_get_addr +[0-9]+: 0+20 +0 TLS +GLOBAL DEFAULT +8 ld0 +[0-9]+: 0+34 +0 TLS +GLOBAL DEFAULT +8 le1 - +[0-9]+: 0+ +0 NOTYPE +GLOBAL DEFAULT +UND ld + +[0-9]+: 0+ +0 TLS +GLOBAL DEFAULT +UND ld +[0-9]+: [0-9a-f]+ +0 NOTYPE +GLOBAL DEFAULT +6 _start +[0-9]+: [0-9a-f]+ +0 NOTYPE +GLOBAL DEFAULT +ABS __end +[0-9]+: [0-9a-f]+ +0 OBJECT +GLOBAL DEFAULT +13 _SDA_BASE_ diff --git a/ld/testsuite/ld-powerpc/tlstoc.s b/ld/testsuite/ld-powerpc/tlstoc.s index 5008d89f079..268cb9f9977 100644 --- a/ld/testsuite/ld-powerpc/tlstoc.s +++ b/ld/testsuite/ld-powerpc/tlstoc.s @@ -19,6 +19,9 @@ ie4: .quad 0x56789abcdef01234 le4: .quad 0x6789abcdef012345 le5: .quad 0x789abcdef0123456 + .type gd,@tls_object + .type ld,@tls_object + .text _start: #extern syms diff --git a/ld/testsuite/ld-powerpc/tlstocso.r b/ld/testsuite/ld-powerpc/tlstocso.r index cece2574a7c..8369b5ae8cf 100644 --- a/ld/testsuite/ld-powerpc/tlstocso.r +++ b/ld/testsuite/ld-powerpc/tlstocso.r @@ -75,12 +75,12 @@ Symbol table '\.dynsym' contains 22 entries: +[0-9]+: [0-9a-f]+ +0 SECTION LOCAL +DEFAULT +11 +[0-9]+: [0-9a-f]+ +0 SECTION LOCAL +DEFAULT +15 +[0-9]+: 0+10648 +0 OBJECT +GLOBAL DEFAULT +ABS _DYNAMIC - +[0-9]+: 0+ +0 NOTYPE +GLOBAL DEFAULT +UND gd + +[0-9]+: 0+ +0 TLS +GLOBAL DEFAULT +UND gd +[0-9]+: 0+60 +0 TLS +GLOBAL DEFAULT +8 le0 +[0-9]+: 0+ +24 OBJECT +GLOBAL DEFAULT +UND __tls_get_addr +[0-9]+: 0+40 +0 TLS +GLOBAL DEFAULT +8 ld0 +[0-9]+: 0+68 +0 TLS +GLOBAL DEFAULT +8 le1 - +[0-9]+: 0+ +0 NOTYPE +GLOBAL DEFAULT +UND ld + +[0-9]+: 0+ +0 TLS +GLOBAL DEFAULT +UND ld +[0-9]+: [0-9a-f]+ +0 NOTYPE +GLOBAL DEFAULT +6 _start +[0-9]+: 0+50 +0 TLS +GLOBAL DEFAULT +8 ld2 +[0-9]+: 0+48 +0 TLS +GLOBAL DEFAULT +8 ld1 @@ -121,12 +121,12 @@ Symbol table '\.symtab' contains 43 entries: +[0-9]+: [0-9a-f]+ +0 NOTYPE +LOCAL +DEFAULT +12 \.Lie0 +[0-9]+: [0-9a-f]+ +0 NOTYPE +LOCAL +DEFAULT +6 \.__tls_get_addr +[0-9]+: 0+10648 +0 OBJECT +GLOBAL DEFAULT +ABS _DYNAMIC - +[0-9]+: 0+ +0 NOTYPE +GLOBAL DEFAULT +UND gd + +[0-9]+: 0+ +0 TLS +GLOBAL DEFAULT +UND gd +[0-9]+: 0+60 +0 TLS +GLOBAL DEFAULT +8 le0 +[0-9]+: 0+ +24 OBJECT +GLOBAL DEFAULT +UND __tls_get_addr +[0-9]+: 0+40 +0 TLS +GLOBAL DEFAULT +8 ld0 +[0-9]+: 0+68 +0 TLS +GLOBAL DEFAULT +8 le1 - +[0-9]+: 0+ +0 NOTYPE +GLOBAL DEFAULT +UND ld + +[0-9]+: 0+ +0 TLS +GLOBAL DEFAULT +UND ld +[0-9]+: [0-9a-f]+ +0 NOTYPE +GLOBAL DEFAULT +6 _start +[0-9]+: 0+50 +0 TLS +GLOBAL DEFAULT +8 ld2 +[0-9]+: 0+48 +0 TLS +GLOBAL DEFAULT +8 ld1 -- 2.30.2