Back to index

cell-binutils  2.17cvs20070401
tc-d30v.h
Go to the documentation of this file.
00001 /* tc-310v.h -- Header file for tc-d30v.c.
00002    Copyright 1997, 1998, 2000, 2001, 2002, 2005
00003    Free Software Foundation, Inc.
00004    Written by Martin Hunt, Cygnus Support.
00005 
00006    This file is part of GAS, the GNU Assembler.
00007 
00008    GAS is free software; you can redistribute it and/or modify
00009    it under the terms of the GNU General Public License as published by
00010    the Free Software Foundation; either version 2, or (at your option)
00011    any later version.
00012 
00013    GAS is distributed in the hope that it will be useful,
00014    but WITHOUT ANY WARRANTY; without even the implied warranty of
00015    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016    GNU General Public License for more details.
00017 
00018    You should have received a copy of the GNU General Public License
00019    along with GAS; see the file COPYING.  If not, write to the Free
00020    Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
00021    02110-1301, USA.  */
00022 
00023 #define TC_D30V
00024 
00025 /* The target BFD architecture.  */
00026 #define TARGET_ARCH              bfd_arch_d30v
00027 #define TARGET_FORMAT            "elf32-d30v"
00028 #define TARGET_BYTES_BIG_ENDIAN  1
00029 
00030 #define md_operand(x)
00031 
00032 /* Call md_pcrel_from_section, not md_pcrel_from.  */
00033 struct fix;
00034 extern long md_pcrel_from_section (struct fix *, segT);
00035 #define MD_PCREL_FROM_SECTION(FIX, SEC) md_pcrel_from_section (FIX, SEC)
00036 
00037 /* Permit temporary numeric labels.  */
00038 #define LOCAL_LABELS_FB 1
00039 
00040 /* .-foo gets turned into PC relative relocs.  */
00041 #define DIFF_EXPR_OK
00042 
00043 /* We don't need to handle .word strangely.  */
00044 #define WORKING_DOT_WORD
00045 
00046 #define md_number_to_chars           number_to_chars_bigendian
00047 
00048 int d30v_cleanup (int);
00049 #define md_after_pass_hook()            d30v_cleanup (FALSE)
00050 #define md_cleanup()             d30v_cleanup (FALSE)
00051 #define TC_START_LABEL(ch, ptr)      (ch == ':' && d30v_cleanup (FALSE))
00052 void d30v_start_line (void);
00053 #define md_start_line_hook()            d30v_start_line ()
00054 
00055 void d30v_frob_label (symbolS *);
00056 #define tc_frob_label(sym)       d30v_frob_label (sym)
00057 
00058 void d30v_cons_align (int);
00059 #define md_cons_align(nbytes)           d30v_cons_align (nbytes)
00060 
00061 /* Values passed to md_apply_fix don't include the symbol value.  */
00062 #define MD_APPLY_SYM_VALUE(FIX) 0
00063 
00064 /* No shared lib support, so we don't need to ensure externally
00065    visible symbols can be overridden.  */
00066 #define EXTERN_FORCE_RELOC 0