Back to index

cell-binutils  2.17cvs20070401
tc-ip2k.h
Go to the documentation of this file.
00001 /* tc-ip2k.h -- Header file for tc-ip2k.c.
00002    Copyright (C) 2000, 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_IP2K
00022 
00023 #define LISTING_HEADER "IP2xxx GAS "
00024 
00025 /* The target BFD architecture.  */
00026 #define TARGET_ARCH bfd_arch_ip2k
00027 
00028 #define TARGET_FORMAT "elf32-ip2k"
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 LITERAL_PREFIXDOLLAR_HEX
00042 #define LITERAL_PREFIXPERCENT_BIN
00043 #define DOUBLESLASH_LINE_COMMENTS
00044 
00045 /* Values passed to md_apply_fix don't include the symbol value.  */
00046 #define MD_APPLY_SYM_VALUE(FIX) 0
00047 
00048 #define md_apply_fix ip2k_apply_fix
00049 
00050 #define TC_HANDLES_FX_DONE
00051 
00052 /* No shared lib support, so we don't need to ensure externally
00053    visible symbols can be overridden.  */
00054 #define EXTERN_FORCE_RELOC 0
00055 
00056 #define TC_FORCE_RELOCATION(FIX) ip2k_force_relocation (FIX)
00057 extern int ip2k_force_relocation (struct fix *);
00058 
00059 #define tc_gen_reloc gas_cgen_tc_gen_reloc
00060 
00061 #define md_elf_section_flags ip2k_elf_section_flags
00062 extern int ip2k_elf_section_flags (int, int, int);
00063 
00064 #define md_operand(x) gas_cgen_md_operand (x)
00065 extern void gas_cgen_md_operand (expressionS *);