]>
Commit | Line | Data |
---|---|---|
d172d4ba | 1 | /* tc-dlx.h -- Assemble for the DLX |
a2c58332 | 2 | Copyright (C) 2002-2022 Free Software Foundation, Inc. |
d172d4ba NC |
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 | |
ec2655a6 | 8 | the Free Software Foundation; either version 3, or (at your option) |
d172d4ba NC |
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 the Free | |
4b4da160 NC |
18 | Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA |
19 | 02110-1301, USA. */ | |
d172d4ba NC |
20 | |
21 | /* Initially created by Kuang Hwa Lin, 3/20/2002. */ | |
22 | ||
d172d4ba NC |
23 | #define TC_DLX |
24 | ||
d172d4ba | 25 | /* The target BFD architecture. */ |
ea1562b3 NC |
26 | #define TARGET_ARCH bfd_arch_dlx |
27 | #define TARGET_FORMAT "elf32-dlx" | |
28 | #define TARGET_BYTES_BIG_ENDIAN 1 | |
d172d4ba NC |
29 | |
30 | #define WORKING_DOT_WORD | |
31 | ||
32 | #define LEX_DOLLAR 1 | |
33 | ||
5bc11336 AM |
34 | #include "bit_fix.h" |
35 | ||
36 | #define TC_FIX_TYPE bit_fixS * | |
37 | #define tc_fix_data fx_bit_fixP | |
38 | #define TC_INIT_FIX_DATA(FIX) do (FIX)->fx_bit_fixP = NULL; while (0) | |
39 | ||
ea1562b3 | 40 | extern void dlx_pop_insert (void); |
ea1562b3 | 41 | extern int dlx_unrecognized_line (int); |
5b7c81bd | 42 | extern bool md_dlx_fix_adjustable (struct fix *); |
d172d4ba NC |
43 | |
44 | #define md_pop_insert() dlx_pop_insert () | |
45 | ||
a161fe53 | 46 | #define md_convert_frag(b,s,f) as_fatal ("convert_frag called\n") |
d172d4ba NC |
47 | #define md_estimate_size_before_relax(f,s) \ |
48 | (as_fatal ("estimate_size_before_relax called"),1) | |
49 | ||
50 | #define tc_unrecognized_line(c) dlx_unrecognized_line (c) | |
51 | ||
a161fe53 AM |
52 | /* No shared lib support, so we don't need to ensure externally |
53 | visible symbols can be overridden. */ | |
54 | #define EXTERN_FORCE_RELOC 0 | |
55 | ||
a161fe53 | 56 | #define tc_fix_adjustable(FIX) md_dlx_fix_adjustable (FIX) |
d172d4ba | 57 | |
55cf6793 | 58 | /* Values passed to md_apply_fix don't include the symbol value. */ |
a161fe53 | 59 | #define MD_APPLY_SYM_VALUE(FIX) 0 |
d172d4ba | 60 | |
d172d4ba NC |
61 | /* Zero Based Segment?? sound very dangerous to me! */ |
62 | #define ZERO_BASED_SEGMENTS | |
63 | ||
64 | /* Permit temporary numeric labels. */ | |
65 | #define LOCAL_LABELS_FB 1 | |
a161fe53 | 66 | |
d172d4ba | 67 | #undef LOCAL_LABELS_DOLLAR |
d172d4ba NC |
68 | #define LOCAL_LABELS_DOLLAR 0 |
69 | ||
ea1562b3 NC |
70 | /* .-foo gets turned into PC relative relocs. */ |
71 | #define DIFF_EXPR_OK |