Commit | Line | Data |
---|---|---|
93fbbb04 | 1 | /* tc-xstormy16.h -- Header file for tc-xstormy16.c. |
f88fd9fe | 2 | Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc. |
93fbbb04 GK |
3 | |
4 | This file is part of GAS, the GNU Assembler. | |
5 | ||
6 | GAS is free software; you can redistribute it and/or modify | |
7 | it under the terms of the GNU General Public License as published by | |
8 | the Free Software Foundation; either version 2, or (at your option) | |
9 | any later version. | |
10 | ||
11 | GAS is distributed in the hope that it will be useful, | |
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | GNU General Public License for more details. | |
15 | ||
16 | You should have received a copy of the GNU General Public License | |
17 | along with GAS; see the file COPYING. If not, write to | |
18 | the Free Software Foundation, 59 Temple Place - Suite 330, | |
5d6255fe | 19 | Boston, MA 02111-1307, USA. */ |
93fbbb04 GK |
20 | |
21 | #define TC_XSTORMY16 | |
22 | ||
23 | #ifndef BFD_ASSEMBLER | |
24 | /* leading space so will compile with cc */ | |
25 | #error XSTORMY16 support requires BFD_ASSEMBLER | |
26 | #endif | |
27 | ||
28 | #define LISTING_HEADER "XSTORMY16 GAS " | |
29 | ||
30 | /* The target BFD architecture. */ | |
31 | #define TARGET_ARCH bfd_arch_xstormy16 | |
32 | ||
33 | #define TARGET_FORMAT "elf32-xstormy16" | |
34 | ||
35 | #define TARGET_BYTES_BIG_ENDIAN 0 | |
36 | ||
37 | /* call md_pcrel_from_section, not md_pcrel_from */ | |
38 | long md_pcrel_from_section PARAMS ((struct fix *, segT)); | |
39 | #define MD_PCREL_FROM_SECTION(FIXP, SEC) md_pcrel_from_section (FIXP, SEC) | |
40 | ||
41 | /* Permit temporary numeric labels. */ | |
42 | #define LOCAL_LABELS_FB 1 | |
43 | ||
44 | #define DIFF_EXPR_OK /* foo-. gets turned into PC relative relocs */ | |
45 | ||
46 | /* We don't need to handle .word strangely. */ | |
47 | #define WORKING_DOT_WORD | |
48 | ||
49 | #define MD_APPLY_FIX3 | |
50 | #define md_apply_fix3 xstormy16_md_apply_fix3 | |
51 | ||
52 | #define obj_fix_adjustable(fixP) xstormy16_fix_adjustable (fixP) | |
53 | extern boolean xstormy16_fix_adjustable PARAMS ((struct fix *)); | |
54 | ||
55 | #define TC_FORCE_RELOCATION(fix) xstormy16_force_relocation (fix) | |
56 | extern int xstormy16_force_relocation PARAMS ((struct fix *)); | |
57 | ||
58 | #define TC_HANDLES_FX_DONE | |
59 | ||
60 | #define tc_gen_reloc gas_cgen_tc_gen_reloc | |
61 | ||
62 | /* Call md_pcrel_from_section(), not md_pcrel_from(). */ | |
63 | #define MD_PCREL_FROM_SECTION(FIXP, SEC) md_pcrel_from_section (FIXP, SEC) | |
64 | extern long md_pcrel_from_section PARAMS ((struct fix *, segT)); | |
65 | ||
66 | #define TC_CONS_FIX_NEW xstormy16_cons_fix_new | |
67 | extern void xstormy16_cons_fix_new PARAMS ((fragS *f, int, int, expressionS *)); | |
68 | ||
69 | #define md_cgen_record_fixup_exp xstormy16_cgen_record_fixup_exp | |
f88fd9fe TT |
70 | |
71 | /* Minimum instruction is two bytes. */ | |
72 | #define DWARF2_LINE_MIN_INSN_LENGTH 2 |