]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix testsuites for bigendian sh-linux
authorNick Clifton <nickc@redhat.com>
Fri, 2 Nov 2001 17:07:52 +0000 (17:07 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 2 Nov 2001 17:07:52 +0000 (17:07 +0000)
gas/testsuite/ChangeLog
gas/testsuite/gas/sh/basic.exp
ld/testsuite/ChangeLog
ld/testsuite/ld-sh/sh.exp

index 4a1fe474a6d99b7df0d2f64516e3915aeacfa8a9..47abda356219a0211b60ccd3a16b6f2c3ca7388f 100644 (file)
@@ -1,3 +1,8 @@
+2001-11-02  NIIBE Yutaka  <gniibe@m17n.org>
+
+       * gas/sh/basic.exp: For Linux, add "-big" option for the
+       invocation of gas.
+
 2001-11-01  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
 
        * gas/m68hc11/opers12.s: Add test for disassembler bug with movb
index 8cc33530eb78b71e4a9272b250cd0583403a0be4..905a3d27c12367fdaf539260b37b518ced306883 100644 (file)
 
 # 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
index 1003383da26766814504d0cbebc48e03b26a5ac8..91de4b3a0978a406501ccb133784886a1157748c 100644 (file)
@@ -1,3 +1,7 @@
+2001-11-02  NIIBE Yutaka  <gniibe@m17n.org>
+
+       * ld-sh/sh.exp: Have its own start.s for linux.
+
 2001-10-31  Hans-Peter Nilsson  <hp@bitrange.com>
 
        * ld-mmix/locdo-1.d: Prune character dump part.
index cfbc02c5cc452028d9fdb7be09baa35c822be394..8a5b8fc7fcd7b6a35fa66503f6a2292a9e929497 100644 (file)
@@ -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