1 /* tc-vax.h -- Header file for tc-vax.c.
2 Copyright 1987, 1991, 1992, 1993, 1995, 1996, 1997, 2000, 2002, 2005,
3 2006, 2007 Free Software Foundation, Inc.
5 This file is part of GAS, the GNU Assembler.
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 3, or (at your option)
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.
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, 51 Franklin Street - Fifth Floor, Boston, MA
24 #define TARGET_BYTES_BIG_ENDIAN 0
28 #define TARGET_FORMAT "a.out-vax-netbsd"
31 #define TARGET_FORMAT "a.out-vax-bsd"
36 #define TARGET_FORMAT "vms-vax"
40 #define TARGET_FORMAT "elf32-vax"
43 #define TARGET_ARCH bfd_arch_vax
45 #define NO_RELOC BFD_RELOC_NONE
46 #define NOP_OPCODE 0x01
51 #define TC_PARSE_CONS_EXPRESSION(EXP, NBYTES) vax_cons (EXP, NBYTES)
52 #define TC_CONS_FIX_NEW vax_cons_fix_new
53 void vax_cons (expressionS
*, int);
54 void vax_cons_fix_new (struct frag
*, int, unsigned int, struct expressionS
*);
57 extern const struct relax_type md_relax_table
[];
58 #define TC_GENERIC_RELAX_TABLE md_relax_table
60 /* Values passed to md_apply_fix don't include symbol values. */
61 #define MD_APPLY_SYM_VALUE(FIX) 0
63 #define tc_fix_adjustable(FIX) \
64 ((FIX)->fx_r_type != BFD_RELOC_VTABLE_INHERIT \
65 && (FIX)->fx_r_type != BFD_RELOC_32_PLT_PCREL \
66 && (FIX)->fx_r_type != BFD_RELOC_32_GOT_PCREL \
67 && (FIX)->fx_r_type != BFD_RELOC_VTABLE_ENTRY \
69 || ((FIX)->fx_subsy != NULL \
70 && (S_GET_SEGMENT ((FIX)->fx_subsy) \
71 == S_GET_SEGMENT ((FIX)->fx_addsy))) \
72 || S_IS_LOCAL ((FIX)->fx_addsy)))