xref: /titanic_50/usr/src/uts/common/sys/elf_386.h (revision 672986541be54a7a471bb088e60780c37e371d7e)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License (the "License").
6  * You may not use this file except in compliance with the License.
7  *
8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
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 /*
23  *	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
24  *	  All Rights Reserved
25  *
26  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
27  * Use is subject to license terms.
28  */
29 
30 #ifndef _SYS_ELF_386_H
31 #define	_SYS_ELF_386_H
32 
33 #pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
34 
35 #ifdef	__cplusplus
36 extern "C" {
37 #endif
38 
39 #define	R_386_NONE		0	/* relocation type */
40 #define	R_386_32		1
41 #define	R_386_PC32		2
42 #define	R_386_GOT32		3
43 #define	R_386_PLT32		4
44 #define	R_386_COPY		5
45 #define	R_386_GLOB_DAT		6
46 #define	R_386_JMP_SLOT		7
47 #define	R_386_RELATIVE		8
48 #define	R_386_GOTOFF		9
49 #define	R_386_GOTPC		10
50 #define	R_386_32PLT		11
51 #define	R_386_TLS_GD_PLT	12
52 #define	R_386_TLS_LDM_PLT	13
53 #define	R_386_TLS_TPOFF		14
54 #define	R_386_TLS_IE		15
55 #define	R_386_TLS_GOTIE		16
56 #define	R_386_TLS_LE		17
57 #define	R_386_TLS_GD		18
58 #define	R_386_TLS_LDM		19
59 #define	R_386_16		20
60 #define	R_386_PC16		21
61 #define	R_386_8			22
62 #define	R_386_PC8		23
63 #define	R_386_UNKNOWN24		24
64 #define	R_386_UNKNOWN25		25
65 #define	R_386_UNKNOWN26		26
66 #define	R_386_UNKNOWN27		27
67 #define	R_386_UNKNOWN28		28
68 #define	R_386_UNKNOWN29		29
69 #define	R_386_UNKNOWN30		30
70 #define	R_386_UNKNOWN31		31
71 #define	R_386_TLS_LDO_32	32
72 #define	R_386_UNKNOWN33		33
73 #define	R_386_UNKNOWN34		34
74 #define	R_386_TLS_DTPMOD32	35
75 #define	R_386_TLS_DTPOFF32	36
76 #define	R_386_UNKNOWN37		37
77 #define	R_386_SIZE32		38
78 #define	R_386_NUM		39
79 
80 #define	ELF_386_MAXPGSZ		0x10000	/* maximum page size */
81 
82 #define	SHF_ORDERED	0x40000000
83 #define	SHF_EXCLUDE	0x80000000
84 
85 #define	SHN_BEFORE	0xff00
86 #define	SHN_AFTER	0xff01
87 
88 #ifdef	__cplusplus
89 }
90 #endif
91 
92 #endif	/* _SYS_ELF_386_H */
93