xref: /titanic_52/usr/src/uts/common/sys/elf_386.h (revision bdfc6d18da790deeec2e0eb09c625902defe2498)
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, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
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.
13  *
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]
19  *
20  * CDDL HEADER END
21  */
22 /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
23 /*	  All Rights Reserved  	*/
24 
25 
26 /*
27  * Copyright 2001-2002 Sun Microsystems, Inc.  All rights reserved.
28  * Use is subject to license terms.
29  */
30 
31 #ifndef _SYS_ELF_386_H
32 #define	_SYS_ELF_386_H
33 
34 #pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
35 
36 #ifdef	__cplusplus
37 extern "C" {
38 #endif
39 
40 #define	R_386_NONE		0	/* relocation type */
41 #define	R_386_32		1
42 #define	R_386_PC32		2
43 #define	R_386_GOT32		3
44 #define	R_386_PLT32		4
45 #define	R_386_COPY		5
46 #define	R_386_GLOB_DAT		6
47 #define	R_386_JMP_SLOT		7
48 #define	R_386_RELATIVE		8
49 #define	R_386_GOTOFF		9
50 #define	R_386_GOTPC		10
51 #define	R_386_32PLT		11
52 #define	R_386_TLS_GD_PLT	12
53 #define	R_386_TLS_LDM_PLT	13
54 #define	R_386_TLS_TPOFF		14
55 #define	R_386_TLS_IE		15
56 #define	R_386_TLS_GOTIE		16
57 #define	R_386_TLS_LE		17
58 #define	R_386_TLS_GD		18
59 #define	R_386_TLS_LDM		19
60 #define	R_386_16		20
61 #define	R_386_PC16		21
62 #define	R_386_8			22
63 #define	R_386_PC8		23
64 #define	R_386_UNKNOWN24		24
65 #define	R_386_UNKNOWN25		25
66 #define	R_386_UNKNOWN26		26
67 #define	R_386_UNKNOWN27		27
68 #define	R_386_UNKNOWN28		28
69 #define	R_386_UNKNOWN29		29
70 #define	R_386_UNKNOWN30		30
71 #define	R_386_UNKNOWN31		31
72 #define	R_386_TLS_LDO_32	32
73 #define	R_386_UNKNOWN33		33
74 #define	R_386_UNKNOWN34		34
75 #define	R_386_TLS_DTPMOD32	35
76 #define	R_386_TLS_DTPOFF32	36
77 #define	R_386_UNKNOWN37		37
78 #define	R_386_NUM		38
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