Back to index

cell-binutils  2.17cvs20070401
tc-vax.h
Go to the documentation of this file.
00001 /* tc-vax.h -- Header file for tc-vax.c.
00002    Copyright 1987, 1991, 1992, 1993, 1995, 1996, 1997, 2000, 2002, 2005, 2006
00003    Free Software Foundation, Inc.
00004 
00005    This file is part of GAS, the GNU Assembler.
00006 
00007    GAS is free software; you can redistribute it and/or modify
00008    it under the terms of the GNU General Public License as published by
00009    the Free Software Foundation; either version 2, or (at your option)
00010    any later version.
00011 
00012    GAS is distributed in the hope that it will be useful,
00013    but WITHOUT ANY WARRANTY; without even the implied warranty of
00014    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015    GNU General Public License for more details.
00016 
00017    You should have received a copy of the GNU General Public License
00018    along with GAS; see the file COPYING.  If not, write to the Free
00019    Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
00020    02110-1301, USA.  */
00021 
00022 #define TC_VAX 1
00023 
00024 #define TARGET_BYTES_BIG_ENDIAN 0
00025 
00026 #ifdef OBJ_AOUT
00027 #ifdef TE_NetBSD
00028 #define TARGET_FORMAT "a.out-vax-netbsd"
00029 #endif
00030 #ifndef TARGET_FORMAT
00031 #define TARGET_FORMAT "a.out-vax-bsd"
00032 #endif
00033 #endif
00034 
00035 #ifdef OBJ_VMS
00036 #define TARGET_FORMAT "vms-vax"
00037 #endif
00038 
00039 #ifdef OBJ_ELF
00040 #define TARGET_FORMAT "elf32-vax"
00041 #endif
00042 
00043 #define TARGET_ARCH  bfd_arch_vax
00044 
00045 #define NO_RELOC     BFD_RELOC_NONE
00046 #define NOP_OPCODE   0x01
00047 
00048 #define md_operand(x)
00049 
00050 extern const struct relax_type md_relax_table[];
00051 #define TC_GENERIC_RELAX_TABLE md_relax_table
00052 
00053 /* Values passed to md_apply_fix don't include symbol values.  */
00054 #define MD_APPLY_SYM_VALUE(FIX) 0
00055 
00056 #define tc_fix_adjustable(FIX)                                 \
00057        ((FIX)->fx_r_type != BFD_RELOC_VTABLE_INHERIT           \
00058         && (FIX)->fx_r_type != BFD_RELOC_32_PLT_PCREL          \
00059         && (FIX)->fx_r_type != BFD_RELOC_32_GOT_PCREL          \
00060         && (FIX)->fx_r_type != BFD_RELOC_VTABLE_ENTRY          \
00061         && ((FIX)->fx_pcrel                             \
00062             || ((FIX)->fx_subsy != NULL                 \
00063                && (S_GET_SEGMENT ((FIX)->fx_subsy)             \
00064                    == S_GET_SEGMENT ((FIX)->fx_addsy))) \
00065             || S_IS_LOCAL ((FIX)->fx_addsy)))
00066 
00067 /*
00068  * Local Variables:
00069  * comment-column: 0
00070  * fill-column: 131
00071  * End:
00072  */