1 /* tc-dlx.h -- Assemble for the DLX
2 Copyright 2002, 2003, 2005 Free Software Foundation, Inc.
4 This file is part of GAS, the GNU Assembler.
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)
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.
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
18 Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
21 /* Initially created by Kuang Hwa Lin, 3/20/2002. */
25 #ifndef __BFD_H_SEEN__
29 /* The target BFD architecture. */
30 #define TARGET_ARCH bfd_arch_dlx
31 #define TARGET_FORMAT "elf32-dlx"
32 #define TARGET_BYTES_BIG_ENDIAN 1
34 #define WORKING_DOT_WORD
38 extern void dlx_pop_insert (void);
39 extern int set_dlx_skip_hi16_flag (int);
40 extern int dlx_unrecognized_line (int);
41 extern bfd_boolean
md_dlx_fix_adjustable (struct fix
*);
43 #define md_pop_insert() dlx_pop_insert ()
45 #define md_convert_frag(b,s,f) as_fatal ("convert_frag called\n")
46 #define md_estimate_size_before_relax(f,s) \
47 (as_fatal ("estimate_size_before_relax called"),1)
49 #define tc_unrecognized_line(c) dlx_unrecognized_line (c)
51 #define tc_coff_symbol_emit_hook(a) ; /* Not used. */
53 #define COFF_MAGIC DLXMAGIC
55 /* No shared lib support, so we don't need to ensure externally
56 visible symbols can be overridden. */
57 #define EXTERN_FORCE_RELOC 0
59 #define tc_fix_adjustable(FIX) md_dlx_fix_adjustable (FIX)
61 /* Values passed to md_apply_fix don't include the symbol value. */
62 #define MD_APPLY_SYM_VALUE(FIX) 0
64 /* Zero Based Segment?? sound very dangerous to me! */
65 #define ZERO_BASED_SEGMENTS
67 /* Permit temporary numeric labels. */
68 #define LOCAL_LABELS_FB 1
70 #undef LOCAL_LABELS_DOLLAR
71 #define LOCAL_LABELS_DOLLAR 0
73 /* .-foo gets turned into PC relative relocs. */