Commit | Line | Data |
---|---|---|
7be9a312 | 1 | /* tc-d10v.h -- Header file for tc-d10v.c. |
d7bf6158 | 2 | Copyright (C) 1996, 1997 Free Software Foundation, Inc. |
7be9a312 MH |
3 | Written by Martin Hunt, Cygnus Support. |
4 | ||
5 | This file is part of GAS, the GNU Assembler. | |
6 | ||
7 | GAS is free software; you can redistribute it and/or modify | |
8 | it under the terms of the GNU General Public License as published by | |
9 | the Free Software Foundation; either version 2, or (at your option) | |
10 | any later version. | |
11 | ||
12 | GAS is distributed in the hope that it will be useful, | |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | GNU General Public License for more details. | |
16 | ||
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 | |
19 | the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ | |
20 | ||
21 | #define TC_D10V | |
22 | ||
d7bf6158 ILT |
23 | #define TARGET_BYTES_BIG_ENDIAN 0 |
24 | ||
7be9a312 MH |
25 | #ifndef BFD_ASSEMBLER |
26 | #error D10V support requires BFD_ASSEMBLER | |
27 | #endif | |
28 | ||
29 | /* The target BFD architecture. */ | |
30 | #define TARGET_ARCH bfd_arch_d10v | |
31 | ||
32 | #define TARGET_FORMAT "elf32-d10v" | |
33 | ||
34 | #define MD_APPLY_FIX3 | |
7be9a312 MH |
35 | |
36 | /* call md_pcrel_from_section, not md_pcrel_from */ | |
37 | #define MD_PCREL_FROM_SECTION(FIXP, SEC) md_pcrel_from_section(FIXP, SEC) | |
38 | ||
39 | /* Permit temporary numeric labels. */ | |
40 | #define LOCAL_LABELS_FB 1 | |
41 | ||
42 | #define LOCAL_LABEL(name) (name[0] == '.' \ | |
43 | && (name[1] == 'L' || name[1] == '.')) | |
44 | #define FAKE_LABEL_NAME ".L0\001" | |
45 | #define DIFF_EXPR_OK /* .-foo gets turned into PC relative relocs */ | |
46 | ||
47 | /* We don't need to handle .word strangely. */ | |
48 | #define WORKING_DOT_WORD | |
49 | ||
7be9a312 MH |
50 | #define md_number_to_chars number_to_chars_bigendian |
51 | ||
0ef32559 MH |
52 | int d10v_cleanup PARAMS ((void)); |
53 | #define md_after_pass_hook() d10v_cleanup() | |
daa04fa2 | 54 | #define md_cleanup() d10v_cleanup() |
d7bf6158 | 55 | #define md_do_align(a,b,c,d,e) d10v_cleanup() |
0ef32559 | 56 | #define TC_START_LABEL(ch, ptr) (ch == ':' && d10v_cleanup()) |
7be9a312 MH |
57 | |
58 |