1 /* This file is tc-arm.h
2 Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
3 Contributed by Richard Earnshaw (rwe@pegasus.esprit.ec.org)
4 Modified by David Taylor (dtaylor@armltd.co.uk)
6 This file is part of GAS, the GNU Assembler.
8 GAS is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2, or (at your option)
13 GAS is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with GAS; see the file COPYING. If not, write to the Free
20 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
25 #ifndef TARGET_BYTES_BIG_ENDIAN
26 #define TARGET_BYTES_BIG_ENDIAN 0
29 #define COFF_MAGIC ARMMAGIC
30 #define TARGET_ARCH bfd_arch_arm
32 #define AOUT_MACHTYPE 0
43 #define LITTLE_ENDIAN 1234
44 #define BIG_ENDIAN 4321
48 #define TARGET_FORMAT "a.out-riscix"
50 #if TARGET_BYTES_BIG_ENDIAN
51 #define TARGET_FORMAT "a.out-arm-big"
53 #define TARGET_FORMAT "a.out-arm-little"
59 #define TARGET_FORMAT "aif"
65 #define TC_FORCE_RELOCATION(x) ((x)->fx_r_type==BFD_RELOC_RVA)
66 #define TARGET_FORMAT (target_big_endian ? "pe-arm-big" : "pe-arm-little")
68 #define TARGET_FORMAT (target_big_endian ? "coff-arm-big" : "coff-arm-little")
69 /* Tell tc-arm.c to support runtime endian selection. */
73 #define md_convert_frag(b,s,f) {as_fatal ("arm convert_frag\n");}
75 #define md_after_pass_hook() arm_after_pass_hook ()
76 #define md_start_line_hook() arm_start_line_hook ()
77 #define tc_frob_label(S) arm_frob_label (S)
78 /* We also need to mark assembler created symbols: */
79 #define tc_frob_fake_label(S) arm_frob_label (S)
80 /* NOTE: The fake label creation in stabs.c:s_stab_generic() has
81 deliberately not been updated to mark assembler created stabs
84 #define obj_fix_adjustable(fixP) 0
86 /* We need to keep some local information on symbols. At the moment
87 this is 0 for ARM symbols, non-zero for Thumb symbols. */
88 #define TC_SYMFIELD_TYPE unsigned int
89 #define ARM_GET_TYPE(S) ((S)->sy_tc)
90 #define ARM_SET_TYPE(S,V) ((S)->sy_tc = (V))
92 #define TC_FIX_TYPE PTR
93 #define TC_INIT_FIX_DATA(FIXP) ((FIXP)->tc_fix_data = NULL)
95 #define TC_START_LABEL(C,STR) \
96 (c == ':' || (c == '/' && arm_data_in_code ()))
97 int arm_data_in_code
PARAMS ((void));
99 #define tc_canonicalize_symbol_name(str) \
100 arm_canonicalize_symbol_name (str);
101 char *arm_canonicalize_symbol_name
PARAMS ((char *));
103 #if 0 /* It isn't as simple as this */
104 #define tc_frob_symbol(sym,punt) \
105 { if (S_IS_LOCAL (sym)) \
108 sym->sy_used_in_reloc = 0; \
112 /* Finish processing the entire symbol table: */
113 #define tc_adjust_symtab() arm_adjust_symtab ()
114 extern void arm_adjust_symtab
PARAMS ((void));
117 #define tc_crawl_symbol_chain(a) {;} /* not used */
118 #define tc_headers_hook(a) {;} /* not used */
121 #define tc_aout_pre_write_hook(x) {;} /* not used */
123 #define LISTING_HEADER "ARM GAS "
125 #define OPTIONAL_REGISTER_PREFIX '%'
127 #define md_operand(x)
129 #define TC_HANDLES_FX_DONE
131 #define MD_APPLY_FIX3
133 #define LOCAL_LABELS_FB 1
135 /* end of tc-arm.h */