]>
Commit | Line | Data |
---|---|---|
252b5132 | 1 | /* tc-d10v.h -- Header file for tc-d10v.c. |
fbdbf472 | 2 | Copyright 1996, 1997, 1998, 2000, 2001, 2002 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 | |
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 the Free | |
19 | Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
81d4177b | 20 | 02111-1307, USA. */ |
252b5132 RH |
21 | |
22 | #define TC_D10V | |
23 | ||
24 | #define TARGET_BYTES_BIG_ENDIAN 0 | |
25 | ||
26 | #ifndef BFD_ASSEMBLER | |
27 | #error D10V support requires BFD_ASSEMBLER | |
28 | #endif | |
29 | ||
30 | /* The target BFD architecture. */ | |
31 | #define TARGET_ARCH bfd_arch_d10v | |
32 | ||
33 | #define TARGET_FORMAT "elf32-d10v" | |
34 | ||
94f592af | 35 | /* Call md_pcrel_from_section, not md_pcrel_from. */ |
a161fe53 AM |
36 | #define MD_PCREL_FROM_SECTION(FIX, SEC) md_pcrel_from_section(FIX, SEC) |
37 | struct fix; | |
38 | long md_pcrel_from_section PARAMS ((struct fix *, segT)); | |
252b5132 RH |
39 | |
40 | /* Permit temporary numeric labels. */ | |
41 | #define LOCAL_LABELS_FB 1 | |
42 | ||
43 | #define DIFF_EXPR_OK /* .-foo gets turned into PC relative relocs */ | |
44 | ||
45 | /* We don't need to handle .word strangely. */ | |
46 | #define WORKING_DOT_WORD | |
47 | ||
48 | #define md_number_to_chars number_to_chars_bigendian | |
49 | ||
50 | int d10v_cleanup PARAMS ((void)); | |
07726851 KH |
51 | #define md_after_pass_hook() d10v_cleanup () |
52 | #define md_cleanup() d10v_cleanup () | |
53 | #define md_do_align(a,b,c,d,e) d10v_cleanup () | |
252b5132 | 54 | #define tc_frob_label(sym) do {\ |
07726851 | 55 | d10v_cleanup (); \ |
1c97d17b JE |
56 | symbol_set_frag (sym, frag_now); \ |
57 | S_SET_VALUE (sym, (valueT) frag_now_fix ()); \ | |
252b5132 RH |
58 | } while (0) |
59 | ||
a161fe53 | 60 | #define tc_fix_adjustable(FIX) d10v_fix_adjustable(FIX) |
b34976b6 | 61 | bfd_boolean d10v_fix_adjustable PARAMS ((struct fix *)); |
a161fe53 AM |
62 | |
63 | #define TC_FORCE_RELOCATION(FIX) d10v_force_relocation(FIX) | |
64 | extern int d10v_force_relocation PARAMS ((struct fix *)); | |
65 | ||
66 | /* Values passed to md_apply_fix3 don't include the symbol value. */ | |
67 | #define MD_APPLY_SYM_VALUE(FIX) 0 | |
68 | ||
69 | /* No shared lib support, so we don't need to ensure externally | |
70 | visible symbols can be overridden. */ | |
71 | #define EXTERN_FORCE_RELOC 0 | |
252b5132 | 72 | |
447f3982 | 73 | #define md_flush_pending_output d10v_cleanup |