1 /* tc-vax.h -- Header file for tc-vax.c.
2 Copyright (C) 1987-2024 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 3, 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
23 #define TARGET_BYTES_BIG_ENDIAN 0
27 #define TARGET_FORMAT "a.out-vax-netbsd"
30 #define TARGET_FORMAT "a.out-vax-bsd"
35 #define TARGET_FORMAT "elf32-vax"
38 #define TARGET_ARCH bfd_arch_vax
40 #define NO_RELOC BFD_RELOC_NONE
41 #define NOP_OPCODE 0x01
46 #define TC_PARSE_CONS_EXPRESSION(EXP, NBYTES) vax_cons (EXP, NBYTES)
47 #define TC_CONS_FIX_NEW vax_cons_fix_new
48 bfd_reloc_code_real_type
vax_cons (expressionS
*, int);
49 void vax_cons_fix_new (struct frag
*, int, unsigned int, struct expressionS
*,
50 bfd_reloc_code_real_type
);
53 extern const struct relax_type md_relax_table
[];
54 #define TC_GENERIC_RELAX_TABLE md_relax_table
56 /* Values passed to md_apply_fix don't include symbol values. */
57 #define MD_APPLY_SYM_VALUE(FIX) 0
59 #define tc_fix_adjustable(FIX) \
60 ((FIX)->fx_r_type != BFD_RELOC_VTABLE_INHERIT \
61 && (FIX)->fx_r_type != BFD_RELOC_32_PLT_PCREL \
62 && (FIX)->fx_r_type != BFD_RELOC_32_GOT_PCREL \
63 && (FIX)->fx_r_type != BFD_RELOC_VTABLE_ENTRY \
65 || ((FIX)->fx_subsy != NULL \
66 && (S_GET_SEGMENT ((FIX)->fx_subsy) \
67 == S_GET_SEGMENT ((FIX)->fx_addsy))) \
68 || S_IS_LOCAL ((FIX)->fx_addsy)))