Commit | Line | Data |
---|---|---|
a0defb2e AH |
1 | /* tc-ms1.h -- Header file for tc-ms1.c. |
2 | Copyright (C) 2005 Free Software Foundation, Inc. | |
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, | |
19 | Boston, MA 02111-1307, USA. */ | |
20 | ||
21 | #define TC_MS1 | |
22 | ||
a0defb2e AH |
23 | #define LISTING_HEADER "MS1 GAS " |
24 | ||
25 | /* The target BFD architecture. */ | |
26 | #define TARGET_ARCH bfd_arch_ms1 | |
27 | ||
28 | #define TARGET_FORMAT "elf32-ms1" | |
29 | ||
30 | #define TARGET_BYTES_BIG_ENDIAN 1 | |
31 | ||
32 | /* Permit temporary numeric labels. */ | |
33 | #define LOCAL_LABELS_FB 1 | |
34 | ||
35 | /* .-foo gets turned into PC relative relocs. */ | |
36 | #define DIFF_EXPR_OK | |
37 | ||
38 | /* We don't need to handle .word strangely. */ | |
39 | #define WORKING_DOT_WORD | |
40 | ||
41 | /* All ms1 instructions are multiples of 32 bits. */ | |
42 | #define DWARF2_LINE_MIN_INSN_LENGTH 4 | |
43 | ||
44 | #define LITERAL_PREFIXDOLLAR_HEX | |
45 | #define LITERAL_PREFIXPERCENT_BIN | |
46 | ||
47 | #define md_apply_fix ms1_apply_fix | |
48 | extern void ms1_apply_fix (struct fix *, valueT *, segT); | |
49 | ||
50 | /* Call md_pcrel_from_section(), not md_pcrel_from(). */ | |
51 | #define MD_PCREL_FROM_SECTION(FIXP, SEC) md_pcrel_from_section (FIXP, SEC) | |
52 | extern long md_pcrel_from_section (struct fix *, segT); | |
53 | ||
54 | #define obj_fix_adjustable(fixP) iq2000_fix_adjustable (fixP) | |
55 | extern bfd_boolean ms1_fix_adjustable (struct fix *); | |
56 | ||
57 | /* Values passed to md_apply_fix don't include the symbol value. */ | |
58 | #define MD_APPLY_SYM_VALUE(FIX) 0 | |
59 | ||
60 | #define tc_gen_reloc gas_cgen_tc_gen_reloc | |
61 | ||
62 | #define md_operand(x) gas_cgen_md_operand (x) | |
63 | extern void gas_cgen_md_operand (expressionS *); | |
64 | ||
65 | #define TC_FORCE_RELOCATION(fixp) ms1_force_relocation (fixp) | |
66 | extern int ms1_force_relocation (struct fix *); | |
67 | ||
68 | #define tc_fix_adjustable(fixP) ms1_fix_adjustable (fixP) | |
69 | extern bfd_boolean ms1_fix_adjustable (struct fix *); | |
70 |