This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] SH testsuite fixes


Hi,

I've applied the appended patch to fix a few failures of gas and ld
for sh-unknown-linux-gnu and sh64-elf targets caused by the new sh2a
testcase and the recent change of readelf.

Regards,
	kaz
--
2004-07-29  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
[gas/testsuite/ChangeLog]
	* gas/sh/basic.exp: Don't do sh2a test for sh5.
	* gas/sh/sh2a.d: Match elf32-sh* format too.

[ld/testsuite/ChangeLog]
	* ld-sh/sh64/crange3-cmpct.rd: Update.
	* ld-sh/sh64/crange3-media.rd: Update.

diff -u3prN ORIG/src/gas/testsuite/gas/sh/basic.exp LOCAL/src/gas/testsuite/gas/sh/basic.exp
--- ORIG/src/gas/testsuite/gas/sh/basic.exp	Thu Jul 29 14:52:46 2004
+++ LOCAL/src/gas/testsuite/gas/sh/basic.exp	Thu Jul 29 16:20:05 2004
@@ -147,6 +147,8 @@ if [istarget sh*-*-*] then {
 
 	    run_dump_test "sh4a-dsp"
 	    run_dump_test "sh4al-dsp"
+
+	    run_dump_test "sh2a"
 	}
 
 	run_dump_test "pic"
@@ -160,7 +162,6 @@ if [istarget sh*-*-*] then {
 
 	# Test -renesas.
 	run_dump_test "renesas-1"
-	run_dump_test "sh2a"
     }
 }
 
diff -u3prN ORIG/src/gas/testsuite/gas/sh/sh2a.d LOCAL/src/gas/testsuite/gas/sh/sh2a.d
--- ORIG/src/gas/testsuite/gas/sh/sh2a.d	Thu Jul 29 14:17:41 2004
+++ LOCAL/src/gas/testsuite/gas/sh/sh2a.d	Thu Jul 29 16:13:51 2004
@@ -2,7 +2,7 @@
 #name: SH2a new instructions
 #as: -isa=sh2a
 
-dump.o:     file format elf32-sh
+dump.o:     file format elf32-sh.*
 
 Disassembly of section .text:
 0x00000000 33 79 4f ff 	band.b	#7,@\(4095,r3\)
diff -u3prN ORIG/src/ld/testsuite/ld-sh/sh64/crange3-cmpct.rd LOCAL/src/ld/testsuite/ld-sh/sh64/crange3-cmpct.rd
--- ORIG/src/ld/testsuite/ld-sh/sh64/crange3-cmpct.rd	Fri Jul  2 20:08:38 2004
+++ LOCAL/src/ld/testsuite/ld-sh/sh64/crange3-cmpct.rd	Thu Jul 29 16:32:53 2004
@@ -11,7 +11,7 @@ ELF Header:
   Entry point address:               0x10c4
   Start of program headers:          52 \(bytes into file\)
   Start of section headers:          664 \(bytes into file\)
-  Flags:                             0xa
+  Flags:                             0xa, sh5
   Size of this header:               52 \(bytes\)
   Size of program headers:           32 \(bytes\)
   Number of program headers:         3
diff -u3prN ORIG/src/ld/testsuite/ld-sh/sh64/crange3-media.rd LOCAL/src/ld/testsuite/ld-sh/sh64/crange3-media.rd
--- ORIG/src/ld/testsuite/ld-sh/sh64/crange3-media.rd	Fri Jul  2 20:08:38 2004
+++ LOCAL/src/ld/testsuite/ld-sh/sh64/crange3-media.rd	Thu Jul 29 16:33:15 2004
@@ -11,7 +11,7 @@ ELF Header:
   Entry point address:               0x10a5
   Start of program headers:          52 \(bytes into file\)
   Start of section headers:          664 \(bytes into file\)
-  Flags:                             0xa
+  Flags:                             0xa, sh5
   Size of this header:               52 \(bytes\)
   Size of program headers:           32 \(bytes\)
   Number of program headers:         3


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]