]>
Commit | Line | Data |
---|---|---|
252b5132 | 1 | /* tc-d10v.h -- Header file for tc-d10v.c. |
4b95cf5c | 2 | Copyright (C) 1996-2014 Free Software Foundation, Inc. |
252b5132 RH |
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 | |
ec2655a6 | 9 | the Free Software Foundation; either version 3, or (at your option) |
252b5132 RH |
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 the Free | |
4b4da160 NC |
19 | Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA |
20 | 02110-1301, USA. */ | |
252b5132 RH |
21 | |
22 | #define TC_D10V | |
23 | ||
e4d9f078 | 24 | #define TARGET_BYTES_BIG_ENDIAN 1 |
252b5132 | 25 | |
252b5132 RH |
26 | /* The target BFD architecture. */ |
27 | #define TARGET_ARCH bfd_arch_d10v | |
28 | ||
29 | #define TARGET_FORMAT "elf32-d10v" | |
30 | ||
94f592af | 31 | /* Call md_pcrel_from_section, not md_pcrel_from. */ |
ea1562b3 | 32 | #define MD_PCREL_FROM_SECTION(FIX, SEC) md_pcrel_from_section (FIX, SEC) |
a161fe53 | 33 | struct fix; |
ea1562b3 | 34 | long md_pcrel_from_section (struct fix *, segT); |
252b5132 RH |
35 | |
36 | /* Permit temporary numeric labels. */ | |
37 | #define LOCAL_LABELS_FB 1 | |
38 | ||
ea1562b3 NC |
39 | /* .-foo gets turned into PC relative relocs. */ |
40 | #define DIFF_EXPR_OK | |
252b5132 RH |
41 | |
42 | /* We don't need to handle .word strangely. */ | |
43 | #define WORKING_DOT_WORD | |
44 | ||
1d3b2b27 | 45 | #define md_number_to_chars number_to_chars_bigendian |
252b5132 | 46 | |
ea1562b3 | 47 | int d10v_cleanup (void); |
800f6ec8 | 48 | void d10v_frob_label (symbolS *); |
07726851 KH |
49 | #define md_cleanup() d10v_cleanup () |
50 | #define md_do_align(a,b,c,d,e) d10v_cleanup () | |
800f6ec8 | 51 | #define tc_frob_label(sym) d10v_frob_label (sym) |
252b5132 | 52 | |
a161fe53 | 53 | #define tc_fix_adjustable(FIX) d10v_fix_adjustable(FIX) |
ea1562b3 | 54 | bfd_boolean d10v_fix_adjustable (struct fix *); |
a161fe53 | 55 | |
55cf6793 | 56 | /* Values passed to md_apply_fix don't include the symbol value. */ |
a161fe53 AM |
57 | #define MD_APPLY_SYM_VALUE(FIX) 0 |
58 | ||
59 | /* No shared lib support, so we don't need to ensure externally | |
60 | visible symbols can be overridden. */ | |
61 | #define EXTERN_FORCE_RELOC 0 | |
252b5132 | 62 | |
447f3982 | 63 | #define md_flush_pending_output d10v_cleanup |