]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* ld-sh/rd-sh.exp: Add -isa=SHcompact to ASFLAGS for SH-5.
authorKaz Kojima <kkojima@rr.iij4u.or.jp>
Mon, 4 Nov 2002 01:18:13 +0000 (01:18 +0000)
committerKaz Kojima <kkojima@rr.iij4u.or.jp>
Mon, 4 Nov 2002 01:18:13 +0000 (01:18 +0000)
* 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.

ld/testsuite/ChangeLog
ld/testsuite/ld-sh/rd-sh.exp
ld/testsuite/ld-sh/tlsbin-1.d
ld/testsuite/ld-sh/tlsbin-2.d
ld/testsuite/ld-sh/tlspic-1.d
ld/testsuite/ld-sh/tlspic-2.d

index 3ad8d0fb98fe29b0c994698af39beb804a569ebc..b10913bed64ecbfa9b6c778172200a57ccc1a835 100644 (file)
@@ -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.
index 7060d025d5a778028aa7859dc856ec4e8d07eee1..41fad92952a86c77e2bbe86f5c8f96edfa05415e 100644 (file)
@@ -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"
index a6f60c2a4bf94105b7e2c7a013684c738ae6a571..58acf5cba7b8e3d7e4eaf7a9a063a1041e92b4f3 100644 (file)
@@ -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           .*[     ]*.*
        \.\.\.
index bde844065c861119784131b8618d16b58e5ca118..a010ea93732e36f99d2792d21093b2dffdc7f26b 100644 (file)
@@ -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
index decb161800fcbed32b28169c3aee6dc6cef4d6e2..bca08530be1ac80a783bbde14f354d41fdab8a28 100644 (file)
@@ -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           .*[     ]*.*
index 66199e097f8c15153c399e687f1514164a4b71cd..3a99d2243ba9dba2bf78d5d99bd1ced9e9acf3a2 100644 (file)
@@ -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