aboutsummaryrefslogtreecommitdiff
path: root/gas/configure.tgt
diff options
context:
space:
mode:
authorKaz Kojima <kkojima@rr.iij4u.or.jp>2009-09-08 12:31:32 +0000
committerKaz Kojima <kkojima@rr.iij4u.or.jp>2009-09-08 12:31:32 +0000
commit7e127222000a836f4a46e9cd2ef6ae156dcbc133 (patch)
tree63909d93ff6fdac6528c85aac04f936f207d742e /gas/configure.tgt
parent6a200c2ed0052ef012111dc04c4292031ff2a044 (diff)
downloadgdb-7e127222000a836f4a46e9cd2ef6ae156dcbc133.zip
gdb-7e127222000a836f4a46e9cd2ef6ae156dcbc133.tar.gz
gdb-7e127222000a836f4a46e9cd2ef6ae156dcbc133.tar.bz2
* configure.tgt (sh*-*-netbsdelf*): Set endian according to cpu.
* gas/sh/basic.exp: Add -big to ASFLAGS for sh*l*-*-netbsdelf*.
Diffstat (limited to 'gas/configure.tgt')
-rw-r--r--gas/configure.tgt6
1 files changed, 5 insertions, 1 deletions
diff --git a/gas/configure.tgt b/gas/configure.tgt
index 777f798..054f2b8 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 ;;