tc-s390.h revision 130561
199461Sobrien/* tc-s390.h -- Header file for tc-s390.c. 2130561Sobrien Copyright 2000, 2001, 2002, 2004 Free Software Foundation, Inc. 399461Sobrien Written by Martin Schwidefsky (schwidefsky@de.ibm.com). 499461Sobrien 599461Sobrien This file is part of GAS, the GNU Assembler. 699461Sobrien 799461Sobrien GAS is free software; you can redistribute it and/or modify 899461Sobrien it under the terms of the GNU General Public License as published by 999461Sobrien the Free Software Foundation; either version 2, or (at your option) 1099461Sobrien any later version. 1199461Sobrien 1299461Sobrien GAS is distributed in the hope that it will be useful, 1399461Sobrien but WITHOUT ANY WARRANTY; without even the implied warranty of 1499461Sobrien MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1599461Sobrien GNU General Public License for more details. 1699461Sobrien 1799461Sobrien You should have received a copy of the GNU General Public License 1899461Sobrien along with GAS; see the file COPYING. If not, write to the Free 1999461Sobrien Software Foundation, 59 Temple Place - Suite 330, Boston, MA 20107492Sobrien 02111-1307, USA. */ 2199461Sobrien 2299461Sobrien#define TC_S390 2399461Sobrien 2499461Sobrien#ifdef ANSI_PROTOTYPES 2599461Sobrienstruct fix; 2699461Sobrien#endif 2799461Sobrien 2899461Sobrien#ifndef BFD_ASSEMBLER 2999461Sobrien #error S390 support requires BFD_ASSEMBLER 3099461Sobrien#endif 3199461Sobrien 32130561Sobrien#define TC_FORCE_RELOCATION(FIX) tc_s390_force_relocation(FIX) 33130561Sobrienextern int tc_s390_force_relocation PARAMS ((struct fix *)); 3499461Sobrien 35130561Sobrien/* Don't resolve foo@PLT-bar to offset@PLT. */ 36130561Sobrien#define TC_FORCE_RELOCATION_SUB_SAME(FIX, SEG) \ 37130561Sobrien (! SEG_NORMAL (SEG) || TC_FORCE_RELOCATION (FIX)) 3899461Sobrien 3999461Sobrien#define tc_fix_adjustable(X) tc_s390_fix_adjustable(X) 4099461Sobrienextern int tc_s390_fix_adjustable PARAMS ((struct fix *)); 4199461Sobrien 42130561Sobrien/* Values passed to md_apply_fix3 don't include symbol values. */ 43130561Sobrien#define MD_APPLY_SYM_VALUE(FIX) 0 4499461Sobrien 4599461Sobrien/* The target BFD architecture. */ 4699461Sobrien#define TARGET_ARCH bfd_arch_s390 4799461Sobrienextern enum bfd_architecture s390_arch PARAMS ((void)); 4899461Sobrien 4999461Sobrien/* The target BFD format. */ 5099461Sobrien#define TARGET_FORMAT s390_target_format() 51107492Sobrienextern const char *s390_target_format PARAMS ((void)); 5299461Sobrien 53107492Sobrien/* Set the endianness we are using. */ 5499461Sobrien#define TARGET_BYTES_BIG_ENDIAN 1 5599461Sobrien 5699461Sobrien/* Whether or not the target is big endian */ 5799461Sobrienextern int target_big_endian; 5899461Sobrien 5999461Sobrien/* Permit temporary numeric labels. */ 6099461Sobrien#define LOCAL_LABELS_FB 1 6199461Sobrien 6299461Sobrien/* $ is used to refer to the current location. */ 6399461Sobrien/* #define DOLLAR_DOT */ 6499461Sobrien 6599461Sobrien/* We need to be able to make relocations involving the difference of 6699461Sobrien two symbols. This includes the difference of two symbols when 6799461Sobrien one of them is undefined (this comes up in PIC code generation). 6899461Sobrien */ 6999461Sobrien#define UNDEFINED_DIFFERENCE_OK 7099461Sobrien 7199461Sobrien/* foo-. gets turned into PC relative relocs */ 7299461Sobrien#define DIFF_EXPR_OK 7399461Sobrien 7499461Sobrien/* We don't need to handle .word strangely. */ 7599461Sobrien#define WORKING_DOT_WORD 7699461Sobrien 7799461Sobrien#define md_number_to_chars number_to_chars_bigendian 7899461Sobrien 79130561Sobrien#define NOP_OPCODE 0x07 8099461Sobrien 8199461Sobrien/* call md_pcrel_from_section, not md_pcrel_from */ 82130561Sobrien#define MD_PCREL_FROM_SECTION(FIX, SEC) md_pcrel_from_section(FIX, SEC) 8399461Sobrienextern long md_pcrel_from_section PARAMS ((struct fix *, segT)); 8499461Sobrien 8599461Sobrien#define md_operand(x) 8699461Sobrien 8799461Sobrienextern void s390_md_end PARAMS ((void)); 8899461Sobrien#define md_end() s390_md_end () 89130561Sobrien 90130561Sobrien#define TARGET_USE_CFIPOP 1 91130561Sobrien 92130561Sobrien#define tc_cfi_frame_initial_instructions s390_cfi_frame_initial_instructions 93130561Sobrienextern void s390_cfi_frame_initial_instructions PARAMS ((void)); 94130561Sobrien 95130561Sobrien#define tc_regname_to_dw2regnum tc_s390_regname_to_dw2regnum 96130561Sobrienextern int tc_s390_regname_to_dw2regnum PARAMS ((const char *regname)); 97130561Sobrien 98130561Sobrienextern int s390_cie_data_alignment; 99130561Sobrien 100130561Sobrien#define DWARF2_LINE_MIN_INSN_LENGTH 1 101130561Sobrien#define DWARF2_DEFAULT_RETURN_COLUMN 14 102130561Sobrien#define DWARF2_CIE_DATA_ALIGNMENT s390_cie_data_alignment 103