]>
Commit | Line | Data |
---|---|---|
2db01c3d DE |
1 | /* tc-arc.h - Macros and type defines for the ARC. |
2 | Copyright (C) 1994, 1995 Free Software Foundation, Inc. | |
3 | Contributed by Doug Evans ([email protected]). | |
4 | ||
5 | This file is part of GAS, the GNU Assembler. | |
6 | ||
7 | GAS is free software; you can redistribute it and/or modify | |
8 | it under the terms of the GNU General Public License as | |
9 | published by the Free Software Foundation; either version 2, | |
10 | or (at your option) any later version. | |
11 | ||
12 | GAS is distributed in the hope that it will be useful, but | |
13 | WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See | |
15 | the GNU General Public License for more details. | |
16 | ||
17 | You should have received a copy of the GNU General Public | |
18 | License along with GAS; see the file COPYING. If not, write | |
a2a5a4fa | 19 | to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ |
2db01c3d DE |
20 | |
21 | #define TC_ARC 1 | |
22 | ||
a2a5a4fa | 23 | #define LOCAL_LABELS_FB 1 |
2db01c3d DE |
24 | |
25 | #define TARGET_ARCH bfd_arch_arc | |
a2a5a4fa KR |
26 | |
27 | #define LITTLE_ENDIAN 1234 | |
28 | #define BIG_ENDIAN 4321 | |
29 | ||
30 | /* The endianness of the target format may change based on command | |
31 | line arguments. */ | |
32 | extern const char *arc_target_format; | |
33 | #define DEFAULT_TARGET_FORMAT "elf32-littlearc" | |
34 | #define TARGET_FORMAT arc_target_format | |
35 | #define DEFAULT_BYTE_ORDER LITTLE_ENDIAN | |
36 | ||
2db01c3d | 37 | #define LOCAL_LABEL(name) ((name)[0] == '.' && (name)[1] == 'L') |
a2a5a4fa KR |
38 | #define FAKE_LABEL_NAME ".L0\001" |
39 | ||
2db01c3d DE |
40 | #define WORKING_DOT_WORD |
41 | ||
42 | #define LISTING_HEADER "ARC GAS " | |
43 | ||
44 | #define TC_HANDLES_FX_DONE | |
45 | ||
a2a5a4fa KR |
46 | #define MD_APPLY_FIX3 |
47 | ||
48 | /* The ARC needs to parse reloc specifiers in .word. */ | |
49 | ||
50 | extern void arc_parse_cons_expression (); | |
51 | #define TC_PARSE_CONS_EXPRESSION(EXP, NBYTES) \ | |
52 | arc_parse_cons_expression (EXP, NBYTES) | |
53 | ||
54 | extern void arc_cons_fix_new (); | |
55 | #define TC_CONS_FIX_NEW(FRAG, WHERE, NBYTES, EXP) \ | |
56 | arc_cons_fix_new (FRAG, WHERE, NBYTES, EXP) | |
57 | ||
2db01c3d DE |
58 | #if 0 |
59 | /* Extra stuff that we need to keep track of for each symbol. */ | |
60 | struct arc_tc_sy | |
61 | { | |
62 | /* The real name, if the symbol was renamed. */ | |
63 | char *real_name; | |
64 | }; | |
65 | ||
66 | #define TC_SYMFIELD_TYPE struct arc_tc_sy | |
67 | ||
68 | /* Finish up the symbol. */ | |
69 | extern int arc_frob_symbol PARAMS ((struct symbol *)); | |
70 | #define tc_frob_symbol(sym, punt) punt = arc_frob_symbol (sym) | |
71 | #endif |