This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Why so many failures for Linux/sh64?
- From: kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- To: hjl at lucon dot org
- Cc: joern dot rennecke at superh dot com, binutils at sources dot redhat dot com
- Date: Wed, 23 Jul 2003 15:17:40 +0900
- Subject: Re: Why so many failures for Linux/sh64?
- References: <20030723054606.GB7579@lucon.org>
"H. J. Lu" <hjl@lucon.org> wrote:
> I also got
>
> Running /export/linux/src/binutils/binutils/ld/testsuite/ld-sh/rd-sh.exp ...
> /export/build/linux/binutils/build-sh64-linux/ld/../gas/as-new -little -o
> tmpdir/dump0.o /export/linux/src/binutils/binutils/ld/testsuite/ld-sh/tlslib.s
> /export/linux/src/binutils/binutils/ld/testsuite/ld-sh/tlslib.s: Assembler
> messages:
> /export/linux/src/binutils/binutils/ld/testsuite/ld-sh/tlslib.s:18: Error:
> unknown opcode
> FAIL: ld-sh/tlsbin-0-dso
This is my bad. Does the patch below work for you?
Regards,
kaz
--
diff -u3prN ORIG/src/ld/testsuite/ld-sh/rd-sh.exp LOCAL/src/ld/testsuite/ld-sh/rd-sh.exp
--- ORIG/src/ld/testsuite/ld-sh/rd-sh.exp Thu Nov 7 07:28:55 2002
+++ LOCAL/src/ld/testsuite/ld-sh/rd-sh.exp Mon Jul 21 13:38:45 2003
@@ -29,10 +29,17 @@ if ![istarget sh*-*-*] {
}
global ASFLAGS
+global LDFLAGS
set asflags_save "$ASFLAGS"
+set ldflags_save "$LDFLAGS"
if {[istarget sh64*-*-*] || [istarget sh5*-*-*]} then {
set ASFLAGS "$ASFLAGS -isa=SHcompact"
+ if [istarget sh64*-*-linux*] {
+ set LDFLAGS "$LDFLAGS -mshlelf32_linux"
+ } else {
+ set LDFLAGS "$LDFLAGS -mshlelf32"
+ }
}
set rd_test_list [lsort [glob -nocomplain $srcdir/$subdir/*.d]]
@@ -52,3 +59,4 @@ foreach shtest $rd_test_list {
}
}
set ASFLAGS "$asflags_save"
+set LDFLAGS "$ldflags_save"