bfd/
[deliverable/binutils-gdb.git] / gas / config / tc-ms1.h
CommitLineData
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
23#ifndef BFD_ASSEMBLER
24/* Leading space so will compile with cc. */
25 #error MS1 support requires BFD_ASSEMBLER
26#endif
27
28#define LISTING_HEADER "MS1 GAS "
29
30/* The target BFD architecture. */
31#define TARGET_ARCH bfd_arch_ms1
32
33#define TARGET_FORMAT "elf32-ms1"
34
35#define TARGET_BYTES_BIG_ENDIAN 1
36
37/* Permit temporary numeric labels. */
38#define LOCAL_LABELS_FB 1
39
40/* .-foo gets turned into PC relative relocs. */
41#define DIFF_EXPR_OK
42
43/* We don't need to handle .word strangely. */
44#define WORKING_DOT_WORD
45
46/* All ms1 instructions are multiples of 32 bits. */
47#define DWARF2_LINE_MIN_INSN_LENGTH 4
48
49#define LITERAL_PREFIXDOLLAR_HEX
50#define LITERAL_PREFIXPERCENT_BIN
51
52#define md_apply_fix ms1_apply_fix
53extern void ms1_apply_fix (struct fix *, valueT *, segT);
54
55/* Call md_pcrel_from_section(), not md_pcrel_from(). */
56#define MD_PCREL_FROM_SECTION(FIXP, SEC) md_pcrel_from_section (FIXP, SEC)
57extern long md_pcrel_from_section (struct fix *, segT);
58
59#define obj_fix_adjustable(fixP) iq2000_fix_adjustable (fixP)
60extern bfd_boolean ms1_fix_adjustable (struct fix *);
61
62/* Values passed to md_apply_fix don't include the symbol value. */
63#define MD_APPLY_SYM_VALUE(FIX) 0
64
65#define tc_gen_reloc gas_cgen_tc_gen_reloc
66
67#define md_operand(x) gas_cgen_md_operand (x)
68extern void gas_cgen_md_operand (expressionS *);
69
70#define TC_FORCE_RELOCATION(fixp) ms1_force_relocation (fixp)
71extern int ms1_force_relocation (struct fix *);
72
73#define tc_fix_adjustable(fixP) ms1_fix_adjustable (fixP)
74extern bfd_boolean ms1_fix_adjustable (struct fix *);
75
This page took 0.026871 seconds and 4 git commands to generate.