Back to index

cell-binutils  2.17cvs20070401
tc-xc16x.h
Go to the documentation of this file.
00001 /* This file is tc-xc16x.h
00002    Copyright 2006 Free Software Foundation, Inc.
00003    Contributed by KPIT Cummins Infosystems 
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_XC16X
00023 
00024 #define TARGET_BYTES_BIG_ENDIAN 0
00025 
00026 #define TARGET_ARCH bfd_arch_xc16x
00027 
00028 #ifdef OBJ_ELF
00029 #define TARGET_FORMAT       "elf32-xc16x"
00030 #define LOCAL_LABEL_PREFIX  '.'
00031 #define LOCAL_LABEL(NAME)   (NAME[0] == '.' && NAME[1] == 'L')
00032 #define FAKE_LABEL_NAME     ".L0\001"
00033 #endif
00034 
00035 #if ANSI_PROTOTYPES
00036 struct fix;
00037 struct internal_reloc;
00038 #endif
00039 
00040 #define WORKING_DOT_WORD
00041 
00042 #define BFD_ARCH bfd_arch_xc16x
00043 #define TC_COUNT_RELOC(x)  1
00044 #define IGNORE_NONSTANDARD_ESCAPES
00045 
00046 #define TC_RELOC_MANGLE(s,a,b,c) tc_reloc_mangle(a,b,c)
00047 extern void tc_reloc_mangle (struct fix *, struct internal_reloc *, bfd_vma);
00048 
00049 /* No shared lib support, so we don't need to ensure externally
00050    visible symbols can be overridden.  */
00051 #define EXTERN_FORCE_RELOC 0
00052 
00053 /* Minimum instruction is of 16 bits.  */
00054 #define DWARF2_LINE_MIN_INSN_LENGTH 2
00055 
00056 #define DO_NOT_STRIP 0
00057 #define LISTING_HEADER "Infineon XC16X GAS "
00058 #define NEED_FX_R_TYPE 1
00059 #define MD_PCREL_FROM_SECTION(FIX, SEC) md_pcrel_from_section (FIX, SEC)
00060 extern long md_pcrel_from_section (struct fix *, segT);
00061 
00062 #define md_operand(x)