summaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorKaz Kojima <kkojima@rr.iij4u.or.jp>2002-11-04 01:18:13 +0000
committerKaz Kojima <kkojima@rr.iij4u.or.jp>2002-11-04 01:18:13 +0000
commite605243711d35fcb0f4b4b8a908381d6b2e1ec58 (patch)
treef525c776380e2e62d9c0fcb1072bc29991c8cdaa /ld
parent149dd9298fc8e201c22cf94a0114c279bf1cee6d (diff)
downloadbinutils-redhat-e605243711d35fcb0f4b4b8a908381d6b2e1ec58.tar.gz
* ld-sh/rd-sh.exp: Add -isa=SHcompact to ASFLAGS for SH-5.
* ld-sh/tlsbin-1.d: Handle GOT_BIAS appropriately for SH-5. * ld-sh/tlspic-1.d: Likewise. * ld-sh/tlspic-2.d: Likewise. * ld-sh/tlsbin-2.d: Likewise. Make it robust for the symbols defined by the linker scripts.
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ChangeLog9
-rw-r--r--ld/testsuite/ld-sh/rd-sh.exp7
-rw-r--r--ld/testsuite/ld-sh/tlsbin-1.d4
-rw-r--r--ld/testsuite/ld-sh/tlsbin-2.d5
-rw-r--r--ld/testsuite/ld-sh/tlspic-1.d2
-rw-r--r--ld/testsuite/ld-sh/tlspic-2.d2
6 files changed, 23 insertions, 6 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 3ad8d0fb98..b10913bed6 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,12 @@
+2002-11-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
+
+ * ld-sh/rd-sh.exp: Add -isa=SHcompact to ASFLAGS for SH-5.
+ * ld-sh/tlsbin-1.d: Handle GOT_BIAS appropriately for SH-5.
+ * ld-sh/tlspic-1.d: Likewise.
+ * ld-sh/tlspic-2.d: Likewise.
+ * ld-sh/tlsbin-2.d: Likewise. Make it robust for the symbols
+ defined by the linker scripts.
+
2002-10-14 Stephane Carrez <stcarrez@nerim.fr>
* ld-m68hc11/m68hc11.exp: Specific tests for 68HC11/68HC12.
diff --git a/ld/testsuite/ld-sh/rd-sh.exp b/ld/testsuite/ld-sh/rd-sh.exp
index 7060d025d5..41fad92952 100644
--- a/ld/testsuite/ld-sh/rd-sh.exp
+++ b/ld/testsuite/ld-sh/rd-sh.exp
@@ -28,6 +28,12 @@ if ![istarget sh*-*-*] {
return
}
+if {[istarget sh64*-*-*] || [istarget sh5*-*-*]} then {
+ global ASFLAGS
+ set asflags_save "$ASFLAGS"
+ set ASFLAGS "$ASFLAGS -isa=SHcompact"
+}
+
set rd_test_list [lsort [glob -nocomplain $srcdir/$subdir/*.d]]
foreach shtest $rd_test_list {
# We need to strip the ".d", but can leave the dirname.
@@ -44,3 +50,4 @@ foreach shtest $rd_test_list {
# FIXME: What if it fails? Need we do something?
}
}
+set ASFLAGS "$asflags_save"
diff --git a/ld/testsuite/ld-sh/tlsbin-1.d b/ld/testsuite/ld-sh/tlsbin-1.d
index a6f60c2a4b..58acf5cba7 100644
--- a/ld/testsuite/ld-sh/tlsbin-1.d
+++ b/ld/testsuite/ld-sh/tlsbin-1.d
@@ -204,7 +204,7 @@ Disassembly of section \.text:
40117e: 0b 00 rts
401180: f6 6c mov\.l @r15\+,r12
401182: 09 00 nop
- 401184: 3c 1f .*[ ]*.*
+ 401184: [0-9a-f]+ [0-9a-f]+ .*[ ]*.*
401186: 01 00 .*[ ]*.*
\.\.\.
@@ -291,6 +291,6 @@ Disassembly of section \.text:
40209e: e3 6f mov r14,r15
4020a0: 0b 00 rts
4020a2: f6 6e mov\.l @r15\+,r14
- 4020a4: 1c 10 .*[ ]*.*
+ 4020a4: [0-9a-f]+ [0-9a-f]+ .*[ ]*.*
4020a6: 01 00 .*[ ]*.*
\.\.\.
diff --git a/ld/testsuite/ld-sh/tlsbin-2.d b/ld/testsuite/ld-sh/tlsbin-2.d
index bde844065c..a010ea9373 100644
--- a/ld/testsuite/ld-sh/tlsbin-2.d
+++ b/ld/testsuite/ld-sh/tlsbin-2.d
@@ -82,7 +82,7 @@ Relocation section '\.rela\.dyn' at offset 0x[0-9a-f]+ contains 19 entries:
Relocation section '\.rela\.plt' at offset 0x[0-9a-f]+ contains 1 entries:
Offset +Info +Type +Sym\.Value +Sym\. Name \+ Addend
-0+4130cc 000005a4 R_SH_JMP_SLOT +[0-9a-f]+ +__tls_get_addr \+ 0
+0+4130cc 000005a4 R_SH_JMP_SLOT +[0-9a-f]+ +__tls_get_addr \+ [0-9a-f]+
Symbol table '\.dynsym' contains [0-9]+ entries:
+Num: +Value +Size Type +Bind +Vis +Ndx Name
@@ -141,5 +141,6 @@ Symbol table '\.symtab' contains [0-9]+ entries:
+[0-9]+: 00000014 +0 TLS +GLOBAL HIDDEN +10 sh2
+[0-9]+: 0000001c +0 TLS +GLOBAL DEFAULT +11 bg2
+[0-9]+: 00000018 +0 TLS +GLOBAL DEFAULT +11 bg1
- +[0-9]+: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT +9 __data_start
+#...
+ +[0-9]+: .*
#pass
diff --git a/ld/testsuite/ld-sh/tlspic-1.d b/ld/testsuite/ld-sh/tlspic-1.d
index decb161800..bca08530be 100644
--- a/ld/testsuite/ld-sh/tlspic-1.d
+++ b/ld/testsuite/ld-sh/tlspic-1.d
@@ -276,7 +276,7 @@ Disassembly of section \.text:
[0-9a-f]+: 0b 00 rts
[0-9a-f]+: f6 6c mov\.l @r15\+,r12
[0-9a-f]+: 09 00 nop
- [0-9a-f]+: cc 00 .*[ ]*.*
+ [0-9a-f]+: [0-9a-f]+ [0-9a-f]+ .*[ ]*.*
[0-9a-f]+: 01 00 .*[ ]*.*
[0-9a-f]+: 08 00 .*[ ]*.*
[0-9a-f]+: 00 00 .*[ ]*.*
diff --git a/ld/testsuite/ld-sh/tlspic-2.d b/ld/testsuite/ld-sh/tlspic-2.d
index 66199e097f..3a99d2243b 100644
--- a/ld/testsuite/ld-sh/tlspic-2.d
+++ b/ld/testsuite/ld-sh/tlspic-2.d
@@ -67,7 +67,7 @@ Relocation section '\.rela\.dyn' at offset 0x[0-9a-f]+ contains 10 entries:
Relocation section '\.rela\.plt' at offset 0x[0-9a-f]+ contains 1 entries:
Offset +Info +Type +Sym\.Value +Sym\. Name \+ Addend
-0+[0-9a-f]+ 0000[0-9a-f]+a4 R_SH_JMP_SLOT +[0-9a-f]+ +__tls_get_addr \+ 0
+0+[0-9a-f]+ 0000[0-9a-f]+a4 R_SH_JMP_SLOT +[0-9a-f]+ +__tls_get_addr \+ [0-9a-f]+
Symbol table '\.dynsym' contains [0-9]+ entries:
+Num: +Value +Size Type +Bind +Vis +Ndx Name