aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-arm.h
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1997-02-14 01:04:19 +0000
committerFred Fish <fnf@specifix.com>1997-02-14 01:04:19 +0000
commitaf16e4115dcaffa8d48e4ff5b223f087ac2bdd55 (patch)
tree1a6c95105f4cfc984dbfacf36d76690f8da91125 /gas/config/tc-arm.h
parentd83c8ac193f20b4407cf0878fa94c59cfaf971c3 (diff)
downloadgdb-af16e4115dcaffa8d48e4ff5b223f087ac2bdd55.zip
gdb-af16e4115dcaffa8d48e4ff5b223f087ac2bdd55.tar.gz
gdb-af16e4115dcaffa8d48e4ff5b223f087ac2bdd55.tar.bz2
* doc/Makefile.in (TEXI2DVI): Set to just name of program.
(DVIPS): Set to dvips. (ps, as.ps, gasp.ps): New targets. (internals.info, gasp.dvi, internals.dvi): Set both TEXINPUTS and MAKEINFO env variables. (internals.ps): Use DVIPS macro. (clean): Remove core and backup files. (distclean): Remove temporary files from building internals. (clean-dvi): Ditto. * doc/internals.texi (Frags): Fix typo. (GAS processing): Ditto. (CPU backend): Ditto. * ecoff.c (init_file): Use TARGET_BYTES_BIG_ENDIAN value directly. * mpw-config.in: Define TARGET_BYTES_BIG_ENDIAN as 1. * read.c: Remove ugly hack that dealt with config files not correctly defining TARGET_BYTES_BIG_ENDIAN. (target_big_endian): Use TARGET_BYTES_BIG_ENDIAN directly. * config/arm-big.mt: Define TARGET_BYTES_BIG_ENDIAN to 1. * config/arm-lit.mt: Define TARGET_BYTES_BIG_ENDIAN to 0. * config/mips-big.mt: Define TARGET_BYTES_BIG_ENDIAN to 1. * config/mips-lit.mt: Define TARGET_BYTES_BIG_ENDIAN to 0. * config/ppc-lit.mt: Define TARGET_BYTES_BIG_ENDIAN to 1. * config/ppc-sol.mt: Replace TARGET_BYTES_LITTLE_ENDIAN with TARGET_BYTES_BIG_ENDIAN defined to 0. * config/tc-arm.h: Remove use of TARGET_BYTES_LITTLE_ENDIAN and simplify. Test value of TARGET_BYTES_BIG_ENDIAN, not just whether it is defined or not. * config/tc-mips.h: Remove use of TARGET_BYTES_LITTLE_ENDIAN. * config/tc-ppc.h: Remove use of TARGET_BYTES_LITTLE_ENDIAN and simplify. Test value of TARGET_BYTES_BIG_ENDIAN, not just whether it is defined or not. start-sanitize-tic80 * config/tic80.h (TARGET_FORMAT): Define to coff-tic80. (TARGET_BYTES_BIG_ENDIAN): Define to 0. end-sanitize-tic80
Diffstat (limited to 'gas/config/tc-arm.h')
-rw-r--r--gas/config/tc-arm.h29
1 files changed, 21 insertions, 8 deletions
diff --git a/gas/config/tc-arm.h b/gas/config/tc-arm.h
index cfb8bce..149579e 100644
--- a/gas/config/tc-arm.h
+++ b/gas/config/tc-arm.h
@@ -32,19 +32,15 @@
#define LITTLE_ENDIAN 1234
#define BIG_ENDIAN 4321
-/* If neither TARGET_BYTES_BIG_ENDIAN nor TARGET_BYTES_LITTLE_ENDIAN
- is specified, default to little endian. */
#ifndef TARGET_BYTES_BIG_ENDIAN
-#ifndef TARGET_BYTES_LITTLE_ENDIAN
-#define TARGET_BYTES_LITTLE_ENDIAN
-#endif
+#define TARGET_BYTES_BIG_ENDIAN 0
#endif
#ifdef OBJ_AOUT
#ifdef TE_RISCIX
#define TARGET_FORMAT "a.out-riscix"
#else
-#ifdef TARGET_BYTES_BIG_ENDIAN
+#if TARGET_BYTES_BIG_ENDIAN
#define TARGET_FORMAT "a.out-arm-big"
#else
#define TARGET_FORMAT "a.out-arm-little"
@@ -57,11 +53,13 @@
#endif
#ifdef OBJ_COFF
+#define ARM_BI_ENDIAN
#ifdef TE_PE
-#define TC_FORCE_RELOCATION(x) ((x)->fx_r_type==11)
+#define TC_FORCE_RELOCATION(x) ((x)->fx_r_type==BFD_RELOC_RVA)
#define TARGET_FORMAT (target_big_endian ? "pe-arm-big" : "pe-arm-little")
+#else
+#define TARGET_FORMAT (target_big_endian ? "coff-arm-big" : "coff-arm-little")
/* Tell tc-arm.c to support runtime endian selection. */
-#define ARM_BI_ENDIAN
#endif
#endif
@@ -73,6 +71,17 @@
#define obj_fix_adjustable(fixP) 0
+#define TC_FIX_TYPE PTR
+#define TC_INIT_FIX_DATA(FIXP) ((FIXP)->tc_fix_data = NULL)
+
+#define TC_START_LABEL(C,STR) \
+ (c == ':' || (c == '/' && arm_data_in_code ()))
+int arm_data_in_code PARAMS ((void));
+
+#define tc_canonicalize_symbol_name(str) \
+ arm_canonicalize_symbol_name (str);
+char *arm_canonicalize_symbol_name PARAMS ((char *));
+
#if 0 /* It isn't as simple as this */
#define tc_frob_symbol(sym,punt) \
{ if (S_IS_LOCAL (sym)) \
@@ -95,6 +104,10 @@
#define md_operand(x)
+#define TC_HANDLES_FX_DONE
+
+#define MD_APPLY_FIX3
+
#define LOCAL_LABELS_FB 1
/* Use defaults for OBJ_AOUT. */