| 1 | /* tc-dlx.h -- Assemble for the DLX
|
|---|
| 2 | Copyright 2002, 2003 Free Software Foundation, Inc.
|
|---|
| 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
|
|---|
| 8 | the Free Software Foundation; either version 2, or (at your option)
|
|---|
| 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
|
|---|
| 18 | Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
|---|
| 19 | 02111-1307, USA. */
|
|---|
| 20 |
|
|---|
| 21 | /* Initially created by Kuang Hwa Lin, 3/20/2002. */
|
|---|
| 22 |
|
|---|
| 23 | #define TC_DLX
|
|---|
| 24 |
|
|---|
| 25 | #ifndef BFD_ASSEMBLER
|
|---|
| 26 | #error DLX support requires BFD_ASSEMBLER
|
|---|
| 27 | #endif
|
|---|
| 28 |
|
|---|
| 29 | #ifndef __BFD_H_SEEN__
|
|---|
| 30 | #include "bfd.h"
|
|---|
| 31 | #endif
|
|---|
| 32 |
|
|---|
| 33 | /* The target BFD architecture. */
|
|---|
| 34 | #define TARGET_ARCH bfd_arch_dlx
|
|---|
| 35 | #define TARGET_FORMAT "elf32-dlx"
|
|---|
| 36 | #define TARGET_BYTES_BIG_ENDIAN 1
|
|---|
| 37 |
|
|---|
| 38 | #define WORKING_DOT_WORD
|
|---|
| 39 |
|
|---|
| 40 | #define LEX_DOLLAR 1
|
|---|
| 41 |
|
|---|
| 42 | /* #define md_operand(x) */
|
|---|
| 43 | extern void dlx_pop_insert PARAMS ((void));
|
|---|
| 44 | extern int set_dlx_skip_hi16_flag PARAMS ((int));
|
|---|
| 45 |
|
|---|
| 46 | #define md_pop_insert() dlx_pop_insert ()
|
|---|
| 47 |
|
|---|
| 48 | #define md_convert_frag(b,s,f) as_fatal ("convert_frag called\n")
|
|---|
| 49 | #define md_estimate_size_before_relax(f,s) \
|
|---|
| 50 | (as_fatal ("estimate_size_before_relax called"),1)
|
|---|
| 51 |
|
|---|
| 52 | #define tc_unrecognized_line(c) dlx_unrecognized_line (c)
|
|---|
| 53 |
|
|---|
| 54 | extern int dlx_unrecognized_line PARAMS ((int));
|
|---|
| 55 |
|
|---|
| 56 | #define tc_headers_hook(a) ; /* not used */
|
|---|
| 57 | #define tc_headers_hook(a) ; /* not used */
|
|---|
| 58 | #define tc_crawl_symbol_chain(a) ; /* not used */
|
|---|
| 59 | #define tc_coff_symbol_emit_hook(a) ; /* not used */
|
|---|
| 60 |
|
|---|
| 61 | #define AOUT_MACHTYPE 101
|
|---|
| 62 | #define TC_COFF_FIX2RTYPE(fix_ptr) tc_coff_fix2rtype (fix_ptr)
|
|---|
| 63 | #define BFD_ARCH bfd_arch_dlx
|
|---|
| 64 | #define COFF_MAGIC DLXMAGIC
|
|---|
| 65 | /* Should the reloc be output ?
|
|---|
| 66 | on the 29k, this is true only if there is a symbol attatched.
|
|---|
| 67 | on the h8, this is allways true, since no fixup is done
|
|---|
| 68 | on dlx, I have no idea!! but lets keep it here just for fun.
|
|---|
| 69 | */
|
|---|
| 70 | #define TC_COUNT_RELOC(x) (x->fx_addsy)
|
|---|
| 71 | #define TC_CONS_RELOC BFD_RELOC_32_PCREL
|
|---|
| 72 |
|
|---|
| 73 | /* No shared lib support, so we don't need to ensure externally
|
|---|
| 74 | visible symbols can be overridden. */
|
|---|
| 75 | #define EXTERN_FORCE_RELOC 0
|
|---|
| 76 |
|
|---|
| 77 | #define tc_fix_adjustable(FIX) md_dlx_fix_adjustable (FIX)
|
|---|
| 78 | extern bfd_boolean md_dlx_fix_adjustable PARAMS ((struct fix *));
|
|---|
| 79 |
|
|---|
| 80 | /* Values passed to md_apply_fix3 don't include the symbol value. */
|
|---|
| 81 | #define MD_APPLY_SYM_VALUE(FIX) 0
|
|---|
| 82 |
|
|---|
| 83 | #define NEED_FX_R_TYPE
|
|---|
| 84 |
|
|---|
| 85 | /* Zero Based Segment?? sound very dangerous to me! */
|
|---|
| 86 | #define ZERO_BASED_SEGMENTS
|
|---|
| 87 |
|
|---|
| 88 | /* Permit temporary numeric labels. */
|
|---|
| 89 | #define LOCAL_LABELS_FB 1
|
|---|
| 90 |
|
|---|
| 91 | #undef LOCAL_LABELS_DOLLAR
|
|---|
| 92 | #define LOCAL_LABELS_DOLLAR 0
|
|---|
| 93 |
|
|---|
| 94 | #define DIFF_EXPR_OK /* .-foo gets turned into PC relative relocs */
|
|---|