aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-sh.h
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/config/tc-sh.h
parent1aa20aa88f25187a6947acc8d8ccaeb97daaa4d0 (diff)
downloadfsf-binutils-gdb-05982cacb924d76c8a040683149ef0e58c208016.zip
fsf-binutils-gdb-05982cacb924d76c8a040683149ef0e58c208016.tar.gz
fsf-binutils-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/config/tc-sh.h')
-rw-r--r--gas/config/tc-sh.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/gas/config/tc-sh.h b/gas/config/tc-sh.h
index 15f0f44..138fc33 100644
--- a/gas/config/tc-sh.h
+++ b/gas/config/tc-sh.h
@@ -21,8 +21,6 @@
#define TC_SH
-#define TARGET_BYTES_BIG_ENDIAN 0
-
#define TARGET_ARCH bfd_arch_sh
#if ANSI_PROTOTYPES
@@ -30,9 +28,6 @@ struct segment_info_struct;
struct internal_reloc;
#endif
-/* Whether in little endian mode. */
-extern int shl;
-
/* Whether -relax was used. */
extern int sh_relax;
@@ -81,7 +76,9 @@ extern long md_pcrel_from_section PARAMS ((struct fix *, segT));
#define IGNORE_NONSTANDARD_ESCAPES
-#define LISTING_HEADER (shl ? "Hitachi Super-H GAS Little Endian" : "Hitachi Super-H GAS Big Endian")
+#define LISTING_HEADER \
+ (!target_big_endian \
+ ? "Hitachi Super-H GAS Little Endian" : "Hitachi Super-H GAS Big Endian")
#define md_operand(x)
@@ -123,7 +120,7 @@ extern void sh_frob_file PARAMS ((void));
#define BFD_ARCH TARGET_ARCH
-#define COFF_MAGIC (shl ? SH_ARCH_MAGIC_LITTLE : SH_ARCH_MAGIC_BIG)
+#define COFF_MAGIC (!target_big_endian ? SH_ARCH_MAGIC_LITTLE : SH_ARCH_MAGIC_BIG)
/* We need to write out relocs which have not been completed. */
#define TC_COUNT_RELOC(fix) ((fix)->fx_addsy != NULL)
@@ -168,9 +165,9 @@ extern int tc_coff_sizemachdep PARAMS ((fragS *));
extern int target_big_endian;
#ifdef TE_LINUX
-#define TARGET_FORMAT (shl ? "elf32-sh-linux" : "elf32-shbig-linux")
+#define TARGET_FORMAT (!target_big_endian ? "elf32-sh-linux" : "elf32-shbig-linux")
#else
-#define TARGET_FORMAT (shl ? "elf32-shl" : "elf32-sh")
+#define TARGET_FORMAT (!target_big_endian ? "elf32-shl" : "elf32-sh")
#endif
#define elf_tc_final_processing sh_elf_final_processing