Back to index

cell-binutils  2.17cvs20070401
tc-bfin.h
Go to the documentation of this file.
00001 /* tc-bfin.h - header file for tc-bfin.c
00002    Copyright 2005
00003    Free Software Foundation, Inc.
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_BFIN 1
00023 #define TC_ADI_BFIN 1
00024 
00025 #define TARGET_BYTES_BIG_ENDIAN 0
00026 
00027 #define TARGET_ARCH         bfd_arch_bfin
00028 
00029 /*
00030  * Define the target format macro here.   The value for this should be
00031  * "elf32-bfin", not "elf32-little-bfin".  Since the BFD source file 
00032  * elf32-bfin.c defines TARGET_LITTLE_NAME to be "elf32-little-bfin",
00033  * we must use this value, until this is corrected and BFD is rebuilt.  */
00034 #ifdef OBJ_ELF
00035 #define TARGET_FORMAT              "elf32-bfin" 
00036 #endif
00037 
00038 #define LISTING_HEADER "BFIN GAS "
00039 
00040 #define WORKING_DOT_WORD
00041 
00042 extern void bfin_start_line_hook PARAMS ((void));
00043 extern bfd_boolean bfin_start_label PARAMS ((char *));
00044 
00045 #define md_start_line_hook()    bfin_start_line_hook()
00046 #define md_number_to_chars  number_to_chars_littleendian
00047 #define md_convert_frag(b,s,f)     as_fatal ("bfin convert_frag\n");
00048 
00049 /* Allow for [, ], etc.  */
00050 #define LEX_BR 6
00051 
00052 #define TC_EOL_IN_INSN(PTR) (bfin_eol_in_insn(PTR) ? 1 : 0)
00053 extern bfd_boolean bfin_eol_in_insn PARAMS ((char *));
00054 
00055 /* Almost all instructions of Blackfin contain an = character.  */
00056 #define TC_EQUAL_IN_INSN(C, NAME) 1
00057 
00058 #define NOP_OPCODE 0x0000 
00059 
00060 #define LOCAL_LABELS_FB 1
00061 
00062 #define DOUBLESLASH_LINE_COMMENTS
00063 
00064 #define TC_START_LABEL(ch ,ptr) (ch == ':' && bfin_start_label (ptr))
00065 #define tc_fix_adjustable(FIX) bfin_fix_adjustable (FIX)
00066 extern bfd_boolean bfin_fix_adjustable PARAMS ((struct fix *));
00067 
00068 #define TC_FORCE_RELOCATION(FIX) bfin_force_relocation (FIX)
00069 extern int bfin_force_relocation PARAMS ((struct fix *));
00070 
00071 /* Call md_pcrel_from_section(), not md_pcrel_from().  */
00072 #define MD_PCREL_FROM_SECTION(FIX, SEC) md_pcrel_from_section (FIX, SEC)
00073 extern long md_pcrel_from_section PARAMS ((struct fix *, segT));
00074 
00075 /* Values passed to md_apply_fix3 don't include symbol values.  */
00076 #define MD_APPLY_SYM_VALUE(FIX) 0
00077 
00078 /* This target is buggy, and sets fix size too large.  */
00079 #define TC_FX_SIZE_SLACK(FIX) 2
00080 
00081 /* end of tc-bfin.h */