From 8ca83917f53aa63345279aa66560e3d6fefbf6ea Mon Sep 17 00:00:00 2001 From: Kaz Kojima Date: Tue, 8 Sep 2009 12:31:32 +0000 Subject: [PATCH] * configure.tgt (sh*-*-netbsdelf*): Set endian according to cpu. * gas/sh/basic.exp: Add -big to ASFLAGS for sh*l*-*-netbsdelf*. --- gas/ChangeLog | 4 ++++ gas/configure.tgt | 6 +++++- gas/testsuite/ChangeLog | 4 ++++ gas/testsuite/gas/sh/basic.exp | 2 +- 4 files changed, 14 insertions(+), 2 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index d9c2113f5..b76df646f 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2009-09-08 Kaz Kojima + + * configure.tgt (sh*-*-netbsdelf*): Set endian according to cpu. + 2009-09-08 Alan Modra * read.c (emit_expr_fix): Handle size 3. diff --git a/gas/configure.tgt b/gas/configure.tgt index 777f798d4..054f2b8b4 100644 --- a/gas/configure.tgt +++ b/gas/configure.tgt @@ -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 --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 1ff9c4625..ac752bc61 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2009-09-08 Kaz Kojima + + * gas/sh/basic.exp: Add -big to ASFLAGS for sh*l*-*-netbsdelf*. + 2009-09-08 Alan Modra * gas/d30v/serial2.l: Adjust position of page break. diff --git a/gas/testsuite/gas/sh/basic.exp b/gas/testsuite/gas/sh/basic.exp index aa89d814e..3bb7931d1 100644 --- a/gas/testsuite/gas/sh/basic.exp +++ b/gas/testsuite/gas/sh/basic.exp @@ -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" } -- 2.11.4.GIT