Commit | Line | Data |
---|---|---|
252b5132 | 1 | /* tc-arc.h - Macros and type defines for the ARC. |
ec2655a6 | 2 | Copyright 1994, 1995, 1997, 2000, 2001, 2002, 2005, 2007 |
a161fe53 | 3 | Free Software Foundation, Inc. |
252b5132 RH |
4 | Contributed by Doug Evans (dje@cygnus.com). |
5 | ||
6 | This file is part of GAS, the GNU Assembler. | |
7 | ||
8 | GAS is free software; you can redistribute it and/or modify | |
9 | it under the terms of the GNU General Public License as | |
ec2655a6 | 10 | published by the Free Software Foundation; either version 3, |
252b5132 RH |
11 | or (at your option) any later version. |
12 | ||
13 | GAS is distributed in the hope that it will be useful, but | |
14 | WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See | |
16 | the GNU General Public License for more details. | |
17 | ||
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 | |
4b4da160 NC |
20 | Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA |
21 | 02110-1301, USA. */ | |
252b5132 RH |
22 | |
23 | #define TC_ARC 1 | |
24 | ||
25 | #define TARGET_BYTES_BIG_ENDIAN 0 | |
26 | ||
27 | #define LOCAL_LABELS_FB 1 | |
28 | ||
29 | #define TARGET_ARCH bfd_arch_arc | |
30 | ||
0d2bcfaf NC |
31 | #define DIFF_EXPR_OK |
32 | #define REGISTER_PREFIX '%' | |
33 | ||
4a314ec8 NC |
34 | #ifdef LITTLE_ENDIAN |
35 | #undef LITTLE_ENDIAN | |
36 | #endif | |
37 | ||
38 | #ifdef BIG_ENDIAN | |
39 | #undef BIG_ENDIAN | |
40 | #endif | |
41 | ||
252b5132 | 42 | #define LITTLE_ENDIAN 1234 |
0d2bcfaf | 43 | |
252b5132 RH |
44 | #define BIG_ENDIAN 4321 |
45 | ||
46 | /* The endianness of the target format may change based on command | |
47 | line arguments. */ | |
ea1562b3 | 48 | extern const char * arc_target_format; |
252b5132 | 49 | |
ea1562b3 NC |
50 | #define DEFAULT_TARGET_FORMAT "elf32-littlearc" |
51 | #define TARGET_FORMAT arc_target_format | |
52 | #define DEFAULT_BYTE_ORDER LITTLE_ENDIAN | |
252b5132 | 53 | #define WORKING_DOT_WORD |
ea1562b3 | 54 | #define LISTING_HEADER "ARC GAS " |
252b5132 | 55 | |
252b5132 RH |
56 | /* The ARC needs to parse reloc specifiers in .word. */ |
57 | ||
ea1562b3 | 58 | extern void arc_parse_cons_expression (struct expressionS *, unsigned); |
252b5132 | 59 | #define TC_PARSE_CONS_EXPRESSION(EXP, NBYTES) \ |
ea1562b3 | 60 | arc_parse_cons_expression (EXP, NBYTES) |
252b5132 | 61 | |
ea1562b3 | 62 | extern void arc_cons_fix_new (struct frag *, int, int, struct expressionS *); |
252b5132 | 63 | #define TC_CONS_FIX_NEW(FRAG, WHERE, NBYTES, EXP) \ |
ea1562b3 | 64 | arc_cons_fix_new (FRAG, WHERE, NBYTES, EXP) |
bcee8eb8 AM |
65 | |
66 | #define DWARF2_LINE_MIN_INSN_LENGTH 4 | |
a161fe53 | 67 | |
55cf6793 | 68 | /* Values passed to md_apply_fix don't include the symbol value. */ |
a161fe53 AM |
69 | #define MD_APPLY_SYM_VALUE(FIX) 0 |
70 | ||
71 | /* No shared lib support, so we don't need to ensure externally | |
72 | visible symbols can be overridden. */ | |
73 | #define EXTERN_FORCE_RELOC 0 |