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]

Re: sh-linux is now broken


NIIBE Yutaka wrote:
 > And I've done "make check" for sh-linux target (on i686-linux).
 > 
 > I'll look into the unexpected failures and unexpected successes.
[...]
 > -------- Unexpected failures were:
 > Running /home/gniibe/gniibe/c/src/gas/testsuite/gas/sh/basic.exp ...
 > FAIL: fp.s: floating point tests (sh3e)
 > FAIL: SH DSP basic instructions
[...]
 > -------- Unexpected failures were:
 > Running /home/gniibe/gniibe/c/src/ld/testsuite/ld-sh/sh.exp ...
 > FAIL: SH relaxing

I fixed testcase to handle those issues.  For the gas case, I've added
bigendian option for the invocation of gas.  Ld case is, the binary for
linux doesn't have leading underscore, thus we need another start.s.

It remains following four cases, but it seems for me that all of them
are expected.

 > -------- Unexpected failures were:
 > Running /home/gniibe/gniibe/c/src/ld/testsuite/ld-selective/selective.exp ...
 > FAIL: selective4
 > FAIL: selective5
[...]
 > -------- Unexpected successes were:
 > Running /home/gniibe/gniibe/c/src/ld/testsuite/ld-undefined/undefined.exp ...
 > XPASS: undefined function
 > XPASS: undefined line

gas/testsuite/ChangeLog

2001-11-01  NIIBE Yutaka  <gniibe@m17n.org>

	* gas/sh/basic.exp: For Linux, add "-big" option for the
	invocation of gas.

Index: gas/testsuite/gas/sh/basic.exp
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/sh/basic.exp,v
retrieving revision 1.2
diff -u -3 -p -r1.2 basic.exp
--- basic.exp	2001/10/09 12:25:52	1.2
+++ basic.exp	2001/11/01 03:36:02
@@ -19,6 +19,11 @@
 
 # Written by Cygnus Support.
 
+if [istarget "sh*-*-linux-gnu"] {
+    global ASFLAGS
+    set ASFLAGS "$ASFLAGS -big"
+}
+
 proc do_fp {} {
     set testname "fp.s: floating point tests (sh3e)"
     set x 0
----------------

ld/testsuite/ChangeLog

2001-11-01  NIIBE Yutaka  <gniibe@m17n.org>

	* ld-sh/sh.exp: Have its own start.s for linux.

Index: ld/testsuite/ld-sh/sh.exp
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-sh/sh.exp,v
retrieving revision 1.5
diff -u -3 -p -r1.5 sh.exp
--- sh.exp	2001/07/24 11:07:14	1.5
+++ sh.exp	2001/11/01 03:36:13
@@ -111,8 +111,15 @@ if { [which $CC] == 0 } {
     return
 }
 
-if {![ld_assemble $as "-relax $srcdir/$subdir/start.s" tmpdir/start.o] \
-     || ![ld_compile $CC "-O -mrelax $srcdir/$subdir/sh2.c" tmpdir/sh2.o]} {
+if [istarget sh*-linux-gnu] {
+    exec sed -e s/_main/main/ -e s/_trap/trap/ -e s/_stack/stack/ \
+	    < $srcdir/$subdir/start.s >tmpdir/start.s
+} else {
+    exec $srcdir/$subdir/start.s tmpdir/start.s
+}
+
+if {![ld_assemble $as "-relax tmpdir/start.s" tmpdir/start.o] \
+    || ![ld_compile $CC "-O -mrelax $srcdir/$subdir/sh2.c" tmpdir/sh2.o]} {
     unresolved $testlink
     unresolved $testjsr
     unresolved $testrun
----------------
-- 


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