Back to index

cell-binutils  2.17cvs20070401
tc-openrisc.h
Go to the documentation of this file.
00001 /* tc-openrisc.h -- Header file for tc-openrisc.c.
00002    Copyright 2001, 2002, 2003, 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_OPENRISC
00022 
00023 #define LISTING_HEADER "OpenRISC GAS "
00024 
00025 /* The target BFD architecture.  */
00026 #define TARGET_ARCH bfd_arch_openrisc
00027 
00028 extern unsigned long openrisc_machine;
00029 #define TARGET_MACH (openrisc_machine)
00030 
00031 #define TARGET_FORMAT              "elf32-openrisc"
00032 #define TARGET_BYTES_BIG_ENDIAN    1
00033 
00034 extern const char openrisc_comment_chars [];
00035 #define tc_comment_chars openrisc_comment_chars
00036 
00037 /* Permit temporary numeric labels.  */
00038 #define LOCAL_LABELS_FB     1
00039 
00040 #define DIFF_EXPR_OK 1      /* .-foo gets turned into PC relative relocs */
00041 
00042 /* We don't need to handle .word strangely.  */
00043 #define WORKING_DOT_WORD
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 gas_cgen_md_apply_fix
00049 
00050 extern bfd_boolean openrisc_fix_adjustable (struct fix *);
00051 #define tc_fix_adjustable(FIX) openrisc_fix_adjustable (FIX)
00052 
00053 #define tc_gen_reloc gas_cgen_tc_gen_reloc
00054 
00055 /* Call md_pcrel_from_section(), not md_pcrel_from().  */
00056 extern long md_pcrel_from_section (struct fix *, segT);
00057 #define MD_PCREL_FROM_SECTION(FIX, SEC) md_pcrel_from_section (FIX, SEC)
00058 
00059 /* For 8 vs 16 vs 32 bit branch selection.  */
00060 extern const struct relax_type md_relax_table[];
00061 #define TC_GENERIC_RELAX_TABLE md_relax_table