aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-11-02 17:07:52 +0000
committerNick Clifton <nickc@redhat.com>2001-11-02 17:07:52 +0000
commitdc5e727b86cc05ea74d34a54d3aa9d3a67005dd2 (patch)
tree20cee67f61c631bc13b963f6be96a2abfb6e7641 /ld/testsuite
parent3a9091c4e556853a0229057818972f0141cc4054 (diff)
downloadgdb-dc5e727b86cc05ea74d34a54d3aa9d3a67005dd2.zip
gdb-dc5e727b86cc05ea74d34a54d3aa9d3a67005dd2.tar.gz
gdb-dc5e727b86cc05ea74d34a54d3aa9d3a67005dd2.tar.bz2
Fix testsuites for bigendian sh-linux
Diffstat (limited to 'ld/testsuite')
-rw-r--r--ld/testsuite/ChangeLog4
-rw-r--r--ld/testsuite/ld-sh/sh.exp11
2 files changed, 13 insertions, 2 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 1003383..91de4b3 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -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.
diff --git a/ld/testsuite/ld-sh/sh.exp b/ld/testsuite/ld-sh/sh.exp
index cfbc02c..8a5b8fc 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