Print this page
6066 dis: support for System/370, System/390, and z/Architecture ELF bins

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libdisasm/common/libdisasm.c
          +++ new/usr/src/lib/libdisasm/common/libdisasm.c
↓ open down ↓ 44 lines elided ↑ open up ↑
  45   45   * include support for disassembly of the native architecture.
  46   46   * The regular shared library should include support for all
  47   47   * architectures.
  48   48   */
  49   49  #if !defined(DIS_STANDALONE) || defined(__i386) || defined(__amd64)
  50   50  extern dis_arch_t dis_arch_i386;
  51   51  #endif
  52   52  #if !defined(DIS_STANDALONE) || defined(__sparc)
  53   53  extern dis_arch_t dis_arch_sparc;
  54   54  #endif
       55 +#if !defined(DIS_STANDALONE) || defined(__s390) || defined(__s390x)
       56 +extern dis_arch_t dis_arch_s390;
       57 +#endif
  55   58  
  56   59  static dis_arch_t *dis_archs[] = {
  57   60  #if !defined(DIS_STANDALONE) || defined(__i386) || defined(__amd64)
  58   61          &dis_arch_i386,
  59   62  #endif
  60   63  #if !defined(DIS_STANDALONE) || defined(__sparc)
  61   64          &dis_arch_sparc,
       65 +#endif
       66 +#if !defined(DIS_STANDALONE) || defined(__s390) || defined(__s390x)
       67 +        &dis_arch_s390,
  62   68  #endif
  63   69          NULL
  64   70  };
  65   71  
  66   72  /*
  67   73   * For the standalone library, we need to link against mdb's malloc/free.
  68   74   * Otherwise, use the standard malloc/free.
  69   75   */
  70   76  #ifdef DIS_STANDALONE
  71   77  void *
↓ open down ↓ 246 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX