From dc5e727b86cc05ea74d34a54d3aa9d3a67005dd2 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 2 Nov 2001 17:07:52 +0000 Subject: [PATCH] Fix testsuites for bigendian sh-linux --- gas/testsuite/ChangeLog | 5 +++++ gas/testsuite/gas/sh/basic.exp | 5 +++++ ld/testsuite/ChangeLog | 4 ++++ ld/testsuite/ld-sh/sh.exp | 11 +++++++++-- 4 files changed, 23 insertions(+), 2 deletions(-) diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 4a1fe474a6d..47abda35621 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2001-11-02 NIIBE Yutaka + + * gas/sh/basic.exp: For Linux, add "-big" option for the + invocation of gas. + 2001-11-01 Stephane Carrez * gas/m68hc11/opers12.s: Add test for disassembler bug with movb diff --git a/gas/testsuite/gas/sh/basic.exp b/gas/testsuite/gas/sh/basic.exp index 8cc33530eb7..905a3d27c12 100644 --- a/gas/testsuite/gas/sh/basic.exp +++ b/gas/testsuite/gas/sh/basic.exp @@ -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 diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 1003383da26..91de4b3a097 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2001-11-02 NIIBE Yutaka + + * ld-sh/sh.exp: Have its own start.s for linux. + 2001-10-31 Hans-Peter Nilsson * ld-mmix/locdo-1.d: Prune character dump part. diff --git a/ld/testsuite/ld-sh/sh.exp b/ld/testsuite/ld-sh/sh.exp index cfbc02c5cc4..8a5b8fc7fcd 100644 --- a/ld/testsuite/ld-sh/sh.exp +++ b/ld/testsuite/ld-sh/sh.exp @@ -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 -- 2.30.2