Print this page
Code review comments from jeffpc


   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 /*
  22  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  23  * Use is subject to license terms.
  24  */
  25 
  26 #ifndef _ELF_ELF_IMPL_H
  27 #define _ELF_ELF_IMPL_H
  28 


  29 #ifdef  __cplusplus
  30 extern "C" {
  31 #endif
  32 
  33 #if     !defined(_LP64) || defined(_ELF32_COMPAT)
  34 
  35 /*
  36  * Definitions for ELF32, native 32-bit or 32-bit compatibility mode.
  37  */
  38 #define ELFCLASS        ELFCLASS32
  39 typedef unsigned int    aux_val_t;
  40 typedef auxv32_t        aux_entry_t;
  41 
  42 #define USR_LIB_RTLD    "/usr/lib/ld.so.1"
  43 
  44 #else   /* !_LP64 || _ELF32_COMPAT */
  45 
  46 /*
  47  * Definitions for native 64-bit ELF
  48  */




   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 /*
  22  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  23  * Use is subject to license terms.
  24  */
  25 
  26 #ifndef _ELF_ELF_IMPL_H
  27 #define _ELF_ELF_IMPL_H
  28 
  29 #pragma ident   "%Z%%M% %I%     %E% SMI"
  30 
  31 #ifdef  __cplusplus
  32 extern "C" {
  33 #endif
  34 
  35 #if     !defined(_LP64) || defined(_ELF32_COMPAT)
  36 
  37 /*
  38  * Definitions for ELF32, native 32-bit or 32-bit compatibility mode.
  39  */
  40 #define ELFCLASS        ELFCLASS32
  41 typedef unsigned int    aux_val_t;
  42 typedef auxv32_t        aux_entry_t;
  43 
  44 #define USR_LIB_RTLD    "/usr/lib/ld.so.1"
  45 
  46 #else   /* !_LP64 || _ELF32_COMPAT */
  47 
  48 /*
  49  * Definitions for native 64-bit ELF
  50  */