* configure.tgt (sh*-*-netbsdelf*): Set endian according to cpu.
authorKaz Kojima <kkojima@rr.iij4u.or.jp>
Tue, 8 Sep 2009 12:31:32 +0000 (12:31 +0000)
committerKaz Kojima <kkojima@rr.iij4u.or.jp>
Tue, 8 Sep 2009 12:31:32 +0000 (12:31 +0000)
* gas/sh/basic.exp: Add -big to ASFLAGS for sh*l*-*-netbsdelf*.

gas/ChangeLog
gas/configure.tgt
gas/testsuite/ChangeLog
gas/testsuite/gas/sh/basic.exp

index d9c2113f53880412aed80e30fcad4cda32f76352..b76df646fa0b3a81039fc049e72f308c52073be1 100644 (file)
@@ -1,3 +1,7 @@
+2009-09-08  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
+
+       * configure.tgt (sh*-*-netbsdelf*): Set endian according to cpu.
+
 2009-09-08  Alan Modra  <amodra@bigpond.net.au>
 
        * read.c (emit_expr_fix): Handle size 3.
index 777f798d4db84fa6dafebae421afbb59afede944..054f2b8b4a839089862603f6d7a3c2d65376d8cd 100644 (file)
@@ -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 ;;
index 1ff9c462550e00ef93969064e86544f099a09236..ac752bc6124d68a2bf83801c2a560d4c6f4286dc 100644 (file)
@@ -1,3 +1,7 @@
+2009-09-08  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
+
+       * gas/sh/basic.exp: Add -big to ASFLAGS for sh*l*-*-netbsdelf*.
+
 2009-09-08  Alan Modra  <amodra@bigpond.net.au>
 
        * gas/d30v/serial2.l: Adjust position of page break.
index aa89d814e41f5e24856c2e258f9df924f78de8e6..3bb7931d1f2c438d50ec8ddf745e81bf1c2ec327 100644 (file)
@@ -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"
 }
This page took 0.028618 seconds and 4 git commands to generate.