Back to index

cell-binutils  2.17cvs20070401
tc-mt.h
Go to the documentation of this file.
00001 /* tc-mt.h -- Header file for tc-mt.c.
00002    Copyright (C) 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, 59 Temple Place - Suite 330,
00019    Boston, MA 02111-1307, USA. */
00020 
00021 #define TC_MT
00022 
00023 #define LISTING_HEADER "MT GAS "
00024 
00025 /* The target BFD architecture.  */
00026 #define TARGET_ARCH bfd_arch_mt
00027 
00028 #define TARGET_FORMAT "elf32-mt"
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 /* All mt instructions are multiples of 32 bits.  */
00042 #define DWARF2_LINE_MIN_INSN_LENGTH 4
00043 
00044 #define LITERAL_PREFIXDOLLAR_HEX
00045 #define LITERAL_PREFIXPERCENT_BIN
00046 
00047 #define md_apply_fix mt_apply_fix
00048 extern void mt_apply_fix (struct fix *, valueT *, segT); 
00049 
00050 /* Call md_pcrel_from_section(), not md_pcrel_from().  */
00051 #define MD_PCREL_FROM_SECTION(FIXP, SEC) md_pcrel_from_section (FIXP, SEC)
00052 extern long md_pcrel_from_section (struct fix *, segT);
00053 
00054 #define obj_fix_adjustable(fixP) iq2000_fix_adjustable (fixP)
00055 extern bfd_boolean mt_fix_adjustable (struct 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 #define md_operand(x) gas_cgen_md_operand (x)
00063 extern void gas_cgen_md_operand (expressionS *);
00064 
00065 #define TC_FORCE_RELOCATION(fixp) mt_force_relocation (fixp)
00066 extern int mt_force_relocation (struct fix *);
00067 
00068 #define tc_fix_adjustable(fixP) mt_fix_adjustable (fixP)
00069 extern bfd_boolean mt_fix_adjustable (struct fix *);
00070