Back to index

cell-binutils  2.17cvs20070401
tc-xstormy16.h
Go to the documentation of this file.
00001 /* tc-xstormy16.h -- Header file for tc-xstormy16.c.
00002    Copyright 2000, 2001, 2002, 2005 Free Software Foundation, Inc.
00003 
00004    This file is part of GAS, the GNU Assembler.
00005 
00006    GAS is free software; you can redistribute it and/or modify
00007    it under the terms of the GNU General Public License as published by
00008    the Free Software Foundation; either version 2, or (at your option)
00009    any later version.
00010 
00011    GAS is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014    GNU General Public License for more details.
00015 
00016    You should have received a copy of the GNU General Public License
00017    along with GAS; see the file COPYING.  If not, write to
00018    the Free Software Foundation, 51 Franklin Street - Fifth Floor,
00019    Boston, MA 02110-1301, USA.  */
00020 
00021 #define TC_XSTORMY16
00022 
00023 #define LISTING_HEADER "XSTORMY16 GAS "
00024 
00025 /* The target BFD architecture.  */
00026 #define TARGET_ARCH bfd_arch_xstormy16
00027 
00028 #define TARGET_FORMAT "elf32-xstormy16"
00029 
00030 #define TARGET_BYTES_BIG_ENDIAN 0
00031 
00032 /* Permit temporary numeric labels.  */
00033 #define LOCAL_LABELS_FB 1
00034 
00035 #define DIFF_EXPR_OK        /* foo-. gets turned into PC relative relocs.  */
00036 
00037 /* We don't need to handle .word strangely.  */
00038 #define WORKING_DOT_WORD
00039 
00040 /* Values passed to md_apply_fix don't include the symbol value.  */
00041 #define MD_APPLY_SYM_VALUE(FIX) 0
00042 
00043 #define md_apply_fix xstormy16_md_apply_fix
00044 
00045 #define tc_fix_adjustable(FIX) xstormy16_fix_adjustable (FIX)
00046 extern bfd_boolean xstormy16_fix_adjustable (struct fix *);
00047 
00048 #define TC_FORCE_RELOCATION(fix) xstormy16_force_relocation (fix)
00049 extern int xstormy16_force_relocation (struct fix *);
00050 
00051 #define TC_HANDLES_FX_DONE
00052 
00053 #define tc_gen_reloc gas_cgen_tc_gen_reloc
00054 
00055 /* Call md_pcrel_from_section(), not md_pcrel_from().  */
00056 #define MD_PCREL_FROM_SECTION(FIX, SEC) md_pcrel_from_section (FIX, SEC)
00057 extern long md_pcrel_from_section (struct fix *, segT);
00058 
00059 #define TC_CONS_FIX_NEW xstormy16_cons_fix_new
00060 extern void xstormy16_cons_fix_new (fragS *f, int, int, expressionS *);
00061 
00062 #define md_cgen_record_fixup_exp  xstormy16_cgen_record_fixup_exp
00063 
00064 /* Minimum instruction is two bytes.  */
00065 #define DWARF2_LINE_MIN_INSN_LENGTH 2
00066 
00067 /* This target is buggy, and sets fix size too large.  */
00068 #define TC_FX_SIZE_SLACK(FIX) 2