aboutsummaryrefslogtreecommitdiff
path: root/gas/configure.in
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2001-10-16 02:36:20 +0000
committerHans-Peter Nilsson <hp@axis.com>2001-10-16 02:36:20 +0000
commit05982cacb924d76c8a040683149ef0e58c208016 (patch)
tree6848bf89767c7ae8e6002938f4fd23ad15a87a0d /gas/configure.in
parent1aa20aa88f25187a6947acc8d8ccaeb97daaa4d0 (diff)
downloadgdb-05982cacb924d76c8a040683149ef0e58c208016.zip
gdb-05982cacb924d76c8a040683149ef0e58c208016.tar.gz
gdb-05982cacb924d76c8a040683149ef0e58c208016.tar.bz2
* config/tc-sh.c (shl): Remove.
(big): New function. (little): Remove shl handling. Emit error for endian mismatch. (md_show_usage): Add description of -big. (md_parse_option): Handle OPTION_BIG. Remove shl handling. (OPTION_BIG): Add. (md_pseudo_table): Add .big. (md_longopts): Add -big. (md_begin): Don't set target_big_endian here. * config/tc-sh.h (TARGET_BYTES_BIG_ENDIAN): Remove. (LISTING_HEADER, COFF_MAGIC, TARGET_FORMAT): Use target_big_endian. (shl): Remove. * configure.in (endian): Default is big. (sh-*-pe*): Little endian. (cpu_type): Set sh for target sh*. * configure: Regenerate.
Diffstat (limited to 'gas/configure.in')
-rw-r--r--gas/configure.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/gas/configure.in b/gas/configure.in
index 1686ef3..ede3a48 100644
--- a/gas/configure.in
+++ b/gas/configure.in
@@ -144,6 +144,7 @@ changequote([,])dnl
rs6000*) cpu_type=ppc ;;
s390x*) cpu_type=s390 arch=s390x ;;
s390*) cpu_type=s390 arch=s390 ;;
+ sh*) cpu_type=sh endian=big ;;
sparclite*) cpu_type=sparc arch=sparclite ;;
sparclet*) cpu_type=sparc arch=sparclet ;;
sparc64*) cpu_type=sparc arch=v9-64 ;;
@@ -401,7 +402,7 @@ changequote([,])dnl
sh-*-linux*) fmt=elf em=linux ;;
sh-*-elf*) fmt=elf ;;
sh-*-coff*) fmt=coff bfd_gas=yes;;
- sh-*-pe*) fmt=coff em=pe bfd_gas=yes;;
+ sh-*-pe*) fmt=coff em=pe bfd_gas=yes endian=little ;;
sh-*-rtemself*) fmt=elf ;;
sh-*-rtems*) fmt=coff bfd_gas=yes;;