199461Sobrien/* tc-s390.h -- Header file for tc-s390.c. 2218822Sdim Copyright 2000, 2001, 2002, 2003, 2004, 2005 3218822Sdim Free Software Foundation, Inc. 499461Sobrien Written by Martin Schwidefsky (schwidefsky@de.ibm.com). 599461Sobrien 699461Sobrien This file is part of GAS, the GNU Assembler. 799461Sobrien 899461Sobrien GAS is free software; you can redistribute it and/or modify 999461Sobrien it under the terms of the GNU General Public License as published by 1099461Sobrien the Free Software Foundation; either version 2, or (at your option) 1199461Sobrien any later version. 1299461Sobrien 1399461Sobrien GAS is distributed in the hope that it will be useful, 1499461Sobrien but WITHOUT ANY WARRANTY; without even the implied warranty of 1599461Sobrien MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1699461Sobrien GNU General Public License for more details. 1799461Sobrien 1899461Sobrien You should have received a copy of the GNU General Public License 1999461Sobrien along with GAS; see the file COPYING. If not, write to the Free 20218822Sdim Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA 21218822Sdim 02110-1301, USA. */ 2299461Sobrien 2399461Sobrien#define TC_S390 2499461Sobrien 2599461Sobrienstruct fix; 2699461Sobrien 27130561Sobrien#define TC_FORCE_RELOCATION(FIX) tc_s390_force_relocation(FIX) 28130561Sobrienextern int tc_s390_force_relocation PARAMS ((struct fix *)); 2999461Sobrien 30130561Sobrien/* Don't resolve foo@PLT-bar to offset@PLT. */ 31130561Sobrien#define TC_FORCE_RELOCATION_SUB_SAME(FIX, SEG) \ 32130561Sobrien (! SEG_NORMAL (SEG) || TC_FORCE_RELOCATION (FIX)) 3399461Sobrien 3499461Sobrien#define tc_fix_adjustable(X) tc_s390_fix_adjustable(X) 3599461Sobrienextern int tc_s390_fix_adjustable PARAMS ((struct fix *)); 3699461Sobrien 37218822Sdim/* Values passed to md_apply_fix don't include symbol values. */ 38130561Sobrien#define MD_APPLY_SYM_VALUE(FIX) 0 3999461Sobrien 4099461Sobrien/* The target BFD architecture. */ 4199461Sobrien#define TARGET_ARCH bfd_arch_s390 4299461Sobrienextern enum bfd_architecture s390_arch PARAMS ((void)); 4399461Sobrien 4499461Sobrien/* The target BFD format. */ 4599461Sobrien#define TARGET_FORMAT s390_target_format() 46107492Sobrienextern const char *s390_target_format PARAMS ((void)); 4799461Sobrien 48107492Sobrien/* Set the endianness we are using. */ 4999461Sobrien#define TARGET_BYTES_BIG_ENDIAN 1 5099461Sobrien 5199461Sobrien/* Whether or not the target is big endian */ 5299461Sobrienextern int target_big_endian; 5399461Sobrien 5499461Sobrien/* Permit temporary numeric labels. */ 5599461Sobrien#define LOCAL_LABELS_FB 1 5699461Sobrien 5799461Sobrien/* $ is used to refer to the current location. */ 5899461Sobrien/* #define DOLLAR_DOT */ 5999461Sobrien 6099461Sobrien/* We need to be able to make relocations involving the difference of 6199461Sobrien two symbols. This includes the difference of two symbols when 6299461Sobrien one of them is undefined (this comes up in PIC code generation). 6399461Sobrien */ 6499461Sobrien#define UNDEFINED_DIFFERENCE_OK 6599461Sobrien 6699461Sobrien/* foo-. gets turned into PC relative relocs */ 6799461Sobrien#define DIFF_EXPR_OK 6899461Sobrien 6999461Sobrien/* We don't need to handle .word strangely. */ 7099461Sobrien#define WORKING_DOT_WORD 7199461Sobrien 7299461Sobrien#define md_number_to_chars number_to_chars_bigendian 7399461Sobrien 74130561Sobrien#define NOP_OPCODE 0x07 7599461Sobrien 7699461Sobrien/* call md_pcrel_from_section, not md_pcrel_from */ 77130561Sobrien#define MD_PCREL_FROM_SECTION(FIX, SEC) md_pcrel_from_section(FIX, SEC) 7899461Sobrienextern long md_pcrel_from_section PARAMS ((struct fix *, segT)); 7999461Sobrien 8099461Sobrien#define md_operand(x) 8199461Sobrien 8299461Sobrienextern void s390_md_end PARAMS ((void)); 8399461Sobrien#define md_end() s390_md_end () 84130561Sobrien 85130561Sobrien#define TARGET_USE_CFIPOP 1 86130561Sobrien 87130561Sobrien#define tc_cfi_frame_initial_instructions s390_cfi_frame_initial_instructions 88130561Sobrienextern void s390_cfi_frame_initial_instructions PARAMS ((void)); 89130561Sobrien 90130561Sobrien#define tc_regname_to_dw2regnum tc_s390_regname_to_dw2regnum 91218822Sdimextern int tc_s390_regname_to_dw2regnum PARAMS ((char *regname)); 92130561Sobrien 93130561Sobrienextern int s390_cie_data_alignment; 94130561Sobrien 95130561Sobrien#define DWARF2_LINE_MIN_INSN_LENGTH 1 96130561Sobrien#define DWARF2_DEFAULT_RETURN_COLUMN 14 97130561Sobrien#define DWARF2_CIE_DATA_ALIGNMENT s390_cie_data_alignment 98