Back to index

cell-binutils  2.17cvs20070401
tc-iq2000.h
Go to the documentation of this file.
00001 /* tc-iq2000.h -- Header file for tc-iq2000.c.
00002    Copyright (C) 2003, 2004, 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_IQ2000
00022 
00023 #define LISTING_HEADER "IQ2000 GAS "
00024 
00025 /* The target BFD architecture.  */
00026 #define TARGET_ARCH bfd_arch_iq2000
00027 
00028 #define TARGET_FORMAT "elf32-iq2000"
00029 
00030 #define TARGET_BYTES_BIG_ENDIAN 1
00031 
00032 /* Permit temporary numeric labels.  */
00033 #define LOCAL_LABELS_FB 1
00034 
00035 /* .-foo gets turned into PC relative relocs.  */
00036 #define DIFF_EXPR_OK
00037 
00038 /* We don't need to handle .word strangely.  */
00039 #define WORKING_DOT_WORD
00040 
00041 #define md_apply_fix gas_cgen_md_apply_fix
00042 
00043 /* Call md_pcrel_from_section(), not md_pcrel_from().  */
00044 #define MD_PCREL_FROM_SECTION(FIXP, SEC) md_pcrel_from_section (FIXP, SEC)
00045 
00046 #define tc_frob_file() iq2000_frob_file ()
00047 
00048 #define obj_fix_adjustable(fixP) iq2000_fix_adjustable (fixP)
00049 
00050 /* After creating a fixup for an instruction operand, we need to check
00051    for HI16 relocs and queue them up for later sorting.  */
00052 #define md_cgen_record_fixup_exp  iq2000_cgen_record_fixup_exp
00053 
00054 /* When relaxing, we need to emit various relocs we otherwise wouldn't.  */
00055 #define TC_FORCE_RELOCATION(fix) iq2000_force_relocation (fix)
00056 
00057 /* Values passed to md_apply_fix don't include the symbol value.  */
00058 #define MD_APPLY_SYM_VALUE(FIX) 0
00059 
00060 #define tc_gen_reloc gas_cgen_tc_gen_reloc
00061 
00062 extern void         iq2000_frob_file         (void);
00063 extern bfd_boolean  iq2000_fix_adjustable    (struct fix *);
00064 extern int          iq2000_force_relocation  (struct fix *);
00065 extern long         md_pcrel_from_section    (struct fix *, segT);