Back to index

cell-binutils  2.17cvs20070401
tc-pj.h
Go to the documentation of this file.
00001 /* This file is tc-pj.h
00002    Copyright 1999, 2000, 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
00003 
00004    Contributed by Steve Chamberlain of Transmeta, sac@pobox.com
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
00020    the Free Software Foundation, 51 Franklin Street - Fifth Floor,
00021    Boston, MA 02110-1301, USA.  */
00022 
00023 /* Contributed by Steve Chamberlain, of Transmeta. sac@pobox.com.  */
00024 
00025 #define WORKING_DOT_WORD
00026 #define IGNORE_NONSTANDARD_ESCAPES
00027 #define TARGET_ARCH bfd_arch_pj
00028 #define TARGET_FORMAT (target_big_endian ? "elf32-pj" : "elf32-pjl")
00029 #define LISTING_HEADER                                                \
00030   (target_big_endian                                                  \
00031    ? "Pico Java GAS Big Endian"                                       \
00032    : "Pico Java GAS Little Endian")
00033 
00034 void pj_cons_fix_new_pj (struct frag *, int, int, expressionS *);
00035 arelent *tc_gen_reloc (asection *, struct fix *);
00036 
00037 #define md_section_align(SEGMENT, SIZE)     (SIZE)
00038 #define md_convert_frag(B, S, F)            (as_fatal (_("convert_frag\n")), 0)
00039 #define md_estimate_size_before_relax(A, B) (as_fatal (_("estimate size\n")),0)
00040 #define md_undefined_symbol(NAME)           0
00041 
00042 /* PC relative operands are relative to the start of the opcode, and
00043    the operand is always one byte into the opcode.  */
00044 
00045 #define md_pcrel_from(FIX)                                     \
00046        ((FIX)->fx_where + (FIX)->fx_frag->fr_address - 1)
00047 
00048 #define TC_CONS_FIX_NEW(FRAG, WHERE, NBYTES, EXP) \
00049        pj_cons_fix_new_pj (FRAG, WHERE, NBYTES, EXP)
00050 
00051 /* No shared lib support, so we don't need to ensure externally
00052    visible symbols can be overridden.  */
00053 #define EXTERN_FORCE_RELOC 0
00054 
00055 /* Values passed to md_apply_fix don't include the symbol value.  */
00056 #define MD_APPLY_SYM_VALUE(FIX) 0
00057 
00058 #define tc_fix_adjustable(FIX)                                 \
00059           (! ((FIX)->fx_r_type == BFD_RELOC_VTABLE_INHERIT            \
00060           || (FIX)->fx_r_type == BFD_RELOC_VTABLE_ENTRY))