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]
Other format: [Raw text]

Re: Why so many failures for Linux/sh64?


"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"


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