xref: /haiku/headers/private/system/arch/sparc/arch_elf.h (revision 46b7da1f4f40f7157d74fc7fb26ff9ec7f2416f2)
1 /*
2  * Copyright 2020, Haiku, inc. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef _KERNEL_ARCH_SPARC_ELF_H
6 #define _KERNEL_ARCH_SPARC_ELF_H
7 
8 #define R_SPARC_NONE		0
9 #define R_SPARC_8			1
10 #define R_SPARC_16			2
11 #define R_SPARC_32			3
12 #define R_SPARC_DISP8		4
13 #define R_SPARC_DISP16		5
14 #define R_SPARC_DISP32		6
15 #define R_SPARC_WDISP30		7
16 #define R_SPARC_WDISP22		8
17 #define R_SPARC_HI22		9
18 #define R_SPARC_22			10
19 #define R_SPARC_13			11
20 #define R_SPARC_LO10		12
21 #define R_SPARC_GOT10		13
22 #define R_SPARC_GOT13		14
23 #define R_SPARC_GOT22		15
24 #define R_SPARC_PC10		16
25 #define R_SPARC_PC22		17
26 #define R_SPARC_WPLT30		18
27 #define R_SPARC_COPY		19
28 #define R_SPARC_GLOB_DAT	20
29 #define R_SPARC_JMP_SLOT	21
30 #define R_SPARC_RELATIVE	22
31 #define R_SPARC_UA32		23
32 #define R_SPARC_PLT32		24
33 #define R_SPARC_HIPLT22		25
34 #define R_SPARC_LOPLT10		26
35 #define R_SPARC_PCPLT32		27
36 #define R_SPARC_PCPLT22		28
37 #define R_SPARC_PCPLT10		29
38 #define R_SPARC_10			30
39 #define R_SPARC_11			31
40 #define R_SPARC_64			32
41 #define R_SPARC_OLO10		33
42 #define R_SPARC_HH22		34
43 #define R_SPARC_HM10		35
44 #define R_SPARC_LM22		36
45 #define R_SPARC_PC_HH22		37
46 #define R_SPARC_PC_HM10		38
47 #define R_SPARC_PC_LM22		39
48 #define R_SPARC_WDISP16		40
49 #define R_SPARC_WDISP19		41
50 #define R_SPARC_7			43
51 #define R_SPARC_5			44
52 #define R_SPARC_6			45
53 #define R_SPARC_DISP64		46
54 #define R_SPARC_PLT64		47
55 #define R_SPARC_HIX22		48
56 #define R_SPARC_LOX10		49
57 #define R_SPARC_H44			50
58 #define R_SPARC_M44			51
59 #define R_SPARC_L44			52
60 #define R_SPARC_REGISTER	53
61 #define R_SPARC_UA64		54
62 #define R_SPARC_UA16		55
63 #define R_SPARC_GOTDATA_HIX22		80
64 #define R_SPARC_GOTDATA_LOX10		81
65 #define R_SPARC_GOTDATA_OP_HIX22	82
66 #define R_SPARC_GOTDATA_OP_LOX10	83
67 #define R_SPARC_GOTDATA_OP			84
68 #define R_SPARC_H34			85
69 #define R_SPARC_SIZE32		86
70 #define R_SPARC_SIZE64		87
71 
72 #define TLS_DTV_OFFSET 0
73 
74 #endif	/* _KERNEL_ARCH_SPARC_ELF_H */
75