Commit | Line | Data |
---|---|---|
305a3af6 SC |
1 | /* This file is tc-arm.h |
2 | Contributed by Richard Earnshaw (rwe@pegasus.esprit.ec.org) | |
3 | Modified by David Taylor (dtaylor@armltd.co.uk) | |
4 | ||
5 | Copyright (C) 1994, 1995 Free Software Foundation, Inc. | |
6 | ||
7 | This file is part of GAS, the GNU Assembler. | |
8 | ||
9 | GAS is free software; you can redistribute it and/or modify | |
10 | it under the terms of the GNU General Public License as published by | |
11 | the Free Software Foundation; either version 2, or (at your option) | |
12 | any later version. | |
13 | ||
14 | GAS is distributed in the hope that it will be useful, | |
15 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 | GNU General Public License for more details. | |
18 | ||
19 | You should have received a copy of the GNU General Public License | |
20 | along with GAS; see the file COPYING. If not, write to | |
21 | the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ | |
22 | ||
23 | #define TC_ARM 1 | |
24 | ||
25 | #define COFF_MAGIC ARMMAGIC | |
26 | #define TARGET_ARCH bfd_arch_arm | |
27 | ||
28 | #define AOUT_MACHTYPE 0 | |
29 | ||
30 | #define DIFF_EXPR_OK | |
31 | ||
32 | #define LITTLE_ENDIAN 1234 | |
33 | #define BIG_ENDIAN 4321 | |
34 | ||
35 | /* If neither TARGET_BYTES_BIG_ENDIAN nor TARGET_BYTES_LITTLE_ENDIAN | |
36 | is specified, default to little endian. */ | |
37 | #ifndef TARGET_BYTES_BIG_ENDIAN | |
38 | #ifndef TARGET_BYTES_LITTLE_ENDIAN | |
39 | #define TARGET_BYTES_LITTLE_ENDIAN | |
40 | #endif | |
41 | #endif | |
42 | ||
43 | #ifdef OBJ_AOUT | |
44 | #ifdef TE_RISCIX | |
45 | #define TARGET_FORMAT "a.out-riscix" | |
46 | #else | |
47 | #ifdef TARGET_BYTES_BIG_ENDIAN | |
48 | #define TARGET_FORMAT "a.out-arm-big" | |
49 | #else | |
50 | #define TARGET_FORMAT "a.out-arm-little" | |
51 | #endif | |
52 | #endif | |
53 | #endif | |
54 | ||
55 | #ifdef OBJ_AIF | |
56 | #define TARGET_FORMAT "aif" | |
57 | #endif | |
58 | ||
59 | #ifdef OBJ_COFF | |
60 | #ifdef TE_PE | |
61 | #define TC_FORCE_RELOCATION(x) ((x)->fx_r_type==11) | |
62 | #define TARGET_FORMAT (target_big_endian ? "pe-arm-big" : "pe-arm-little") | |
63 | /* Tell tc-arm.c to support runtime endian selection. */ | |
64 | #define ARM_BI_ENDIAN | |
65 | #endif | |
66 | #endif | |
67 | ||
68 | #define md_convert_frag(b,s,f) {as_fatal ("arm convert_frag\n");} | |
69 | ||
70 | #define md_after_pass_hook() arm_after_pass_hook () | |
71 | #define md_start_line_hook() arm_start_line_hook () | |
72 | #define tc_frob_label(S) arm_frob_label (S) | |
73 | ||
74 | #define obj_fix_adjustable(fixP) 0 | |
75 | ||
76 | #if 0 /* It isn't as simple as this */ | |
77 | #define tc_frob_symbol(sym,punt) \ | |
78 | { if (S_IS_LOCAL (sym)) \ | |
79 | { \ | |
80 | punt = 1; \ | |
81 | sym->sy_used_in_reloc = 0; \ | |
82 | }} | |
83 | #endif | |
84 | ||
85 | #if 0 | |
86 | #define tc_crawl_symbol_chain(a) {;} /* not used */ | |
87 | #define tc_headers_hook(a) {;} /* not used */ | |
88 | #endif | |
89 | ||
90 | #define tc_aout_pre_write_hook(x) {;} /* not used */ | |
91 | ||
92 | #define LISTING_HEADER "ARM GAS " | |
93 | ||
94 | #define OPTIONAL_REGISTER_PREFIX '%' | |
95 | ||
96 | #define md_operand(x) | |
97 | ||
98 | #define LOCAL_LABELS_FB 1 | |
99 | ||
100 | /* Use defaults for OBJ_AOUT. */ | |
101 | #ifndef OBJ_AOUT | |
102 | #define LOCAL_LABEL(name) ((name)[0] == '.' && (name)[1] == 'L') | |
103 | #define FAKE_LABEL_NAME ".L0\001" | |
104 | #endif | |
105 | ||
106 | /* end of tc-arm.h */ |