This is the mail archive of the binutils@sourceware.org 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: Binutils branch 2.20 (done!)


>shl-unknown-netbsdelf/log0:FAIL: check sections 1
[snip]
> shl-unknown-netbsdelf/log0:FAIL: --entry foo -u foo

Almost ld tests fail for shl-unknown-netbsdelf target because
ld/configure.tgt handles sh*l*-*-netbsdelf* as big endian targets
but gas/configure.tgt doesn't.  The attached patch is to fix this
inconsistency.  I'll apply it if I don't get any objections in
a day or two.

Regards,
	kaz
--
[gas/ChangeLog]
2009-09-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>

	* configure.tgt (sh*-*-netbsdelf*): Set endian according to cpu.

[gas/testsuite/ChangeLog]
2009-09-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>

	* gas/sh/basic.exp: Add -big to ASFLAGS for sh*l*-*-netbsdelf*.

diff -uprN ORIG/src/gas/configure.tgt src/gas/configure.tgt
--- ORIG/src/gas/configure.tgt	2009-08-29 19:13:09.000000000 +0900
+++ src/gas/configure.tgt	2009-09-06 15:50:29.000000000 +0900
@@ -353,7 +353,11 @@ case ${generic_target} in
     esac ;;
   sh5*-*-netbsd*)			fmt=elf em=nbsd ;;
   sh64*-*-netbsd*)			fmt=elf em=nbsd ;;
-  sh*-*-netbsdelf*)			fmt=elf em=nbsd ;;
+  sh*-*-netbsdelf*)			fmt=elf em=nbsd
+    case ${cpu} in
+      sh*l*)	endian=little ;;
+      *)	endian=big ;;
+    esac ;;
   sh*-*-symbianelf*)			fmt=elf endian=little ;;
   sh-*-elf* | sh-*-uclinux* | sh[12]-*-uclinux*)	fmt=elf ;;
   sh-*-coff*)				fmt=coff ;;
diff -uprN ORIG/src/gas/testsuite/gas/sh/basic.exp src/gas/testsuite/gas/sh/basic.exp
--- ORIG/src/gas/testsuite/gas/sh/basic.exp	2009-09-06 12:55:21.000000000 +0900
+++ src/gas/testsuite/gas/sh/basic.exp	2009-09-06 16:34:23.000000000 +0900
@@ -20,7 +20,7 @@
 
 # Written by Cygnus Support.
 
-if [istarget "sh*-*-linux-*"] {
+if {[istarget "sh*-*-linux-*"] || [istarget "sh*l*-*-netbsdelf*"]} then {
     global ASFLAGS
     set ASFLAGS "$ASFLAGS -big"
 }


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