1 /* tc-arc.h - Macros and type defines for the ARC.
2 Copyright (C) 1994, 1995, 1997, 1999, 2000 Free Software Foundation, Inc.
3 Contributed by Doug Evans (dje@cygnus.com).
5 This file is part of GAS, the GNU Assembler.
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.
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.
17 You should have received a copy of the GNU General Public License
18 along with GAS; see the file COPYING. If not, write to the Free
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
24 #define TARGET_BYTES_BIG_ENDIAN 0
26 #define LOCAL_LABELS_FB 1
28 #define TARGET_ARCH bfd_arch_arc
38 #define LITTLE_ENDIAN 1234
39 #define BIG_ENDIAN 4321
41 /* The endianness of the target format may change based on command
43 extern const char *arc_target_format
;
44 #define DEFAULT_TARGET_FORMAT "elf32-littlearc"
45 #define TARGET_FORMAT arc_target_format
46 #define DEFAULT_BYTE_ORDER LITTLE_ENDIAN
48 #define WORKING_DOT_WORD
50 #define LISTING_HEADER "ARC GAS "
52 #define TC_HANDLES_FX_DONE
56 /* The ARC needs to parse reloc specifiers in .word. */
58 extern void arc_parse_cons_expression ();
59 #define TC_PARSE_CONS_EXPRESSION(EXP, NBYTES) \
60 arc_parse_cons_expression (EXP, NBYTES)
62 extern void arc_cons_fix_new ();
63 #define TC_CONS_FIX_NEW(FRAG, WHERE, NBYTES, EXP) \
64 arc_cons_fix_new (FRAG, WHERE, NBYTES, EXP)
67 /* Extra stuff that we need to keep track of for each symbol. */
70 /* The real name, if the symbol was renamed. */
74 #define TC_SYMFIELD_TYPE struct arc_tc_sy
76 /* Finish up the symbol. */
77 extern int arc_frob_symbol
PARAMS ((symbolS
*));
78 #define tc_frob_symbol(sym, punt) punt = arc_frob_symbol (sym)