Back to index

cell-binutils  2.17cvs20070401
tc-s390.h
Go to the documentation of this file.
00001 /* tc-s390.h -- Header file for tc-s390.c.
00002    Copyright 2000, 2001, 2002, 2003, 2004, 2005
00003    Free Software Foundation, Inc.
00004    Written by Martin Schwidefsky (schwidefsky@de.ibm.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 the Free
00020    Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
00021    02110-1301, USA.  */
00022 
00023 #define TC_S390
00024 
00025 struct fix;
00026 
00027 #define TC_FORCE_RELOCATION(FIX) tc_s390_force_relocation(FIX)
00028 extern int tc_s390_force_relocation PARAMS ((struct fix *));
00029 
00030 /* Don't resolve foo@PLT-bar to offset@PLT.  */
00031 #define TC_FORCE_RELOCATION_SUB_SAME(FIX, SEG)   \
00032   (! SEG_NORMAL (SEG) || TC_FORCE_RELOCATION (FIX))
00033 
00034 #define tc_fix_adjustable(X)  tc_s390_fix_adjustable(X)
00035 extern int tc_s390_fix_adjustable PARAMS ((struct fix *));
00036 
00037 /* Values passed to md_apply_fix don't include symbol values.  */
00038 #define MD_APPLY_SYM_VALUE(FIX) 0
00039 
00040 /* The target BFD architecture.  */
00041 #define TARGET_ARCH bfd_arch_s390
00042 extern enum bfd_architecture s390_arch PARAMS ((void));
00043 
00044 /* The target BFD format.  */
00045 #define TARGET_FORMAT s390_target_format()
00046 extern const char *s390_target_format PARAMS ((void));
00047 
00048 /* Set the endianness we are using.  */
00049 #define TARGET_BYTES_BIG_ENDIAN 1
00050 
00051 /* Whether or not the target is big endian */
00052 extern int target_big_endian;
00053 
00054 /* Permit temporary numeric labels.  */
00055 #define LOCAL_LABELS_FB 1
00056 
00057 /* $ is used to refer to the current location.  */
00058 /* #define DOLLAR_DOT */
00059 
00060 /* We need to be able to make relocations involving the difference of
00061    two symbols.  This includes the difference of two symbols when
00062    one of them is undefined (this comes up in PIC code generation).
00063  */
00064 #define UNDEFINED_DIFFERENCE_OK
00065 
00066 /* foo-. gets turned into PC relative relocs */
00067 #define DIFF_EXPR_OK
00068 
00069 /* We don't need to handle .word strangely.  */
00070 #define WORKING_DOT_WORD
00071 
00072 #define md_number_to_chars           number_to_chars_bigendian
00073 
00074 #define NOP_OPCODE 0x07
00075 
00076 /* call md_pcrel_from_section, not md_pcrel_from */
00077 #define MD_PCREL_FROM_SECTION(FIX, SEC) md_pcrel_from_section(FIX, SEC)
00078 extern long md_pcrel_from_section PARAMS ((struct fix *, segT));
00079 
00080 #define md_operand(x)
00081 
00082 extern void s390_md_end PARAMS ((void));
00083 #define md_end() s390_md_end ()
00084 
00085 #define TARGET_USE_CFIPOP 1
00086 
00087 #define tc_cfi_frame_initial_instructions s390_cfi_frame_initial_instructions
00088 extern void s390_cfi_frame_initial_instructions PARAMS ((void));
00089 
00090 #define tc_regname_to_dw2regnum tc_s390_regname_to_dw2regnum
00091 extern int tc_s390_regname_to_dw2regnum PARAMS ((char *regname));
00092 
00093 extern int s390_cie_data_alignment;
00094 
00095 #define DWARF2_LINE_MIN_INSN_LENGTH     1
00096 #define DWARF2_DEFAULT_RETURN_COLUMN    14
00097 #define DWARF2_CIE_DATA_ALIGNMENT       s390_cie_data_alignment