4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
22 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
23 /* All Rights Reserved */
27 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
28 * Use is subject to license terms.
31 #ifndef _SYS_ELFTYPES_H
32 #define _SYS_ELFTYPES_H
34 #include <sys/feature_tests.h>
40 #if defined(_LP64) || defined(_I32LPx)
41 typedef unsigned int Elf32_Addr
;
42 typedef unsigned short Elf32_Half
;
43 typedef unsigned int Elf32_Off
;
44 typedef int Elf32_Sword
;
45 typedef unsigned int Elf32_Word
;
47 typedef unsigned long Elf32_Addr
;
48 typedef unsigned short Elf32_Half
;
49 typedef unsigned long Elf32_Off
;
50 typedef long Elf32_Sword
;
51 typedef unsigned long Elf32_Word
;
55 typedef unsigned long Elf64_Addr
;
56 typedef unsigned short Elf64_Half
;
57 typedef unsigned long Elf64_Off
;
58 typedef int Elf64_Sword
;
59 typedef long Elf64_Sxword
;
60 typedef unsigned int Elf64_Word
;
61 typedef unsigned long Elf64_Xword
;
62 typedef unsigned long Elf64_Lword
;
63 typedef unsigned long Elf32_Lword
;
64 #elif defined(_LONGLONG_TYPE)
65 typedef unsigned long long Elf64_Addr
;
66 typedef unsigned short Elf64_Half
;
67 typedef unsigned long long Elf64_Off
;
68 typedef int Elf64_Sword
;
69 typedef long long Elf64_Sxword
;
70 typedef unsigned int Elf64_Word
;
71 typedef unsigned long long Elf64_Xword
;
72 typedef unsigned long long Elf64_Lword
;
73 typedef unsigned long long Elf32_Lword
;
80 #endif /* _SYS_ELFTYPES_H */