Home | History | Annotate | Download | only in s390
      1 /*
      2  * This file is part of ltrace.
      3  * Copyright (C) 2013 Petr Machata, Red Hat Inc.
      4  * Copyright (C) 2001 IBM Poughkeepsie, IBM Corporation
      5  *
      6  * This program is free software; you can redistribute it and/or
      7  * modify it under the terms of the GNU General Public License as
      8  * published by the Free Software Foundation; either version 2 of the
      9  * License, or (at your option) any later version.
     10  *
     11  * This program is distributed in the hope that it will be useful, but
     12  * WITHOUT ANY WARRANTY; without even the implied warranty of
     13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     14  * General Public License for more details.
     15  *
     16  * You should have received a copy of the GNU General Public License
     17  * along with this program; if not, write to the Free Software
     18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
     19  * 02110-1301 USA
     20  */
     21 
     22 #define BREAKPOINT_VALUE { 0x00, 0x01 }
     23 #define BREAKPOINT_LENGTH 2
     24 #define DECR_PC_AFTER_BREAK 2
     25 #define ARCH_ENDIAN_BIG
     26 #define ARCH_HAVE_FETCH_ARG
     27 #define ARCH_HAVE_SIZEOF
     28 #define ARCH_HAVE_ALIGNOF
     29 #define ARCH_HAVE_ADD_PLT_ENTRY
     30 
     31 #define LT_ELFCLASS	ELFCLASS32
     32 #define LT_ELF_MACHINE	EM_S390
     33 
     34 #ifdef __s390x__
     35 #define LT_ELFCLASS2	ELFCLASS64
     36 #define LT_ELF_MACHINE2	EM_S390
     37 #endif
     38