Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(147)

Side by Side Diff: fusl/include/elf.h

Issue 1714623002: [fusl] clang-format fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: headers too Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 #ifndef _ELF_H 1 #ifndef _ELF_H
2 #define _ELF_H 2 #define _ELF_H
3 3
4 #ifdef __cplusplus 4 #ifdef __cplusplus
5 extern "C" { 5 extern "C" {
6 #endif 6 #endif
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 typedef uint16_t Elf32_Half; 10 typedef uint16_t Elf32_Half;
11 typedef uint16_t Elf64_Half; 11 typedef uint16_t Elf64_Half;
12 12
13 typedef uint32_t Elf32_Word; 13 typedef uint32_t Elf32_Word;
14 typedef»int32_t Elf32_Sword; 14 typedef int32_t Elf32_Sword;
15 typedef uint32_t Elf64_Word; 15 typedef uint32_t Elf64_Word;
16 typedef»int32_t Elf64_Sword; 16 typedef int32_t Elf64_Sword;
17 17
18 typedef uint64_t Elf32_Xword; 18 typedef uint64_t Elf32_Xword;
19 typedef»int64_t Elf32_Sxword; 19 typedef int64_t Elf32_Sxword;
20 typedef uint64_t Elf64_Xword; 20 typedef uint64_t Elf64_Xword;
21 typedef»int64_t Elf64_Sxword; 21 typedef int64_t Elf64_Sxword;
22 22
23 typedef uint32_t Elf32_Addr; 23 typedef uint32_t Elf32_Addr;
24 typedef uint64_t Elf64_Addr; 24 typedef uint64_t Elf64_Addr;
25 25
26 typedef uint32_t Elf32_Off; 26 typedef uint32_t Elf32_Off;
27 typedef uint64_t Elf64_Off; 27 typedef uint64_t Elf64_Off;
28 28
29 typedef uint16_t Elf32_Section; 29 typedef uint16_t Elf32_Section;
30 typedef uint16_t Elf64_Section; 30 typedef uint16_t Elf64_Section;
31 31
32 typedef Elf32_Half Elf32_Versym; 32 typedef Elf32_Half Elf32_Versym;
33 typedef Elf64_Half Elf64_Versym; 33 typedef Elf64_Half Elf64_Versym;
34 34
35 #define EI_NIDENT (16) 35 #define EI_NIDENT (16)
36 36
37 typedef struct { 37 typedef struct {
38 unsigned char»e_ident[EI_NIDENT]; 38 unsigned char e_ident[EI_NIDENT];
39 Elf32_Half» e_type; 39 Elf32_Half e_type;
40 Elf32_Half» e_machine; 40 Elf32_Half e_machine;
41 Elf32_Word» e_version; 41 Elf32_Word e_version;
42 Elf32_Addr» e_entry; 42 Elf32_Addr e_entry;
43 Elf32_Off» e_phoff; 43 Elf32_Off e_phoff;
44 Elf32_Off» e_shoff; 44 Elf32_Off e_shoff;
45 Elf32_Word» e_flags; 45 Elf32_Word e_flags;
46 Elf32_Half» e_ehsize; 46 Elf32_Half e_ehsize;
47 Elf32_Half» e_phentsize; 47 Elf32_Half e_phentsize;
48 Elf32_Half» e_phnum; 48 Elf32_Half e_phnum;
49 Elf32_Half» e_shentsize; 49 Elf32_Half e_shentsize;
50 Elf32_Half» e_shnum; 50 Elf32_Half e_shnum;
51 Elf32_Half» e_shstrndx; 51 Elf32_Half e_shstrndx;
52 } Elf32_Ehdr; 52 } Elf32_Ehdr;
53 53
54 typedef struct { 54 typedef struct {
55 unsigned char»e_ident[EI_NIDENT]; 55 unsigned char e_ident[EI_NIDENT];
56 Elf64_Half» e_type; 56 Elf64_Half e_type;
57 Elf64_Half» e_machine; 57 Elf64_Half e_machine;
58 Elf64_Word» e_version; 58 Elf64_Word e_version;
59 Elf64_Addr» e_entry; 59 Elf64_Addr e_entry;
60 Elf64_Off» e_phoff; 60 Elf64_Off e_phoff;
61 Elf64_Off» e_shoff; 61 Elf64_Off e_shoff;
62 Elf64_Word» e_flags; 62 Elf64_Word e_flags;
63 Elf64_Half» e_ehsize; 63 Elf64_Half e_ehsize;
64 Elf64_Half» e_phentsize; 64 Elf64_Half e_phentsize;
65 Elf64_Half» e_phnum; 65 Elf64_Half e_phnum;
66 Elf64_Half» e_shentsize; 66 Elf64_Half e_shentsize;
67 Elf64_Half» e_shnum; 67 Elf64_Half e_shnum;
68 Elf64_Half» e_shstrndx; 68 Elf64_Half e_shstrndx;
69 } Elf64_Ehdr; 69 } Elf64_Ehdr;
70 70
71 #define EI_MAG0»» 0 71 #define EI_MAG0 0
72 #define ELFMAG0»» 0x7f 72 #define ELFMAG0 0x7f
73 73
74 #define EI_MAG1»» 1 74 #define EI_MAG1 1
75 #define ELFMAG1»» 'E' 75 #define ELFMAG1 'E'
76 76
77 #define EI_MAG2»» 2 77 #define EI_MAG2 2
78 #define ELFMAG2»» 'L' 78 #define ELFMAG2 'L'
79 79
80 #define EI_MAG3»» 3 80 #define EI_MAG3 3
81 #define ELFMAG3»» 'F' 81 #define ELFMAG3 'F'
82 82
83 83 #define ELFMAG "\177ELF"
84 #define»ELFMAG» » "\177ELF" 84 #define SELFMAG 4
85 #define»SELFMAG»» 4 85
86 86 #define EI_CLASS 4
87 #define EI_CLASS» 4 87 #define ELFCLASSNONE 0
88 #define ELFCLASSNONE» 0 88 #define ELFCLASS32 1
89 #define ELFCLASS32» 1 89 #define ELFCLASS64 2
90 #define ELFCLASS64» 2 90 #define ELFCLASSNUM 3
91 #define ELFCLASSNUM» 3 91
92 92 #define EI_DATA 5
93 #define EI_DATA»» 5 93 #define ELFDATANONE 0
94 #define ELFDATANONE» 0 94 #define ELFDATA2LSB 1
95 #define ELFDATA2LSB» 1 95 #define ELFDATA2MSB 2
96 #define ELFDATA2MSB» 2 96 #define ELFDATANUM 3
97 #define ELFDATANUM» 3 97
98 98 #define EI_VERSION 6
99 #define EI_VERSION» 6 99
100 100 #define EI_OSABI 7
101 101 #define ELFOSABI_NONE 0
102 #define EI_OSABI» 7 102 #define ELFOSABI_SYSV 0
103 #define ELFOSABI_NONE» » 0 103 #define ELFOSABI_HPUX 1
104 #define ELFOSABI_SYSV» » 0 104 #define ELFOSABI_NETBSD 2
105 #define ELFOSABI_HPUX» » 1 105 #define ELFOSABI_LINUX 3
106 #define ELFOSABI_NETBSD»» 2 106 #define ELFOSABI_GNU 3
107 #define ELFOSABI_LINUX» » 3 107 #define ELFOSABI_SOLARIS 6
108 #define ELFOSABI_GNU» » 3 108 #define ELFOSABI_AIX 7
109 #define ELFOSABI_SOLARIS» 6 109 #define ELFOSABI_IRIX 8
110 #define ELFOSABI_AIX» » 7 110 #define ELFOSABI_FREEBSD 9
111 #define ELFOSABI_IRIX» » 8 111 #define ELFOSABI_TRU64 10
112 #define ELFOSABI_FREEBSD» 9 112 #define ELFOSABI_MODESTO 11
113 #define ELFOSABI_TRU64» » 10 113 #define ELFOSABI_OPENBSD 12
114 #define ELFOSABI_MODESTO» 11 114 #define ELFOSABI_ARM 97
115 #define ELFOSABI_OPENBSD» 12 115 #define ELFOSABI_STANDALONE 255
116 #define ELFOSABI_ARM» » 97 116
117 #define ELFOSABI_STANDALONE» 255 117 #define EI_ABIVERSION 8
118 118
119 #define EI_ABIVERSION» 8 119 #define EI_PAD 9
120 120
121 #define EI_PAD» » 9 121 #define ET_NONE 0
122 122 #define ET_REL 1
123 123 #define ET_EXEC 2
124 124 #define ET_DYN 3
125 #define ET_NONE»» 0 125 #define ET_CORE 4
126 #define ET_REL» » 1 126 #define ET_NUM 5
127 #define ET_EXEC»» 2 127 #define ET_LOOS 0xfe00
128 #define ET_DYN» » 3 128 #define ET_HIOS 0xfeff
129 #define ET_CORE»» 4 129 #define ET_LOPROC 0xff00
130 #define»ET_NUM» » 5 130 #define ET_HIPROC 0xffff
131 #define ET_LOOS»» 0xfe00 131
132 #define ET_HIOS»» 0xfeff 132 #define EM_NONE 0
133 #define ET_LOPROC» 0xff00 133 #define EM_M32 1
134 #define ET_HIPROC» 0xffff 134 #define EM_SPARC 2
135 135 #define EM_386 3
136 136 #define EM_68K 4
137 137 #define EM_88K 5
138 #define EM_NONE»» 0 138 #define EM_860 7
139 #define EM_M32» » 1 139 #define EM_MIPS 8
140 #define EM_SPARC» 2 140 #define EM_S370 9
141 #define EM_386» » 3 141 #define EM_MIPS_RS3_LE 10
142 #define EM_68K» » 4 142
143 #define EM_88K» » 5 143 #define EM_PARISC 15
144 #define EM_860» » 7 144 #define EM_VPP500 17
145 #define EM_MIPS»» 8 145 #define EM_SPARC32PLUS 18
146 #define EM_S370»» 9 146 #define EM_960 19
147 #define EM_MIPS_RS3_LE» 10 147 #define EM_PPC 20
148 148 #define EM_PPC64 21
149 #define EM_PARISC» 15 149 #define EM_S390 22
150 #define EM_VPP500» 17 150
151 #define EM_SPARC32PLUS» 18 151 #define EM_V800 36
152 #define EM_960» » 19 152 #define EM_FR20 37
153 #define EM_PPC» » 20 153 #define EM_RH32 38
154 #define EM_PPC64» 21 154 #define EM_RCE 39
155 #define EM_S390»» 22 155 #define EM_ARM 40
156 156 #define EM_FAKE_ALPHA 41
157 #define EM_V800»» 36 157 #define EM_SH 42
158 #define EM_FR20»» 37 158 #define EM_SPARCV9 43
159 #define EM_RH32»» 38 159 #define EM_TRICORE 44
160 #define EM_RCE» » 39 160 #define EM_ARC 45
161 #define EM_ARM» » 40 161 #define EM_H8_300 46
162 #define EM_FAKE_ALPHA» 41 162 #define EM_H8_300H 47
163 #define EM_SH» » 42 163 #define EM_H8S 48
164 #define EM_SPARCV9» 43 164 #define EM_H8_500 49
165 #define EM_TRICORE» 44 165 #define EM_IA_64 50
166 #define EM_ARC» » 45 166 #define EM_MIPS_X 51
167 #define EM_H8_300» 46 167 #define EM_COLDFIRE 52
168 #define EM_H8_300H» 47 168 #define EM_68HC12 53
169 #define EM_H8S» » 48 169 #define EM_MMA 54
170 #define EM_H8_500» 49 170 #define EM_PCP 55
171 #define EM_IA_64» 50 171 #define EM_NCPU 56
172 #define EM_MIPS_X» 51 172 #define EM_NDR1 57
173 #define EM_COLDFIRE» 52 173 #define EM_STARCORE 58
174 #define EM_68HC12» 53 174 #define EM_ME16 59
175 #define EM_MMA» » 54 175 #define EM_ST100 60
176 #define EM_PCP» » 55 176 #define EM_TINYJ 61
177 #define EM_NCPU»» 56 177 #define EM_X86_64 62
178 #define EM_NDR1»» 57 178 #define EM_PDSP 63
179 #define EM_STARCORE» 58 179
180 #define EM_ME16»» 59 180 #define EM_FX66 66
181 #define EM_ST100» 60 181 #define EM_ST9PLUS 67
182 #define EM_TINYJ» 61 182 #define EM_ST7 68
183 #define EM_X86_64» 62 183 #define EM_68HC16 69
184 #define EM_PDSP»» 63 184 #define EM_68HC11 70
185 185 #define EM_68HC08 71
186 #define EM_FX66»» 66 186 #define EM_68HC05 72
187 #define EM_ST9PLUS» 67 187 #define EM_SVX 73
188 #define EM_ST7» » 68 188 #define EM_ST19 74
189 #define EM_68HC16» 69 189 #define EM_VAX 75
190 #define EM_68HC11» 70 190 #define EM_CRIS 76
191 #define EM_68HC08» 71 191 #define EM_JAVELIN 77
192 #define EM_68HC05» 72 192 #define EM_FIREPATH 78
193 #define EM_SVX» » 73 193 #define EM_ZSP 79
194 #define EM_ST19»» 74 194 #define EM_MMIX 80
195 #define EM_VAX» » 75 195 #define EM_HUANY 81
196 #define EM_CRIS»» 76 196 #define EM_PRISM 82
197 #define EM_JAVELIN» 77 197 #define EM_AVR 83
198 #define EM_FIREPATH» 78 198 #define EM_FR30 84
199 #define EM_ZSP» » 79 199 #define EM_D10V 85
200 #define EM_MMIX»» 80 200 #define EM_D30V 86
201 #define EM_HUANY» 81 201 #define EM_V850 87
202 #define EM_PRISM» 82 202 #define EM_M32R 88
203 #define EM_AVR» » 83 203 #define EM_MN10300 89
204 #define EM_FR30»» 84 204 #define EM_MN10200 90
205 #define EM_D10V»» 85 205 #define EM_PJ 91
206 #define EM_D30V»» 86 206 #define EM_OR1K 92
207 #define EM_V850»» 87 207 #define EM_ARC_A5 93
208 #define EM_M32R»» 88 208 #define EM_XTENSA 94
209 #define EM_MN10300» 89 209 #define EM_AARCH64 183
210 #define EM_MN10200» 90 210 #define EM_TILEPRO 188
211 #define EM_PJ» » 91 211 #define EM_MICROBLAZE 189
212 #define EM_OR1K»» 92 212 #define EM_TILEGX 191
213 #define EM_ARC_A5» 93 213 #define EM_NUM 192
214 #define EM_XTENSA» 94 214 #define EM_ALPHA 0x9026
215 #define EM_AARCH64» 183 215
216 #define EM_TILEPRO» 188 216 #define EV_NONE 0
217 #define EM_MICROBLAZE» 189 217 #define EV_CURRENT 1
218 #define EM_TILEGX» 191 218 #define EV_NUM 2
219 #define EM_NUM» » 192 219
220 #define EM_ALPHA» 0x9026 220 typedef struct {
221 221 Elf32_Word sh_name;
222 #define EV_NONE»» 0 222 Elf32_Word sh_type;
223 #define EV_CURRENT» 1 223 Elf32_Word sh_flags;
224 #define EV_NUM» » 2 224 Elf32_Addr sh_addr;
225 225 Elf32_Off sh_offset;
226 typedef struct { 226 Elf32_Word sh_size;
227 Elf32_Word» sh_name; 227 Elf32_Word sh_link;
228 Elf32_Word» sh_type; 228 Elf32_Word sh_info;
229 Elf32_Word» sh_flags; 229 Elf32_Word sh_addralign;
230 Elf32_Addr» sh_addr; 230 Elf32_Word sh_entsize;
231 Elf32_Off» sh_offset;
232 Elf32_Word» sh_size;
233 Elf32_Word» sh_link;
234 Elf32_Word» sh_info;
235 Elf32_Word» sh_addralign;
236 Elf32_Word» sh_entsize;
237 } Elf32_Shdr; 231 } Elf32_Shdr;
238 232
239 typedef struct { 233 typedef struct {
240 Elf64_Word» sh_name; 234 Elf64_Word sh_name;
241 Elf64_Word» sh_type; 235 Elf64_Word sh_type;
242 Elf64_Xword» sh_flags; 236 Elf64_Xword sh_flags;
243 Elf64_Addr» sh_addr; 237 Elf64_Addr sh_addr;
244 Elf64_Off» sh_offset; 238 Elf64_Off sh_offset;
245 Elf64_Xword» sh_size; 239 Elf64_Xword sh_size;
246 Elf64_Word» sh_link; 240 Elf64_Word sh_link;
247 Elf64_Word» sh_info; 241 Elf64_Word sh_info;
248 Elf64_Xword» sh_addralign; 242 Elf64_Xword sh_addralign;
249 Elf64_Xword» sh_entsize; 243 Elf64_Xword sh_entsize;
250 } Elf64_Shdr; 244 } Elf64_Shdr;
251 245
252 246 #define SHN_UNDEF 0
253 247 #define SHN_LORESERVE 0xff00
254 #define SHN_UNDEF» 0 248 #define SHN_LOPROC 0xff00
255 #define SHN_LORESERVE» 0xff00 249 #define SHN_BEFORE 0xff00
256 #define SHN_LOPROC» 0xff00 250
257 #define SHN_BEFORE» 0xff00 251 #define SHN_AFTER 0xff01
258 252
259 #define SHN_AFTER» 0xff01 253 #define SHN_HIPROC 0xff1f
260 254 #define SHN_LOOS 0xff20
261 #define SHN_HIPROC» 0xff1f 255 #define SHN_HIOS 0xff3f
262 #define SHN_LOOS» 0xff20 256 #define SHN_ABS 0xfff1
263 #define SHN_HIOS» 0xff3f 257 #define SHN_COMMON 0xfff2
264 #define SHN_ABS»» 0xfff1 258 #define SHN_XINDEX 0xffff
265 #define SHN_COMMON» 0xfff2 259 #define SHN_HIRESERVE 0xffff
266 #define SHN_XINDEX» 0xffff 260
267 #define SHN_HIRESERVE» 0xffff 261 #define SHT_NULL 0
268 262 #define SHT_PROGBITS 1
269 263 #define SHT_SYMTAB 2
270 264 #define SHT_STRTAB 3
271 #define SHT_NULL» 0 265 #define SHT_RELA 4
272 #define SHT_PROGBITS» 1 266 #define SHT_HASH 5
273 #define SHT_SYMTAB» 2 267 #define SHT_DYNAMIC 6
274 #define SHT_STRTAB» 3 268 #define SHT_NOTE 7
275 #define SHT_RELA» 4 269 #define SHT_NOBITS 8
276 #define SHT_HASH» 5 270 #define SHT_REL 9
277 #define SHT_DYNAMIC» 6 271 #define SHT_SHLIB 10
278 #define SHT_NOTE» 7 272 #define SHT_DYNSYM 11
279 #define SHT_NOBITS» 8 273 #define SHT_INIT_ARRAY 14
280 #define SHT_REL»» 9 274 #define SHT_FINI_ARRAY 15
281 #define SHT_SHLIB» 10
282 #define SHT_DYNSYM» 11
283 #define SHT_INIT_ARRAY» 14
284 #define SHT_FINI_ARRAY» 15
285 #define SHT_PREINIT_ARRAY 16 275 #define SHT_PREINIT_ARRAY 16
286 #define SHT_GROUP» 17 276 #define SHT_GROUP 17
287 #define SHT_SYMTAB_SHNDX 18 277 #define SHT_SYMTAB_SHNDX 18
288 #define»SHT_NUM»» 19 278 #define SHT_NUM 19
289 #define SHT_LOOS» 0x60000000 279 #define SHT_LOOS 0x60000000
290 #define SHT_GNU_ATTRIBUTES 0x6ffffff5 280 #define SHT_GNU_ATTRIBUTES 0x6ffffff5
291 #define SHT_GNU_HASH» 0x6ffffff6 281 #define SHT_GNU_HASH 0x6ffffff6
292 #define SHT_GNU_LIBLIST» 0x6ffffff7 282 #define SHT_GNU_LIBLIST 0x6ffffff7
293 #define SHT_CHECKSUM» 0x6ffffff8 283 #define SHT_CHECKSUM 0x6ffffff8
294 #define SHT_LOSUNW» 0x6ffffffa 284 #define SHT_LOSUNW 0x6ffffffa
295 #define SHT_SUNW_move» 0x6ffffffa 285 #define SHT_SUNW_move 0x6ffffffa
296 #define SHT_SUNW_COMDAT 0x6ffffffb 286 #define SHT_SUNW_COMDAT 0x6ffffffb
297 #define SHT_SUNW_syminfo 0x6ffffffc 287 #define SHT_SUNW_syminfo 0x6ffffffc
298 #define SHT_GNU_verdef» 0x6ffffffd 288 #define SHT_GNU_verdef 0x6ffffffd
299 #define SHT_GNU_verneed» 0x6ffffffe 289 #define SHT_GNU_verneed 0x6ffffffe
300 #define SHT_GNU_versym» 0x6fffffff 290 #define SHT_GNU_versym 0x6fffffff
301 #define SHT_HISUNW» 0x6fffffff 291 #define SHT_HISUNW 0x6fffffff
302 #define SHT_HIOS» 0x6fffffff 292 #define SHT_HIOS 0x6fffffff
303 #define SHT_LOPROC» 0x70000000 293 #define SHT_LOPROC 0x70000000
304 #define SHT_HIPROC» 0x7fffffff 294 #define SHT_HIPROC 0x7fffffff
305 #define SHT_LOUSER» 0x80000000 295 #define SHT_LOUSER 0x80000000
306 #define SHT_HIUSER» 0x8fffffff 296 #define SHT_HIUSER 0x8fffffff
307 297
308 #define SHF_WRITE» (1 << 0) 298 #define SHF_WRITE (1 << 0)
309 #define SHF_ALLOC» (1 << 1) 299 #define SHF_ALLOC (1 << 1)
310 #define SHF_EXECINSTR» (1 << 2) 300 #define SHF_EXECINSTR (1 << 2)
311 #define SHF_MERGE» (1 << 4) 301 #define SHF_MERGE (1 << 4)
312 #define SHF_STRINGS» (1 << 5) 302 #define SHF_STRINGS (1 << 5)
313 #define SHF_INFO_LINK» (1 << 6) 303 #define SHF_INFO_LINK (1 << 6)
314 #define SHF_LINK_ORDER» (1 << 7) 304 #define SHF_LINK_ORDER (1 << 7)
315 #define SHF_OS_NONCONFORMING (1 << 8) 305 #define SHF_OS_NONCONFORMING (1 << 8)
316 306
317 #define SHF_GROUP» (1 << 9) 307 #define SHF_GROUP (1 << 9)
318 #define SHF_TLS»» (1 << 10) 308 #define SHF_TLS (1 << 10)
319 #define SHF_MASKOS» 0x0ff00000 309 #define SHF_MASKOS 0x0ff00000
320 #define SHF_MASKPROC» 0xf0000000 310 #define SHF_MASKPROC 0xf0000000
321 #define SHF_ORDERED» (1 << 30) 311 #define SHF_ORDERED (1 << 30)
322 #define SHF_EXCLUDE» (1U << 31) 312 #define SHF_EXCLUDE (1U << 31)
323 313
324 #define GRP_COMDAT» 0x1 314 #define GRP_COMDAT 0x1
325 315
326 typedef struct { 316 typedef struct {
327 Elf32_Word» st_name; 317 Elf32_Word st_name;
328 Elf32_Addr» st_value; 318 Elf32_Addr st_value;
329 Elf32_Word» st_size; 319 Elf32_Word st_size;
330 unsigned char»st_info; 320 unsigned char st_info;
331 unsigned char»st_other; 321 unsigned char st_other;
332 Elf32_Section»st_shndx; 322 Elf32_Section st_shndx;
333 } Elf32_Sym; 323 } Elf32_Sym;
334 324
335 typedef struct { 325 typedef struct {
336 Elf64_Word» st_name; 326 Elf64_Word st_name;
337 unsigned char»st_info; 327 unsigned char st_info;
338 unsigned char st_other; 328 unsigned char st_other;
339 Elf64_Section»st_shndx; 329 Elf64_Section st_shndx;
340 Elf64_Addr» st_value; 330 Elf64_Addr st_value;
341 Elf64_Xword» st_size; 331 Elf64_Xword st_size;
342 } Elf64_Sym; 332 } Elf64_Sym;
343 333
344 typedef struct { 334 typedef struct {
345 Elf32_Half si_boundto; 335 Elf32_Half si_boundto;
346 Elf32_Half si_flags; 336 Elf32_Half si_flags;
347 } Elf32_Syminfo; 337 } Elf32_Syminfo;
348 338
349 typedef struct { 339 typedef struct {
350 Elf64_Half si_boundto; 340 Elf64_Half si_boundto;
351 Elf64_Half si_flags; 341 Elf64_Half si_flags;
352 } Elf64_Syminfo; 342 } Elf64_Syminfo;
353 343
354 #define SYMINFO_BT_SELF»» 0xffff 344 #define SYMINFO_BT_SELF 0xffff
355 #define SYMINFO_BT_PARENT» 0xfffe 345 #define SYMINFO_BT_PARENT 0xfffe
356 #define SYMINFO_BT_LOWRESERVE» 0xff00 346 #define SYMINFO_BT_LOWRESERVE 0xff00
357 347
358 #define SYMINFO_FLG_DIRECT» 0x0001 348 #define SYMINFO_FLG_DIRECT 0x0001
359 #define SYMINFO_FLG_PASSTHRU» 0x0002 349 #define SYMINFO_FLG_PASSTHRU 0x0002
360 #define SYMINFO_FLG_COPY» 0x0004 350 #define SYMINFO_FLG_COPY 0x0004
361 #define SYMINFO_FLG_LAZYLOAD» 0x0008 351 #define SYMINFO_FLG_LAZYLOAD 0x0008
362 352
363 #define SYMINFO_NONE» » 0 353 #define SYMINFO_NONE 0
364 #define SYMINFO_CURRENT»» 1 354 #define SYMINFO_CURRENT 1
365 #define SYMINFO_NUM» » 2 355 #define SYMINFO_NUM 2
366 356
367 #define ELF32_ST_BIND(val)» » (((unsigned char) (val)) >> 4) 357 #define ELF32_ST_BIND(val) (((unsigned char)(val)) >> 4)
368 #define ELF32_ST_TYPE(val)» » ((val) & 0xf) 358 #define ELF32_ST_TYPE(val) ((val)&0xf)
369 #define ELF32_ST_INFO(bind, type)» (((bind) << 4) + ((type) & 0xf)) 359 #define ELF32_ST_INFO(bind, type) (((bind) << 4) + ((type)&0xf))
370 360
371 #define ELF64_ST_BIND(val)» » ELF32_ST_BIND (val) 361 #define ELF64_ST_BIND(val) ELF32_ST_BIND(val)
372 #define ELF64_ST_TYPE(val)» » ELF32_ST_TYPE (val) 362 #define ELF64_ST_TYPE(val) ELF32_ST_TYPE(val)
373 #define ELF64_ST_INFO(bind, type)» ELF32_ST_INFO ((bind), (type)) 363 #define ELF64_ST_INFO(bind, type) ELF32_ST_INFO((bind), (type))
374 364
375 #define STB_LOCAL» 0 365 #define STB_LOCAL 0
376 #define STB_GLOBAL» 1 366 #define STB_GLOBAL 1
377 #define STB_WEAK» 2 367 #define STB_WEAK 2
378 #define»STB_NUM»» 3 368 #define STB_NUM 3
379 #define STB_LOOS» 10 369 #define STB_LOOS 10
380 #define STB_GNU_UNIQUE» 10 370 #define STB_GNU_UNIQUE 10
381 #define STB_HIOS» 12 371 #define STB_HIOS 12
382 #define STB_LOPROC» 13 372 #define STB_LOPROC 13
383 #define STB_HIPROC» 15 373 #define STB_HIPROC 15
384 374
385 #define STT_NOTYPE» 0 375 #define STT_NOTYPE 0
386 #define STT_OBJECT» 1 376 #define STT_OBJECT 1
387 #define STT_FUNC» 2 377 #define STT_FUNC 2
388 #define STT_SECTION» 3 378 #define STT_SECTION 3
389 #define STT_FILE» 4 379 #define STT_FILE 4
390 #define STT_COMMON» 5 380 #define STT_COMMON 5
391 #define STT_TLS»» 6 381 #define STT_TLS 6
392 #define»STT_NUM»» 7 382 #define STT_NUM 7
393 #define STT_LOOS» 10 383 #define STT_LOOS 10
394 #define STT_GNU_IFUNC» 10 384 #define STT_GNU_IFUNC 10
395 #define STT_HIOS» 12 385 #define STT_HIOS 12
396 #define STT_LOPROC» 13 386 #define STT_LOPROC 13
397 #define STT_HIPROC» 15 387 #define STT_HIPROC 15
398 388
399 #define STN_UNDEF» 0 389 #define STN_UNDEF 0
400 390
401 #define ELF32_ST_VISIBILITY(o)» ((o) & 0x03) 391 #define ELF32_ST_VISIBILITY(o) ((o)&0x03)
402 #define ELF64_ST_VISIBILITY(o)» ELF32_ST_VISIBILITY (o) 392 #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY(o)
403 393
404 #define STV_DEFAULT» 0 394 #define STV_DEFAULT 0
405 #define STV_INTERNAL» 1 395 #define STV_INTERNAL 1
406 #define STV_HIDDEN» 2 396 #define STV_HIDDEN 2
407 #define STV_PROTECTED» 3 397 #define STV_PROTECTED 3
408 398
409 399 typedef struct {
410 400 Elf32_Addr r_offset;
411 401 Elf32_Word r_info;
412 typedef struct
413 {
414 Elf32_Addr» r_offset;
415 Elf32_Word» r_info;
416 } Elf32_Rel; 402 } Elf32_Rel;
417 403
418 typedef struct { 404 typedef struct {
419 Elf64_Addr» r_offset; 405 Elf64_Addr r_offset;
420 Elf64_Xword» r_info; 406 Elf64_Xword r_info;
421 } Elf64_Rel; 407 } Elf64_Rel;
422 408
423 409 typedef struct {
424 410 Elf32_Addr r_offset;
425 typedef struct { 411 Elf32_Word r_info;
426 Elf32_Addr» r_offset; 412 Elf32_Sword r_addend;
427 Elf32_Word» r_info;
428 Elf32_Sword» r_addend;
429 } Elf32_Rela; 413 } Elf32_Rela;
430 414
431 typedef struct { 415 typedef struct {
432 Elf64_Addr» r_offset; 416 Elf64_Addr r_offset;
433 Elf64_Xword» r_info; 417 Elf64_Xword r_info;
434 Elf64_Sxword» r_addend; 418 Elf64_Sxword r_addend;
435 } Elf64_Rela; 419 } Elf64_Rela;
436 420
437 421 #define ELF32_R_SYM(val) ((val) >> 8)
438 422 #define ELF32_R_TYPE(val) ((val)&0xff)
439 #define ELF32_R_SYM(val)» » ((val) >> 8) 423 #define ELF32_R_INFO(sym, type) (((sym) << 8) + ((type)&0xff))
440 #define ELF32_R_TYPE(val)» » ((val) & 0xff) 424
441 #define ELF32_R_INFO(sym, type)»» (((sym) << 8) + ((type) & 0xff)) 425 #define ELF64_R_SYM(i) ((i) >> 32)
442 426 #define ELF64_R_TYPE(i) ((i)&0xffffffff)
443 #define ELF64_R_SYM(i)» » » ((i) >> 32) 427 #define ELF64_R_INFO(sym, type) ((((Elf64_Xword)(sym)) << 32) + (type))
444 #define ELF64_R_TYPE(i)»» » ((i) & 0xffffffff) 428
445 #define ELF64_R_INFO(sym,type)» » ((((Elf64_Xword) (sym)) << 32) + (type)) 429 typedef struct {
446 430 Elf32_Word p_type;
447 431 Elf32_Off p_offset;
448 432 Elf32_Addr p_vaddr;
449 typedef struct { 433 Elf32_Addr p_paddr;
450 Elf32_Word» p_type; 434 Elf32_Word p_filesz;
451 Elf32_Off» p_offset; 435 Elf32_Word p_memsz;
452 Elf32_Addr» p_vaddr; 436 Elf32_Word p_flags;
453 Elf32_Addr» p_paddr; 437 Elf32_Word p_align;
454 Elf32_Word» p_filesz;
455 Elf32_Word» p_memsz;
456 Elf32_Word» p_flags;
457 Elf32_Word» p_align;
458 } Elf32_Phdr; 438 } Elf32_Phdr;
459 439
460 typedef struct { 440 typedef struct {
461 Elf64_Word» p_type; 441 Elf64_Word p_type;
462 Elf64_Word» p_flags; 442 Elf64_Word p_flags;
463 Elf64_Off» p_offset; 443 Elf64_Off p_offset;
464 Elf64_Addr» p_vaddr; 444 Elf64_Addr p_vaddr;
465 Elf64_Addr» p_paddr; 445 Elf64_Addr p_paddr;
466 Elf64_Xword» p_filesz; 446 Elf64_Xword p_filesz;
467 Elf64_Xword» p_memsz; 447 Elf64_Xword p_memsz;
468 Elf64_Xword» p_align; 448 Elf64_Xword p_align;
469 } Elf64_Phdr; 449 } Elf64_Phdr;
470 450
471 451 #define PT_NULL 0
472 452 #define PT_LOAD 1
473 #define»PT_NULL»» 0 453 #define PT_DYNAMIC 2
474 #define PT_LOAD»» 1 454 #define PT_INTERP 3
475 #define PT_DYNAMIC» 2 455 #define PT_NOTE 4
476 #define PT_INTERP» 3 456 #define PT_SHLIB 5
477 #define PT_NOTE»» 4 457 #define PT_PHDR 6
478 #define PT_SHLIB» 5 458 #define PT_TLS 7
479 #define PT_PHDR»» 6 459 #define PT_NUM 8
480 #define PT_TLS» » 7 460 #define PT_LOOS 0x60000000
481 #define»PT_NUM» » 8 461 #define PT_GNU_EH_FRAME 0x6474e550
482 #define PT_LOOS»» 0x60000000 462 #define PT_GNU_STACK 0x6474e551
483 #define PT_GNU_EH_FRAME»0x6474e550 463 #define PT_GNU_RELRO 0x6474e552
484 #define PT_GNU_STACK» 0x6474e551 464 #define PT_LOSUNW 0x6ffffffa
485 #define PT_GNU_RELRO» 0x6474e552 465 #define PT_SUNWBSS 0x6ffffffa
486 #define PT_LOSUNW» 0x6ffffffa 466 #define PT_SUNWSTACK 0x6ffffffb
487 #define PT_SUNWBSS» 0x6ffffffa 467 #define PT_HISUNW 0x6fffffff
488 #define PT_SUNWSTACK» 0x6ffffffb 468 #define PT_HIOS 0x6fffffff
489 #define PT_HISUNW» 0x6fffffff 469 #define PT_LOPROC 0x70000000
490 #define PT_HIOS»» 0x6fffffff 470 #define PT_HIPROC 0x7fffffff
491 #define PT_LOPROC» 0x70000000
492 #define PT_HIPROC» 0x7fffffff
493
494 471
495 #define PN_XNUM 0xffff 472 #define PN_XNUM 0xffff
496 473
497 474 #define PF_X (1 << 0)
498 #define PF_X» » (1 << 0) 475 #define PF_W (1 << 1)
499 #define PF_W» » (1 << 1) 476 #define PF_R (1 << 2)
500 #define PF_R» » (1 << 2) 477 #define PF_MASKOS 0x0ff00000
501 #define PF_MASKOS» 0x0ff00000 478 #define PF_MASKPROC 0xf0000000
502 #define PF_MASKPROC» 0xf0000000 479
503 480 #define NT_PRSTATUS 1
504 481 #define NT_FPREGSET 2
505 482 #define NT_PRPSINFO 3
506 #define NT_PRSTATUS» 1 483 #define NT_PRXREG 4
507 #define NT_FPREGSET» 2 484 #define NT_TASKSTRUCT 4
508 #define NT_PRPSINFO» 3 485 #define NT_PLATFORM 5
509 #define NT_PRXREG» 4 486 #define NT_AUXV 6
510 #define NT_TASKSTRUCT» 4 487 #define NT_GWINDOWS 7
511 #define NT_PLATFORM» 5 488 #define NT_ASRS 8
512 #define NT_AUXV»» 6 489 #define NT_PSTATUS 10
513 #define NT_GWINDOWS» 7 490 #define NT_PSINFO 13
514 #define NT_ASRS»» 8 491 #define NT_PRCRED 14
515 #define NT_PSTATUS» 10 492 #define NT_UTSNAME 15
516 #define NT_PSINFO» 13 493 #define NT_LWPSTATUS 16
517 #define NT_PRCRED» 14 494 #define NT_LWPSINFO 17
518 #define NT_UTSNAME» 15 495 #define NT_PRFPXREG 20
519 #define NT_LWPSTATUS» 16 496 #define NT_SIGINFO 0x53494749
520 #define NT_LWPSINFO» 17 497 #define NT_FILE 0x46494c45
521 #define NT_PRFPXREG» 20 498 #define NT_PRXFPREG 0x46e62b7f
522 #define NT_SIGINFO» 0x53494749 499 #define NT_PPC_VMX 0x100
523 #define NT_FILE»» 0x46494c45 500 #define NT_PPC_SPE 0x101
524 #define NT_PRXFPREG» 0x46e62b7f 501 #define NT_PPC_VSX 0x102
525 #define NT_PPC_VMX» 0x100 502 #define NT_386_TLS 0x200
526 #define NT_PPC_SPE» 0x101 503 #define NT_386_IOPERM 0x201
527 #define NT_PPC_VSX» 0x102 504 #define NT_X86_XSTATE 0x202
528 #define NT_386_TLS» 0x200 505 #define NT_S390_HIGH_GPRS 0x300
529 #define NT_386_IOPERM» 0x201 506 #define NT_S390_TIMER 0x301
530 #define NT_X86_XSTATE» 0x202 507 #define NT_S390_TODCMP 0x302
531 #define NT_S390_HIGH_GPRS» 0x300 508 #define NT_S390_TODPREG 0x303
532 #define NT_S390_TIMER» 0x301 509 #define NT_S390_CTRS 0x304
533 #define NT_S390_TODCMP» 0x302 510 #define NT_S390_PREFIX 0x305
534 #define NT_S390_TODPREG»0x303 511 #define NT_S390_LAST_BREAK 0x306
535 #define NT_S390_CTRS» 0x304 512 #define NT_S390_SYSTEM_CALL 0x307
536 #define NT_S390_PREFIX» 0x305 513 #define NT_S390_TDB 0x308
537 #define NT_S390_LAST_BREAK» 0x306 514 #define NT_ARM_VFP 0x400
538 #define NT_S390_SYSTEM_CALL» 0x307 515 #define NT_ARM_TLS 0x401
539 #define NT_S390_TDB» 0x308 516 #define NT_ARM_HW_BREAK 0x402
540 #define NT_ARM_VFP» 0x400 517 #define NT_ARM_HW_WATCH 0x403
541 #define NT_ARM_TLS» 0x401 518 #define NT_METAG_CBUF 0x500
542 #define NT_ARM_HW_BREAK»0x402 519 #define NT_METAG_RPIPE 0x501
543 #define NT_ARM_HW_WATCH»0x403 520 #define NT_METAG_TLS 0x502
544 #define NT_METAG_CBUF» 0x500 521 #define NT_VERSION 1
545 #define NT_METAG_RPIPE» 0x501
546 #define NT_METAG_TLS» 0x502
547 #define NT_VERSION» 1
548
549
550
551 522
552 typedef struct { 523 typedef struct {
553 Elf32_Sword d_tag; 524 Elf32_Sword d_tag;
554 union { 525 union {
555 Elf32_Word d_val; 526 Elf32_Word d_val;
556 Elf32_Addr d_ptr; 527 Elf32_Addr d_ptr;
557 } d_un; 528 } d_un;
558 } Elf32_Dyn; 529 } Elf32_Dyn;
559 530
560 typedef struct { 531 typedef struct {
561 Elf64_Sxword d_tag; 532 Elf64_Sxword d_tag;
562 union { 533 union {
563 Elf64_Xword d_val; 534 Elf64_Xword d_val;
564 Elf64_Addr d_ptr; 535 Elf64_Addr d_ptr;
565 } d_un; 536 } d_un;
566 } Elf64_Dyn; 537 } Elf64_Dyn;
567 538
568 539 #define DT_NULL 0
569 540 #define DT_NEEDED 1
570 #define DT_NULL»» 0 541 #define DT_PLTRELSZ 2
571 #define DT_NEEDED» 1 542 #define DT_PLTGOT 3
572 #define DT_PLTRELSZ» 2 543 #define DT_HASH 4
573 #define DT_PLTGOT» 3 544 #define DT_STRTAB 5
574 #define DT_HASH»» 4 545 #define DT_SYMTAB 6
575 #define DT_STRTAB» 5 546 #define DT_RELA 7
576 #define DT_SYMTAB» 6 547 #define DT_RELASZ 8
577 #define DT_RELA»» 7 548 #define DT_RELAENT 9
578 #define DT_RELASZ» 8 549 #define DT_STRSZ 10
579 #define DT_RELAENT» 9 550 #define DT_SYMENT 11
580 #define DT_STRSZ» 10 551 #define DT_INIT 12
581 #define DT_SYMENT» 11 552 #define DT_FINI 13
582 #define DT_INIT»» 12 553 #define DT_SONAME 14
583 #define DT_FINI»» 13 554 #define DT_RPATH 15
584 #define DT_SONAME» 14 555 #define DT_SYMBOLIC 16
585 #define DT_RPATH» 15 556 #define DT_REL 17
586 #define DT_SYMBOLIC» 16 557 #define DT_RELSZ 18
587 #define DT_REL» » 17 558 #define DT_RELENT 19
588 #define DT_RELSZ» 18 559 #define DT_PLTREL 20
589 #define DT_RELENT» 19 560 #define DT_DEBUG 21
590 #define DT_PLTREL» 20 561 #define DT_TEXTREL 22
591 #define DT_DEBUG» 21 562 #define DT_JMPREL 23
592 #define DT_TEXTREL» 22 563 #define DT_BIND_NOW 24
593 #define DT_JMPREL» 23 564 #define DT_INIT_ARRAY 25
594 #define»DT_BIND_NOW» 24 565 #define DT_FINI_ARRAY 26
595 #define»DT_INIT_ARRAY» 25 566 #define DT_INIT_ARRAYSZ 27
596 #define»DT_FINI_ARRAY» 26 567 #define DT_FINI_ARRAYSZ 28
597 #define»DT_INIT_ARRAYSZ»27 568 #define DT_RUNPATH 29
598 #define»DT_FINI_ARRAYSZ»28 569 #define DT_FLAGS 30
599 #define DT_RUNPATH» 29 570 #define DT_ENCODING 32
600 #define DT_FLAGS» 30
601 #define DT_ENCODING» 32
602 #define DT_PREINIT_ARRAY 32 571 #define DT_PREINIT_ARRAY 32
603 #define DT_PREINIT_ARRAYSZ 33 572 #define DT_PREINIT_ARRAYSZ 33
604 #define»DT_NUM» » 34 573 #define DT_NUM 34
605 #define DT_LOOS»» 0x6000000d 574 #define DT_LOOS 0x6000000d
606 #define DT_HIOS»» 0x6ffff000 575 #define DT_HIOS 0x6ffff000
607 #define DT_LOPROC» 0x70000000 576 #define DT_LOPROC 0x70000000
608 #define DT_HIPROC» 0x7fffffff 577 #define DT_HIPROC 0x7fffffff
609 #define»DT_PROCNUM» DT_MIPS_NUM 578 #define DT_PROCNUM DT_MIPS_NUM
610 579
611 #define DT_VALRNGLO» 0x6ffffd00 580 #define DT_VALRNGLO 0x6ffffd00
612 #define DT_GNU_PRELINKED 0x6ffffdf5 581 #define DT_GNU_PRELINKED 0x6ffffdf5
613 #define DT_GNU_CONFLICTSZ 0x6ffffdf6 582 #define DT_GNU_CONFLICTSZ 0x6ffffdf6
614 #define DT_GNU_LIBLISTSZ 0x6ffffdf7 583 #define DT_GNU_LIBLISTSZ 0x6ffffdf7
615 #define DT_CHECKSUM» 0x6ffffdf8 584 #define DT_CHECKSUM 0x6ffffdf8
616 #define DT_PLTPADSZ» 0x6ffffdf9 585 #define DT_PLTPADSZ 0x6ffffdf9
617 #define DT_MOVEENT» 0x6ffffdfa 586 #define DT_MOVEENT 0x6ffffdfa
618 #define DT_MOVESZ» 0x6ffffdfb 587 #define DT_MOVESZ 0x6ffffdfb
619 #define DT_FEATURE_1» 0x6ffffdfc 588 #define DT_FEATURE_1 0x6ffffdfc
620 #define DT_POSFLAG_1» 0x6ffffdfd 589 #define DT_POSFLAG_1 0x6ffffdfd
621 590
622 #define DT_SYMINSZ» 0x6ffffdfe 591 #define DT_SYMINSZ 0x6ffffdfe
623 #define DT_SYMINENT» 0x6ffffdff 592 #define DT_SYMINENT 0x6ffffdff
624 #define DT_VALRNGHI» 0x6ffffdff 593 #define DT_VALRNGHI 0x6ffffdff
625 #define DT_VALTAGIDX(tag)» (DT_VALRNGHI - (tag)) 594 #define DT_VALTAGIDX(tag) (DT_VALRNGHI - (tag))
626 #define DT_VALNUM 12 595 #define DT_VALNUM 12
627 596
628 #define DT_ADDRRNGLO» 0x6ffffe00 597 #define DT_ADDRRNGLO 0x6ffffe00
629 #define DT_GNU_HASH» 0x6ffffef5 598 #define DT_GNU_HASH 0x6ffffef5
630 #define DT_TLSDESC_PLT» 0x6ffffef6 599 #define DT_TLSDESC_PLT 0x6ffffef6
631 #define DT_TLSDESC_GOT» 0x6ffffef7 600 #define DT_TLSDESC_GOT 0x6ffffef7
632 #define DT_GNU_CONFLICT»0x6ffffef8 601 #define DT_GNU_CONFLICT 0x6ffffef8
633 #define DT_GNU_LIBLIST» 0x6ffffef9 602 #define DT_GNU_LIBLIST 0x6ffffef9
634 #define DT_CONFIG» 0x6ffffefa 603 #define DT_CONFIG 0x6ffffefa
635 #define DT_DEPAUDIT» 0x6ffffefb 604 #define DT_DEPAUDIT 0x6ffffefb
636 #define DT_AUDIT» 0x6ffffefc 605 #define DT_AUDIT 0x6ffffefc
637 #define»DT_PLTPAD» 0x6ffffefd 606 #define DT_PLTPAD 0x6ffffefd
638 #define»DT_MOVETAB» 0x6ffffefe 607 #define DT_MOVETAB 0x6ffffefe
639 #define DT_SYMINFO» 0x6ffffeff 608 #define DT_SYMINFO 0x6ffffeff
640 #define DT_ADDRRNGHI» 0x6ffffeff 609 #define DT_ADDRRNGHI 0x6ffffeff
641 #define DT_ADDRTAGIDX(tag)» (DT_ADDRRNGHI - (tag)) 610 #define DT_ADDRTAGIDX(tag) (DT_ADDRRNGHI - (tag))
642 #define DT_ADDRNUM 11 611 #define DT_ADDRNUM 11
643 612
644 613 #define DT_VERSYM 0x6ffffff0
645 614
646 #define DT_VERSYM» 0x6ffffff0 615 #define DT_RELACOUNT 0x6ffffff9
647 616 #define DT_RELCOUNT 0x6ffffffa
648 #define DT_RELACOUNT» 0x6ffffff9 617
649 #define DT_RELCOUNT» 0x6ffffffa 618 #define DT_FLAGS_1 0x6ffffffb
650 619 #define DT_VERDEF 0x6ffffffc
651 620
652 #define DT_FLAGS_1» 0x6ffffffb 621 #define DT_VERDEFNUM 0x6ffffffd
653 #define»DT_VERDEF» 0x6ffffffc 622 #define DT_VERNEED 0x6ffffffe
654 623
655 #define»DT_VERDEFNUM» 0x6ffffffd 624 #define DT_VERNEEDNUM 0x6fffffff
656 #define»DT_VERNEED» 0x6ffffffe 625 #define DT_VERSIONTAGIDX(tag) (DT_VERNEEDNUM - (tag))
657
658 #define»DT_VERNEEDNUM» 0x6fffffff
659 #define DT_VERSIONTAGIDX(tag)» (DT_VERNEEDNUM - (tag))
660 #define DT_VERSIONTAGNUM 16 626 #define DT_VERSIONTAGNUM 16
661 627
662 628 #define DT_AUXILIARY 0x7ffffffd
663 629 #define DT_FILTER 0x7fffffff
664 #define DT_AUXILIARY 0x7ffffffd 630 #define DT_EXTRATAGIDX(tag) ((Elf32_Word) - ((Elf32_Sword)(tag) << 1 >> 1) - 1)
665 #define DT_FILTER 0x7fffffff 631 #define DT_EXTRANUM 3
666 #define DT_EXTRATAGIDX(tag)» ((Elf32_Word)-((Elf32_Sword) (tag) <<1>>1)-1) 632
667 #define DT_EXTRANUM» 3 633 #define DF_ORIGIN 0x00000001
668 634 #define DF_SYMBOLIC 0x00000002
669 635 #define DF_TEXTREL 0x00000004
670 #define DF_ORIGIN» 0x00000001 636 #define DF_BIND_NOW 0x00000008
671 #define DF_SYMBOLIC» 0x00000002 637 #define DF_STATIC_TLS 0x00000010
672 #define DF_TEXTREL» 0x00000004 638
673 #define DF_BIND_NOW» 0x00000008 639 #define DF_1_NOW 0x00000001
674 #define DF_STATIC_TLS» 0x00000010 640 #define DF_1_GLOBAL 0x00000002
675 641 #define DF_1_GROUP 0x00000004
676 642 #define DF_1_NODELETE 0x00000008
677 643 #define DF_1_LOADFLTR 0x00000010
678 #define DF_1_NOW» 0x00000001 644 #define DF_1_INITFIRST 0x00000020
679 #define DF_1_GLOBAL» 0x00000002 645 #define DF_1_NOOPEN 0x00000040
680 #define DF_1_GROUP» 0x00000004 646 #define DF_1_ORIGIN 0x00000080
681 #define DF_1_NODELETE» 0x00000008 647 #define DF_1_DIRECT 0x00000100
682 #define DF_1_LOADFLTR» 0x00000010 648 #define DF_1_TRANS 0x00000200
683 #define DF_1_INITFIRST» 0x00000020 649 #define DF_1_INTERPOSE 0x00000400
684 #define DF_1_NOOPEN» 0x00000040 650 #define DF_1_NODEFLIB 0x00000800
685 #define DF_1_ORIGIN» 0x00000080 651 #define DF_1_NODUMP 0x00001000
686 #define DF_1_DIRECT» 0x00000100 652 #define DF_1_CONFALT 0x00002000
687 #define DF_1_TRANS» 0x00000200 653 #define DF_1_ENDFILTEE 0x00004000
688 #define DF_1_INTERPOSE» 0x00000400 654 #define DF_1_DISPRELDNE 0x00008000
689 #define DF_1_NODEFLIB» 0x00000800 655 #define DF_1_DISPRELPND 0x00010000
690 #define DF_1_NODUMP» 0x00001000 656 #define DF_1_NODIRECT 0x00020000
691 #define DF_1_CONFALT» 0x00002000 657 #define DF_1_IGNMULDEF 0x00040000
692 #define DF_1_ENDFILTEE» 0x00004000 658 #define DF_1_NOKSYMS 0x00080000
693 #define»DF_1_DISPRELDNE»0x00008000 659 #define DF_1_NOHDR 0x00100000
694 #define»DF_1_DISPRELPND»0x00010000 660 #define DF_1_EDITED 0x00200000
695 #define»DF_1_NODIRECT» 0x00020000 661 #define DF_1_NORELOC 0x00400000
696 #define»DF_1_IGNMULDEF» 0x00040000 662 #define DF_1_SYMINTPOSE 0x00800000
697 #define»DF_1_NOKSYMS» 0x00080000 663 #define DF_1_GLOBAUDIT 0x01000000
698 #define»DF_1_NOHDR» 0x00100000 664 #define DF_1_SINGLETON 0x02000000
699 #define»DF_1_EDITED» 0x00200000 665
700 #define»DF_1_NORELOC» 0x00400000 666 #define DTF_1_PARINIT 0x00000001
701 #define»DF_1_SYMINTPOSE»0x00800000 667 #define DTF_1_CONFEXP 0x00000002
702 #define»DF_1_GLOBAUDIT» 0x01000000 668
703 #define»DF_1_SINGLETON» 0x02000000 669 #define DF_P1_LAZYLOAD 0x00000001
704 670 #define DF_P1_GROUPPERM 0x00000002
705 #define DTF_1_PARINIT» 0x00000001 671
706 #define DTF_1_CONFEXP» 0x00000002 672 typedef struct {
707 673 Elf32_Half vd_version;
708 674 Elf32_Half vd_flags;
709 #define DF_P1_LAZYLOAD» 0x00000001 675 Elf32_Half vd_ndx;
710 #define DF_P1_GROUPPERM»0x00000002 676 Elf32_Half vd_cnt;
711 677 Elf32_Word vd_hash;
712 678 Elf32_Word vd_aux;
713 679 Elf32_Word vd_next;
714
715 typedef struct {
716 Elf32_Half» vd_version;
717 Elf32_Half» vd_flags;
718 Elf32_Half» vd_ndx;
719 Elf32_Half» vd_cnt;
720 Elf32_Word» vd_hash;
721 Elf32_Word» vd_aux;
722 Elf32_Word» vd_next;
723 } Elf32_Verdef; 680 } Elf32_Verdef;
724 681
725 typedef struct { 682 typedef struct {
726 Elf64_Half» vd_version; 683 Elf64_Half vd_version;
727 Elf64_Half» vd_flags; 684 Elf64_Half vd_flags;
728 Elf64_Half» vd_ndx; 685 Elf64_Half vd_ndx;
729 Elf64_Half» vd_cnt; 686 Elf64_Half vd_cnt;
730 Elf64_Word» vd_hash; 687 Elf64_Word vd_hash;
731 Elf64_Word» vd_aux; 688 Elf64_Word vd_aux;
732 Elf64_Word» vd_next; 689 Elf64_Word vd_next;
733 } Elf64_Verdef; 690 } Elf64_Verdef;
734 691
735 692 #define VER_DEF_NONE 0
736 693 #define VER_DEF_CURRENT 1
737 #define VER_DEF_NONE» 0 694 #define VER_DEF_NUM 2
738 #define VER_DEF_CURRENT»1 695
739 #define VER_DEF_NUM» 2 696 #define VER_FLG_BASE 0x1
740 697 #define VER_FLG_WEAK 0x2
741 698
742 #define VER_FLG_BASE» 0x1 699 #define VER_NDX_LOCAL 0
743 #define VER_FLG_WEAK» 0x2 700 #define VER_NDX_GLOBAL 1
744 701 #define VER_NDX_LORESERVE 0xff00
745 702 #define VER_NDX_ELIMINATE 0xff01
746 #define»VER_NDX_LOCAL» » 0 703
747 #define»VER_NDX_GLOBAL» » 1 704 typedef struct {
748 #define»VER_NDX_LORESERVE» 0xff00 705 Elf32_Word vda_name;
749 #define»VER_NDX_ELIMINATE» 0xff01 706 Elf32_Word vda_next;
750
751
752
753 typedef struct {
754 Elf32_Word» vda_name;
755 Elf32_Word» vda_next;
756 } Elf32_Verdaux; 707 } Elf32_Verdaux;
757 708
758 typedef struct { 709 typedef struct {
759 Elf64_Word» vda_name; 710 Elf64_Word vda_name;
760 Elf64_Word» vda_next; 711 Elf64_Word vda_next;
761 } Elf64_Verdaux; 712 } Elf64_Verdaux;
762 713
763 714 typedef struct {
764 715 Elf32_Half vn_version;
765 716 Elf32_Half vn_cnt;
766 typedef struct { 717 Elf32_Word vn_file;
767 Elf32_Half» vn_version; 718 Elf32_Word vn_aux;
768 Elf32_Half» vn_cnt; 719 Elf32_Word vn_next;
769 Elf32_Word» vn_file;
770 Elf32_Word» vn_aux;
771 Elf32_Word» vn_next;
772 } Elf32_Verneed; 720 } Elf32_Verneed;
773 721
774 typedef struct { 722 typedef struct {
775 Elf64_Half» vn_version; 723 Elf64_Half vn_version;
776 Elf64_Half» vn_cnt; 724 Elf64_Half vn_cnt;
777 Elf64_Word» vn_file; 725 Elf64_Word vn_file;
778 Elf64_Word» vn_aux; 726 Elf64_Word vn_aux;
779 Elf64_Word» vn_next; 727 Elf64_Word vn_next;
780 } Elf64_Verneed; 728 } Elf64_Verneed;
781 729
782 730 #define VER_NEED_NONE 0
783
784 #define VER_NEED_NONE» 0
785 #define VER_NEED_CURRENT 1 731 #define VER_NEED_CURRENT 1
786 #define VER_NEED_NUM» 2 732 #define VER_NEED_NUM 2
787 733
788 734 typedef struct {
789 735 Elf32_Word vna_hash;
790 typedef struct { 736 Elf32_Half vna_flags;
791 Elf32_Word» vna_hash; 737 Elf32_Half vna_other;
792 Elf32_Half» vna_flags; 738 Elf32_Word vna_name;
793 Elf32_Half» vna_other; 739 Elf32_Word vna_next;
794 Elf32_Word» vna_name;
795 Elf32_Word» vna_next;
796 } Elf32_Vernaux; 740 } Elf32_Vernaux;
797 741
798 typedef struct { 742 typedef struct {
799 Elf64_Word» vna_hash; 743 Elf64_Word vna_hash;
800 Elf64_Half» vna_flags; 744 Elf64_Half vna_flags;
801 Elf64_Half» vna_other; 745 Elf64_Half vna_other;
802 Elf64_Word» vna_name; 746 Elf64_Word vna_name;
803 Elf64_Word» vna_next; 747 Elf64_Word vna_next;
804 } Elf64_Vernaux; 748 } Elf64_Vernaux;
805 749
806 750 #define VER_FLG_WEAK 0x2
807
808 #define VER_FLG_WEAK» 0x2
809
810
811 751
812 typedef struct { 752 typedef struct {
813 uint32_t a_type; 753 uint32_t a_type;
814 union { 754 union {
815 uint32_t a_val; 755 uint32_t a_val;
816 } a_un; 756 } a_un;
817 } Elf32_auxv_t; 757 } Elf32_auxv_t;
818 758
819 typedef struct { 759 typedef struct {
820 uint64_t a_type; 760 uint64_t a_type;
821 union { 761 union {
822 uint64_t a_val; 762 uint64_t a_val;
823 } a_un; 763 } a_un;
824 } Elf64_auxv_t; 764 } Elf64_auxv_t;
825 765
826 766 #define AT_NULL 0
827 767 #define AT_IGNORE 1
828 #define AT_NULL»» 0 768 #define AT_EXECFD 2
829 #define AT_IGNORE» 1 769 #define AT_PHDR 3
830 #define AT_EXECFD» 2 770 #define AT_PHENT 4
831 #define AT_PHDR»» 3 771 #define AT_PHNUM 5
832 #define AT_PHENT» 4 772 #define AT_PAGESZ 6
833 #define AT_PHNUM» 5 773 #define AT_BASE 7
834 #define AT_PAGESZ» 6 774 #define AT_FLAGS 8
835 #define AT_BASE»» 7 775 #define AT_ENTRY 9
836 #define AT_FLAGS» 8 776 #define AT_NOTELF 10
837 #define AT_ENTRY» 9 777 #define AT_UID 11
838 #define AT_NOTELF» 10 778 #define AT_EUID 12
839 #define AT_UID» » 11 779 #define AT_GID 13
840 #define AT_EUID»» 12 780 #define AT_EGID 14
841 #define AT_GID» » 13 781 #define AT_CLKTCK 17
842 #define AT_EGID»» 14 782
843 #define AT_CLKTCK» 17 783 #define AT_PLATFORM 15
844 784 #define AT_HWCAP 16
845 785
846 #define AT_PLATFORM» 15 786 #define AT_FPUCW 18
847 #define AT_HWCAP» 16 787
848 788 #define AT_DCACHEBSIZE 19
849 789 #define AT_ICACHEBSIZE 20
850 790 #define AT_UCACHEBSIZE 21
851 791
852 #define AT_FPUCW» 18 792 #define AT_IGNOREPPC 22
853 793
854 794 #define AT_SECURE 23
855 #define AT_DCACHEBSIZE» 19
856 #define AT_ICACHEBSIZE» 20
857 #define AT_UCACHEBSIZE» 21
858
859
860
861 #define AT_IGNOREPPC» 22
862
863 #define»AT_SECURE» 23
864 795
865 #define AT_BASE_PLATFORM 24 796 #define AT_BASE_PLATFORM 24
866 797
867 #define AT_RANDOM» 25 798 #define AT_RANDOM 25
868 799
869 #define AT_HWCAP2» 26 800 #define AT_HWCAP2 26
870 801
871 #define AT_EXECFN» 31 802 #define AT_EXECFN 31
872 803
873 804 #define AT_SYSINFO 32
874 805 #define AT_SYSINFO_EHDR 33
875 #define AT_SYSINFO» 32 806
876 #define AT_SYSINFO_EHDR»33 807 #define AT_L1I_CACHESHAPE 34
877 808 #define AT_L1D_CACHESHAPE 35
878 809 #define AT_L2_CACHESHAPE 36
879 810 #define AT_L3_CACHESHAPE 37
880 #define AT_L1I_CACHESHAPE» 34
881 #define AT_L1D_CACHESHAPE» 35
882 #define AT_L2_CACHESHAPE» 36
883 #define AT_L3_CACHESHAPE» 37
884
885
886
887 811
888 typedef struct { 812 typedef struct {
889 Elf32_Word n_namesz; 813 Elf32_Word n_namesz;
890 Elf32_Word n_descsz; 814 Elf32_Word n_descsz;
891 Elf32_Word n_type; 815 Elf32_Word n_type;
892 } Elf32_Nhdr; 816 } Elf32_Nhdr;
893 817
894 typedef struct { 818 typedef struct {
895 Elf64_Word n_namesz; 819 Elf64_Word n_namesz;
896 Elf64_Word n_descsz; 820 Elf64_Word n_descsz;
897 Elf64_Word n_type; 821 Elf64_Word n_type;
898 } Elf64_Nhdr; 822 } Elf64_Nhdr;
899 823
824 #define ELF_NOTE_SOLARIS "SUNW Solaris"
900 825
826 #define ELF_NOTE_GNU "GNU"
901 827
828 #define ELF_NOTE_PAGESIZE_HINT 1
902 829
903 #define ELF_NOTE_SOLARIS» "SUNW Solaris" 830 #define NT_GNU_ABI_TAG 1
831 #define ELF_NOTE_ABI NT_GNU_ABI_TAG
904 832
833 #define ELF_NOTE_OS_LINUX 0
834 #define ELF_NOTE_OS_GNU 1
835 #define ELF_NOTE_OS_SOLARIS2 2
836 #define ELF_NOTE_OS_FREEBSD 3
905 837
906 #define ELF_NOTE_GNU» » "GNU" 838 #define NT_GNU_BUILD_ID 3
907 839 #define NT_GNU_GOLD_VERSION 4
908
909
910
911
912 #define ELF_NOTE_PAGESIZE_HINT» 1
913
914
915 #define NT_GNU_ABI_TAG» 1
916 #define ELF_NOTE_ABI» NT_GNU_ABI_TAG
917
918
919
920 #define ELF_NOTE_OS_LINUX» 0
921 #define ELF_NOTE_OS_GNU»» 1
922 #define ELF_NOTE_OS_SOLARIS2» 2
923 #define ELF_NOTE_OS_FREEBSD» 3
924
925 #define NT_GNU_BUILD_ID»3
926 #define NT_GNU_GOLD_VERSION» 4
927
928
929 840
930 typedef struct { 841 typedef struct {
931 Elf32_Xword m_value; 842 Elf32_Xword m_value;
932 Elf32_Word m_info; 843 Elf32_Word m_info;
933 Elf32_Word m_poffset; 844 Elf32_Word m_poffset;
934 Elf32_Half m_repeat; 845 Elf32_Half m_repeat;
935 Elf32_Half m_stride; 846 Elf32_Half m_stride;
936 } Elf32_Move; 847 } Elf32_Move;
937 848
938 typedef struct { 849 typedef struct {
939 Elf64_Xword m_value; 850 Elf64_Xword m_value;
940 Elf64_Xword m_info; 851 Elf64_Xword m_info;
941 Elf64_Xword m_poffset; 852 Elf64_Xword m_poffset;
942 Elf64_Half m_repeat; 853 Elf64_Half m_repeat;
943 Elf64_Half m_stride; 854 Elf64_Half m_stride;
944 } Elf64_Move; 855 } Elf64_Move;
945 856
946 857 #define ELF32_M_SYM(info) ((info) >> 8)
947 #define ELF32_M_SYM(info)» ((info) >> 8) 858 #define ELF32_M_SIZE(info) ((unsigned char)(info))
948 #define ELF32_M_SIZE(info)» ((unsigned char) (info)) 859 #define ELF32_M_INFO(sym, size) (((sym) << 8) + (unsigned char)(size))
949 #define ELF32_M_INFO(sym, size)»(((sym) << 8) + (unsigned char) (size)) 860
950 861 #define ELF64_M_SYM(info) ELF32_M_SYM(info)
951 #define ELF64_M_SYM(info)» ELF32_M_SYM (info) 862 #define ELF64_M_SIZE(info) ELF32_M_SIZE(info)
952 #define ELF64_M_SIZE(info)» ELF32_M_SIZE (info) 863 #define ELF64_M_INFO(sym, size) ELF32_M_INFO(sym, size)
953 #define ELF64_M_INFO(sym, size)»ELF32_M_INFO (sym, size) 864
954 865 #define EF_CPU32 0x00810000
955 #define EF_CPU32» 0x00810000 866
956 867 #define R_68K_NONE 0
957 #define R_68K_NONE» 0 868 #define R_68K_32 1
958 #define R_68K_32» 1 869 #define R_68K_16 2
959 #define R_68K_16» 2 870 #define R_68K_8 3
960 #define R_68K_8»» 3 871 #define R_68K_PC32 4
961 #define R_68K_PC32» 4 872 #define R_68K_PC16 5
962 #define R_68K_PC16» 5 873 #define R_68K_PC8 6
963 #define R_68K_PC8» 6 874 #define R_68K_GOT32 7
964 #define R_68K_GOT32» 7 875 #define R_68K_GOT16 8
965 #define R_68K_GOT16» 8 876 #define R_68K_GOT8 9
966 #define R_68K_GOT8» 9 877 #define R_68K_GOT32O 10
967 #define R_68K_GOT32O» 10 878 #define R_68K_GOT16O 11
968 #define R_68K_GOT16O» 11 879 #define R_68K_GOT8O 12
969 #define R_68K_GOT8O» 12 880 #define R_68K_PLT32 13
970 #define R_68K_PLT32» 13 881 #define R_68K_PLT16 14
971 #define R_68K_PLT16» 14 882 #define R_68K_PLT8 15
972 #define R_68K_PLT8» 15 883 #define R_68K_PLT32O 16
973 #define R_68K_PLT32O» 16 884 #define R_68K_PLT16O 17
974 #define R_68K_PLT16O» 17 885 #define R_68K_PLT8O 18
975 #define R_68K_PLT8O» 18 886 #define R_68K_COPY 19
976 #define R_68K_COPY» 19 887 #define R_68K_GLOB_DAT 20
977 #define R_68K_GLOB_DAT» 20 888 #define R_68K_JMP_SLOT 21
978 #define R_68K_JMP_SLOT» 21 889 #define R_68K_RELATIVE 22
979 #define R_68K_RELATIVE» 22 890 #define R_68K_NUM 23
980 #define R_68K_NUM» 23 891
981 892 #define R_386_NONE 0
982 #define R_386_NONE» 0 893 #define R_386_32 1
983 #define R_386_32» 1 894 #define R_386_PC32 2
984 #define R_386_PC32» 2 895 #define R_386_GOT32 3
985 #define R_386_GOT32» 3 896 #define R_386_PLT32 4
986 #define R_386_PLT32» 4 897 #define R_386_COPY 5
987 #define R_386_COPY» 5 898 #define R_386_GLOB_DAT 6
988 #define R_386_GLOB_DAT» 6 899 #define R_386_JMP_SLOT 7
989 #define R_386_JMP_SLOT» 7 900 #define R_386_RELATIVE 8
990 #define R_386_RELATIVE» 8 901 #define R_386_GOTOFF 9
991 #define R_386_GOTOFF» 9 902 #define R_386_GOTPC 10
992 #define R_386_GOTPC» 10 903 #define R_386_32PLT 11
993 #define R_386_32PLT» 11 904 #define R_386_TLS_TPOFF 14
994 #define R_386_TLS_TPOFF» 14 905 #define R_386_TLS_IE 15
995 #define R_386_TLS_IE» 15 906 #define R_386_TLS_GOTIE 16
996 #define R_386_TLS_GOTIE» 16 907 #define R_386_TLS_LE 17
997 #define R_386_TLS_LE» 17 908 #define R_386_TLS_GD 18
998 #define R_386_TLS_GD» 18 909 #define R_386_TLS_LDM 19
999 #define R_386_TLS_LDM» 19 910 #define R_386_16 20
1000 #define R_386_16» 20 911 #define R_386_PC16 21
1001 #define R_386_PC16» 21 912 #define R_386_8 22
1002 #define R_386_8»» 22 913 #define R_386_PC8 23
1003 #define R_386_PC8» 23 914 #define R_386_TLS_GD_32 24
1004 #define R_386_TLS_GD_32» 24 915 #define R_386_TLS_GD_PUSH 25
1005 #define R_386_TLS_GD_PUSH 25 916 #define R_386_TLS_GD_CALL 26
1006 #define R_386_TLS_GD_CALL 26 917 #define R_386_TLS_GD_POP 27
1007 #define R_386_TLS_GD_POP 27 918 #define R_386_TLS_LDM_32 28
1008 #define R_386_TLS_LDM_32 28
1009 #define R_386_TLS_LDM_PUSH 29 919 #define R_386_TLS_LDM_PUSH 29
1010 #define R_386_TLS_LDM_CALL 30 920 #define R_386_TLS_LDM_CALL 30
1011 #define R_386_TLS_LDM_POP 31 921 #define R_386_TLS_LDM_POP 31
1012 #define R_386_TLS_LDO_32 32 922 #define R_386_TLS_LDO_32 32
1013 #define R_386_TLS_IE_32» 33 923 #define R_386_TLS_IE_32 33
1014 #define R_386_TLS_LE_32» 34 924 #define R_386_TLS_LE_32 34
1015 #define R_386_TLS_DTPMOD32 35 925 #define R_386_TLS_DTPMOD32 35
1016 #define R_386_TLS_DTPOFF32 36 926 #define R_386_TLS_DTPOFF32 36
1017 #define R_386_TLS_TPOFF32 37 927 #define R_386_TLS_TPOFF32 37
1018 #define R_386_SIZE32 38 928 #define R_386_SIZE32 38
1019 #define R_386_TLS_GOTDESC 39 929 #define R_386_TLS_GOTDESC 39
1020 #define R_386_TLS_DESC_CALL 40 930 #define R_386_TLS_DESC_CALL 40
1021 #define R_386_TLS_DESC 41 931 #define R_386_TLS_DESC 41
1022 #define R_386_IRELATIVE» 42 932 #define R_386_IRELATIVE 42
1023 #define R_386_NUM» 43 933 #define R_386_NUM 43
1024 934
1025 935 #define STT_SPARC_REGISTER 13
1026 936
1027 937 #define EF_SPARCV9_MM 3
1028 938 #define EF_SPARCV9_TSO 0
1029 #define STT_SPARC_REGISTER» 13 939 #define EF_SPARCV9_PSO 1
1030 940 #define EF_SPARCV9_RMO 2
1031 941 #define EF_SPARC_LEDATA 0x800000
1032 942 #define EF_SPARC_EXT_MASK 0xFFFF00
1033 #define EF_SPARCV9_MM» » 3 943 #define EF_SPARC_32PLUS 0x000100
1034 #define EF_SPARCV9_TSO» » 0 944 #define EF_SPARC_SUN_US1 0x000200
1035 #define EF_SPARCV9_PSO» » 1 945 #define EF_SPARC_HAL_R1 0x000400
1036 #define EF_SPARCV9_RMO» » 2 946 #define EF_SPARC_SUN_US3 0x000800
1037 #define EF_SPARC_LEDATA»» 0x800000 947
1038 #define EF_SPARC_EXT_MASK» 0xFFFF00 948 #define R_SPARC_NONE 0
1039 #define EF_SPARC_32PLUS»» 0x000100 949 #define R_SPARC_8 1
1040 #define EF_SPARC_SUN_US1» 0x000200 950 #define R_SPARC_16 2
1041 #define EF_SPARC_HAL_R1»» 0x000400 951 #define R_SPARC_32 3
1042 #define EF_SPARC_SUN_US3» 0x000800 952 #define R_SPARC_DISP8 4
1043 953 #define R_SPARC_DISP16 5
1044 954 #define R_SPARC_DISP32 6
1045 955 #define R_SPARC_WDISP30 7
1046 #define R_SPARC_NONE» » 0 956 #define R_SPARC_WDISP22 8
1047 #define R_SPARC_8» » 1 957 #define R_SPARC_HI22 9
1048 #define R_SPARC_16» » 2 958 #define R_SPARC_22 10
1049 #define R_SPARC_32» » 3 959 #define R_SPARC_13 11
1050 #define R_SPARC_DISP8» » 4 960 #define R_SPARC_LO10 12
1051 #define R_SPARC_DISP16» » 5 961 #define R_SPARC_GOT10 13
1052 #define R_SPARC_DISP32» » 6 962 #define R_SPARC_GOT13 14
1053 #define R_SPARC_WDISP30»» 7 963 #define R_SPARC_GOT22 15
1054 #define R_SPARC_WDISP22»» 8 964 #define R_SPARC_PC10 16
1055 #define R_SPARC_HI22» » 9 965 #define R_SPARC_PC22 17
1056 #define R_SPARC_22» » 10 966 #define R_SPARC_WPLT30 18
1057 #define R_SPARC_13» » 11 967 #define R_SPARC_COPY 19
1058 #define R_SPARC_LO10» » 12 968 #define R_SPARC_GLOB_DAT 20
1059 #define R_SPARC_GOT10» » 13 969 #define R_SPARC_JMP_SLOT 21
1060 #define R_SPARC_GOT13» » 14 970 #define R_SPARC_RELATIVE 22
1061 #define R_SPARC_GOT22» » 15 971 #define R_SPARC_UA32 23
1062 #define R_SPARC_PC10» » 16 972
1063 #define R_SPARC_PC22» » 17 973 #define R_SPARC_PLT32 24
1064 #define R_SPARC_WPLT30» » 18 974 #define R_SPARC_HIPLT22 25
1065 #define R_SPARC_COPY» » 19 975 #define R_SPARC_LOPLT10 26
1066 #define R_SPARC_GLOB_DAT» 20 976 #define R_SPARC_PCPLT32 27
1067 #define R_SPARC_JMP_SLOT» 21 977 #define R_SPARC_PCPLT22 28
1068 #define R_SPARC_RELATIVE» 22 978 #define R_SPARC_PCPLT10 29
1069 #define R_SPARC_UA32» » 23 979 #define R_SPARC_10 30
1070 980 #define R_SPARC_11 31
1071 981 #define R_SPARC_64 32
1072 982 #define R_SPARC_OLO10 33
1073 #define R_SPARC_PLT32» » 24 983 #define R_SPARC_HH22 34
1074 #define R_SPARC_HIPLT22»» 25 984 #define R_SPARC_HM10 35
1075 #define R_SPARC_LOPLT10»» 26 985 #define R_SPARC_LM22 36
1076 #define R_SPARC_PCPLT32»» 27 986 #define R_SPARC_PC_HH22 37
1077 #define R_SPARC_PCPLT22»» 28 987 #define R_SPARC_PC_HM10 38
1078 #define R_SPARC_PCPLT10»» 29 988 #define R_SPARC_PC_LM22 39
1079 #define R_SPARC_10» » 30 989 #define R_SPARC_WDISP16 40
1080 #define R_SPARC_11» » 31 990 #define R_SPARC_WDISP19 41
1081 #define R_SPARC_64» » 32 991 #define R_SPARC_GLOB_JMP 42
1082 #define R_SPARC_OLO10» » 33 992 #define R_SPARC_7 43
1083 #define R_SPARC_HH22» » 34 993 #define R_SPARC_5 44
1084 #define R_SPARC_HM10» » 35 994 #define R_SPARC_6 45
1085 #define R_SPARC_LM22» » 36 995 #define R_SPARC_DISP64 46
1086 #define R_SPARC_PC_HH22»» 37 996 #define R_SPARC_PLT64 47
1087 #define R_SPARC_PC_HM10»» 38 997 #define R_SPARC_HIX22 48
1088 #define R_SPARC_PC_LM22»» 39 998 #define R_SPARC_LOX10 49
1089 #define R_SPARC_WDISP16»» 40 999 #define R_SPARC_H44 50
1090 #define R_SPARC_WDISP19»» 41 1000 #define R_SPARC_M44 51
1091 #define R_SPARC_GLOB_JMP» 42 1001 #define R_SPARC_L44 52
1092 #define R_SPARC_7» » 43 1002 #define R_SPARC_REGISTER 53
1093 #define R_SPARC_5» » 44 1003 #define R_SPARC_UA64 54
1094 #define R_SPARC_6» » 45 1004 #define R_SPARC_UA16 55
1095 #define R_SPARC_DISP64» » 46 1005 #define R_SPARC_TLS_GD_HI22 56
1096 #define R_SPARC_PLT64» » 47 1006 #define R_SPARC_TLS_GD_LO10 57
1097 #define R_SPARC_HIX22» » 48 1007 #define R_SPARC_TLS_GD_ADD 58
1098 #define R_SPARC_LOX10» » 49 1008 #define R_SPARC_TLS_GD_CALL 59
1099 #define R_SPARC_H44» » 50 1009 #define R_SPARC_TLS_LDM_HI22 60
1100 #define R_SPARC_M44» » 51 1010 #define R_SPARC_TLS_LDM_LO10 61
1101 #define R_SPARC_L44» » 52 1011 #define R_SPARC_TLS_LDM_ADD 62
1102 #define R_SPARC_REGISTER» 53 1012 #define R_SPARC_TLS_LDM_CALL 63
1103 #define R_SPARC_UA64» » 54 1013 #define R_SPARC_TLS_LDO_HIX22 64
1104 #define R_SPARC_UA16» » 55 1014 #define R_SPARC_TLS_LDO_LOX10 65
1105 #define R_SPARC_TLS_GD_HI22» 56 1015 #define R_SPARC_TLS_LDO_ADD 66
1106 #define R_SPARC_TLS_GD_LO10» 57 1016 #define R_SPARC_TLS_IE_HI22 67
1107 #define R_SPARC_TLS_GD_ADD» 58 1017 #define R_SPARC_TLS_IE_LO10 68
1108 #define R_SPARC_TLS_GD_CALL» 59 1018 #define R_SPARC_TLS_IE_LD 69
1109 #define R_SPARC_TLS_LDM_HI22» 60 1019 #define R_SPARC_TLS_IE_LDX 70
1110 #define R_SPARC_TLS_LDM_LO10» 61 1020 #define R_SPARC_TLS_IE_ADD 71
1111 #define R_SPARC_TLS_LDM_ADD» 62 1021 #define R_SPARC_TLS_LE_HIX22 72
1112 #define R_SPARC_TLS_LDM_CALL» 63 1022 #define R_SPARC_TLS_LE_LOX10 73
1113 #define R_SPARC_TLS_LDO_HIX22» 64 1023 #define R_SPARC_TLS_DTPMOD32 74
1114 #define R_SPARC_TLS_LDO_LOX10» 65 1024 #define R_SPARC_TLS_DTPMOD64 75
1115 #define R_SPARC_TLS_LDO_ADD» 66 1025 #define R_SPARC_TLS_DTPOFF32 76
1116 #define R_SPARC_TLS_IE_HI22» 67 1026 #define R_SPARC_TLS_DTPOFF64 77
1117 #define R_SPARC_TLS_IE_LO10» 68 1027 #define R_SPARC_TLS_TPOFF32 78
1118 #define R_SPARC_TLS_IE_LD» 69 1028 #define R_SPARC_TLS_TPOFF64 79
1119 #define R_SPARC_TLS_IE_LDX» 70 1029 #define R_SPARC_GOTDATA_HIX22 80
1120 #define R_SPARC_TLS_IE_ADD» 71 1030 #define R_SPARC_GOTDATA_LOX10 81
1121 #define R_SPARC_TLS_LE_HIX22» 72 1031 #define R_SPARC_GOTDATA_OP_HIX22 82
1122 #define R_SPARC_TLS_LE_LOX10» 73 1032 #define R_SPARC_GOTDATA_OP_LOX10 83
1123 #define R_SPARC_TLS_DTPMOD32» 74 1033 #define R_SPARC_GOTDATA_OP 84
1124 #define R_SPARC_TLS_DTPMOD64» 75 1034 #define R_SPARC_H34 85
1125 #define R_SPARC_TLS_DTPOFF32» 76 1035 #define R_SPARC_SIZE32 86
1126 #define R_SPARC_TLS_DTPOFF64» 77 1036 #define R_SPARC_SIZE64 87
1127 #define R_SPARC_TLS_TPOFF32» 78 1037 #define R_SPARC_GNU_VTINHERIT 250
1128 #define R_SPARC_TLS_TPOFF64» 79 1038 #define R_SPARC_GNU_VTENTRY 251
1129 #define R_SPARC_GOTDATA_HIX22» 80 1039 #define R_SPARC_REV32 252
1130 #define R_SPARC_GOTDATA_LOX10» 81 1040
1131 #define R_SPARC_GOTDATA_OP_HIX22» 82 1041 #define R_SPARC_NUM 253
1132 #define R_SPARC_GOTDATA_OP_LOX10» 83
1133 #define R_SPARC_GOTDATA_OP» 84
1134 #define R_SPARC_H34» » 85
1135 #define R_SPARC_SIZE32» » 86
1136 #define R_SPARC_SIZE64» » 87
1137 #define R_SPARC_GNU_VTINHERIT» 250
1138 #define R_SPARC_GNU_VTENTRY» 251
1139 #define R_SPARC_REV32» » 252
1140
1141 #define R_SPARC_NUM» » 253
1142
1143
1144 1042
1145 #define DT_SPARC_REGISTER 0x70000001 1043 #define DT_SPARC_REGISTER 0x70000001
1146 #define DT_SPARC_NUM» 2 1044 #define DT_SPARC_NUM 2
1147 1045
1148 1046 #define EF_MIPS_NOREORDER 1
1149 #define EF_MIPS_NOREORDER 1 1047 #define EF_MIPS_PIC 2
1150 #define EF_MIPS_PIC» 2 1048 #define EF_MIPS_CPIC 4
1151 #define EF_MIPS_CPIC» 4 1049 #define EF_MIPS_XGOT 8
1152 #define EF_MIPS_XGOT» 8
1153 #define EF_MIPS_64BIT_WHIRL 16 1050 #define EF_MIPS_64BIT_WHIRL 16
1154 #define EF_MIPS_ABI2» 32 1051 #define EF_MIPS_ABI2 32
1155 #define EF_MIPS_ABI_ON32 64 1052 #define EF_MIPS_ABI_ON32 64
1156 #define EF_MIPS_NAN2008 1024 1053 #define EF_MIPS_NAN2008 1024
1157 #define EF_MIPS_ARCH» 0xf0000000 1054 #define EF_MIPS_ARCH 0xf0000000
1158 1055
1159 1056 #define EF_MIPS_ARCH_1 0x00000000
1160 1057 #define EF_MIPS_ARCH_2 0x10000000
1161 #define EF_MIPS_ARCH_1» 0x00000000 1058 #define EF_MIPS_ARCH_3 0x20000000
1162 #define EF_MIPS_ARCH_2» 0x10000000 1059 #define EF_MIPS_ARCH_4 0x30000000
1163 #define EF_MIPS_ARCH_3» 0x20000000 1060 #define EF_MIPS_ARCH_5 0x40000000
1164 #define EF_MIPS_ARCH_4» 0x30000000 1061 #define EF_MIPS_ARCH_32 0x50000000
1165 #define EF_MIPS_ARCH_5» 0x40000000 1062 #define EF_MIPS_ARCH_64 0x60000000
1166 #define EF_MIPS_ARCH_32 0x50000000 1063 #define EF_MIPS_ARCH_32R2 0x70000000
1167 #define EF_MIPS_ARCH_64 0x60000000 1064 #define EF_MIPS_ARCH_64R2 0x80000000
1168 #define EF_MIPS_ARCH_32R2 0x70000000 1065
1169 #define EF_MIPS_ARCH_64R2 0x80000000 1066 #define E_MIPS_ARCH_1 0x00000000
1170 1067 #define E_MIPS_ARCH_2 0x10000000
1171 1068 #define E_MIPS_ARCH_3 0x20000000
1172 #define E_MIPS_ARCH_1» 0x00000000 1069 #define E_MIPS_ARCH_4 0x30000000
1173 #define E_MIPS_ARCH_2» 0x10000000 1070 #define E_MIPS_ARCH_5 0x40000000
1174 #define E_MIPS_ARCH_3» 0x20000000 1071 #define E_MIPS_ARCH_32 0x50000000
1175 #define E_MIPS_ARCH_4» 0x30000000 1072 #define E_MIPS_ARCH_64 0x60000000
1176 #define E_MIPS_ARCH_5» 0x40000000 1073
1177 #define E_MIPS_ARCH_32» 0x50000000 1074 #define SHN_MIPS_ACOMMON 0xff00
1178 #define E_MIPS_ARCH_64» 0x60000000 1075 #define SHN_MIPS_TEXT 0xff01
1179 1076 #define SHN_MIPS_DATA 0xff02
1180 1077 #define SHN_MIPS_SCOMMON 0xff03
1181
1182 #define SHN_MIPS_ACOMMON 0xff00
1183 #define SHN_MIPS_TEXT» 0xff01
1184 #define SHN_MIPS_DATA» 0xff02
1185 #define SHN_MIPS_SCOMMON 0xff03
1186 #define SHN_MIPS_SUNDEFINED 0xff04 1078 #define SHN_MIPS_SUNDEFINED 0xff04
1187 1079
1188 1080 #define SHT_MIPS_LIBLIST 0x70000000
1189 1081 #define SHT_MIPS_MSYM 0x70000001
1190 #define SHT_MIPS_LIBLIST 0x70000000 1082 #define SHT_MIPS_CONFLICT 0x70000002
1191 #define SHT_MIPS_MSYM» 0x70000001 1083 #define SHT_MIPS_GPTAB 0x70000003
1192 #define SHT_MIPS_CONFLICT 0x70000002 1084 #define SHT_MIPS_UCODE 0x70000004
1193 #define SHT_MIPS_GPTAB» 0x70000003 1085 #define SHT_MIPS_DEBUG 0x70000005
1194 #define SHT_MIPS_UCODE» 0x70000004 1086 #define SHT_MIPS_REGINFO 0x70000006
1195 #define SHT_MIPS_DEBUG» 0x70000005 1087 #define SHT_MIPS_PACKAGE 0x70000007
1196 #define SHT_MIPS_REGINFO 0x70000006 1088 #define SHT_MIPS_PACKSYM 0x70000008
1197 #define SHT_MIPS_PACKAGE 0x70000007 1089 #define SHT_MIPS_RELD 0x70000009
1198 #define SHT_MIPS_PACKSYM 0x70000008 1090 #define SHT_MIPS_IFACE 0x7000000b
1199 #define SHT_MIPS_RELD» 0x70000009 1091 #define SHT_MIPS_CONTENT 0x7000000c
1200 #define SHT_MIPS_IFACE 0x7000000b 1092 #define SHT_MIPS_OPTIONS 0x7000000d
1201 #define SHT_MIPS_CONTENT 0x7000000c 1093 #define SHT_MIPS_SHDR 0x70000010
1202 #define SHT_MIPS_OPTIONS 0x7000000d 1094 #define SHT_MIPS_FDESC 0x70000011
1203 #define SHT_MIPS_SHDR» 0x70000010 1095 #define SHT_MIPS_EXTSYM 0x70000012
1204 #define SHT_MIPS_FDESC» 0x70000011 1096 #define SHT_MIPS_DENSE 0x70000013
1205 #define SHT_MIPS_EXTSYM» 0x70000012 1097 #define SHT_MIPS_PDESC 0x70000014
1206 #define SHT_MIPS_DENSE» 0x70000013 1098 #define SHT_MIPS_LOCSYM 0x70000015
1207 #define SHT_MIPS_PDESC» 0x70000014 1099 #define SHT_MIPS_AUXSYM 0x70000016
1208 #define SHT_MIPS_LOCSYM» 0x70000015 1100 #define SHT_MIPS_OPTSYM 0x70000017
1209 #define SHT_MIPS_AUXSYM» 0x70000016 1101 #define SHT_MIPS_LOCSTR 0x70000018
1210 #define SHT_MIPS_OPTSYM» 0x70000017 1102 #define SHT_MIPS_LINE 0x70000019
1211 #define SHT_MIPS_LOCSTR» 0x70000018 1103 #define SHT_MIPS_RFDESC 0x7000001a
1212 #define SHT_MIPS_LINE» 0x70000019 1104 #define SHT_MIPS_DELTASYM 0x7000001b
1213 #define SHT_MIPS_RFDESC» 0x7000001a 1105 #define SHT_MIPS_DELTAINST 0x7000001c
1214 #define SHT_MIPS_DELTASYM 0x7000001b 1106 #define SHT_MIPS_DELTACLASS 0x7000001d
1215 #define SHT_MIPS_DELTAINST 0x7000001c 1107 #define SHT_MIPS_DWARF 0x7000001e
1216 #define SHT_MIPS_DELTACLASS 0x7000001d 1108 #define SHT_MIPS_DELTADECL 0x7000001f
1217 #define SHT_MIPS_DWARF 0x7000001e 1109 #define SHT_MIPS_SYMBOL_LIB 0x70000020
1218 #define SHT_MIPS_DELTADECL 0x7000001f 1110 #define SHT_MIPS_EVENTS 0x70000021
1219 #define SHT_MIPS_SYMBOL_LIB 0x70000020 1111 #define SHT_MIPS_TRANSLATE 0x70000022
1220 #define SHT_MIPS_EVENTS» 0x70000021 1112 #define SHT_MIPS_PIXIE 0x70000023
1221 #define SHT_MIPS_TRANSLATE 0x70000022 1113 #define SHT_MIPS_XLATE 0x70000024
1222 #define SHT_MIPS_PIXIE» 0x70000023 1114 #define SHT_MIPS_XLATE_DEBUG 0x70000025
1223 #define SHT_MIPS_XLATE» 0x70000024 1115 #define SHT_MIPS_WHIRL 0x70000026
1224 #define SHT_MIPS_XLATE_DEBUG 0x70000025 1116 #define SHT_MIPS_EH_REGION 0x70000027
1225 #define SHT_MIPS_WHIRL» 0x70000026 1117 #define SHT_MIPS_XLATE_OLD 0x70000028
1226 #define SHT_MIPS_EH_REGION 0x70000027
1227 #define SHT_MIPS_XLATE_OLD 0x70000028
1228 #define SHT_MIPS_PDR_EXCEPTION 0x70000029 1118 #define SHT_MIPS_PDR_EXCEPTION 0x70000029
1229 1119
1230 1120 #define SHF_MIPS_GPREL 0x10000000
1231 1121 #define SHF_MIPS_MERGE 0x20000000
1232 #define SHF_MIPS_GPREL» 0x10000000 1122 #define SHF_MIPS_ADDR 0x40000000
1233 #define SHF_MIPS_MERGE» 0x20000000
1234 #define SHF_MIPS_ADDR» 0x40000000
1235 #define SHF_MIPS_STRINGS 0x80000000 1123 #define SHF_MIPS_STRINGS 0x80000000
1236 #define SHF_MIPS_NOSTRIP 0x08000000 1124 #define SHF_MIPS_NOSTRIP 0x08000000
1237 #define SHF_MIPS_LOCAL» 0x04000000 1125 #define SHF_MIPS_LOCAL 0x04000000
1238 #define SHF_MIPS_NAMES» 0x02000000 1126 #define SHF_MIPS_NAMES 0x02000000
1239 #define SHF_MIPS_NODUPE» 0x01000000 1127 #define SHF_MIPS_NODUPE 0x01000000
1240 1128
1241 1129 #define STO_MIPS_DEFAULT 0x0
1242 1130 #define STO_MIPS_INTERNAL 0x1
1243 1131 #define STO_MIPS_HIDDEN 0x2
1244 1132 #define STO_MIPS_PROTECTED 0x3
1245 #define STO_MIPS_DEFAULT» » 0x0 1133 #define STO_MIPS_PLT 0x8
1246 #define STO_MIPS_INTERNAL» » 0x1 1134 #define STO_MIPS_SC_ALIGN_UNUSED 0xff
1247 #define STO_MIPS_HIDDEN»» » 0x2 1135
1248 #define STO_MIPS_PROTECTED» » 0x3 1136 #define STB_MIPS_SPLIT_COMMON 13
1249 #define STO_MIPS_PLT» » » 0x8
1250 #define STO_MIPS_SC_ALIGN_UNUSED» 0xff
1251
1252
1253 #define STB_MIPS_SPLIT_COMMON» » 13
1254
1255
1256 1137
1257 typedef union { 1138 typedef union {
1258 struct { 1139 struct {
1259 Elf32_Word gt_current_g_value; 1140 Elf32_Word gt_current_g_value;
1260 Elf32_Word gt_unused; 1141 Elf32_Word gt_unused;
1261 } gt_header; 1142 } gt_header;
1262 struct { 1143 struct {
1263 Elf32_Word gt_g_value; 1144 Elf32_Word gt_g_value;
1264 Elf32_Word gt_bytes; 1145 Elf32_Word gt_bytes;
1265 } gt_entry; 1146 } gt_entry;
1266 } Elf32_gptab; 1147 } Elf32_gptab;
1267 1148
1268
1269
1270 typedef struct { 1149 typedef struct {
1271 Elf32_Word» ri_gprmask; 1150 Elf32_Word ri_gprmask;
1272 Elf32_Word» ri_cprmask[4]; 1151 Elf32_Word ri_cprmask[4];
1273 Elf32_Sword» ri_gp_value; 1152 Elf32_Sword ri_gp_value;
1274 } Elf32_RegInfo; 1153 } Elf32_RegInfo;
1275 1154
1276
1277
1278 typedef struct { 1155 typedef struct {
1279 unsigned char kind; 1156 unsigned char kind;
1280 1157
1281 unsigned char size; 1158 unsigned char size;
1282 Elf32_Section section; 1159 Elf32_Section section;
1283 1160
1284 Elf32_Word info; 1161 Elf32_Word info;
1285 } Elf_Options; 1162 } Elf_Options;
1286 1163
1164 #define ODK_NULL 0
1165 #define ODK_REGINFO 1
1166 #define ODK_EXCEPTIONS 2
1167 #define ODK_PAD 3
1168 #define ODK_HWPATCH 4
1169 #define ODK_FILL 5
1170 #define ODK_TAGS 6
1171 #define ODK_HWAND 7
1172 #define ODK_HWOR 8
1287 1173
1174 #define OEX_FPU_MIN 0x1f
1175 #define OEX_FPU_MAX 0x1f00
1176 #define OEX_PAGE0 0x10000
1177 #define OEX_SMM 0x20000
1178 #define OEX_FPDBUG 0x40000
1179 #define OEX_PRECISEFP OEX_FPDBUG
1180 #define OEX_DISMISS 0x80000
1288 1181
1289 #define ODK_NULL» 0 1182 #define OEX_FPU_INVAL 0x10
1290 #define ODK_REGINFO» 1 1183 #define OEX_FPU_DIV0 0x08
1291 #define ODK_EXCEPTIONS» 2 1184 #define OEX_FPU_OFLO 0x04
1292 #define ODK_PAD»» 3 1185 #define OEX_FPU_UFLO 0x02
1293 #define ODK_HWPATCH» 4 1186 #define OEX_FPU_INEX 0x01
1294 #define ODK_FILL» 5
1295 #define ODK_TAGS» 6
1296 #define ODK_HWAND» 7
1297 #define ODK_HWOR» 8
1298 1187
1188 #define OHW_R4KEOP 0x1
1189 #define OHW_R8KPFETCH 0x2
1190 #define OHW_R5KEOP 0x4
1191 #define OHW_R5KCVTL 0x8
1299 1192
1300 1193 #define OPAD_PREFIX 0x1
1301 #define OEX_FPU_MIN» 0x1f 1194 #define OPAD_POSTFIX 0x2
1302 #define OEX_FPU_MAX» 0x1f00 1195 #define OPAD_SYMBOL 0x4
1303 #define OEX_PAGE0» 0x10000
1304 #define OEX_SMM»» 0x20000
1305 #define OEX_FPDBUG» 0x40000
1306 #define OEX_PRECISEFP» OEX_FPDBUG
1307 #define OEX_DISMISS» 0x80000
1308
1309 #define OEX_FPU_INVAL» 0x10
1310 #define OEX_FPU_DIV0» 0x08
1311 #define OEX_FPU_OFLO» 0x04
1312 #define OEX_FPU_UFLO» 0x02
1313 #define OEX_FPU_INEX» 0x01
1314
1315
1316
1317 #define OHW_R4KEOP» 0x1
1318 #define OHW_R8KPFETCH» 0x2
1319 #define OHW_R5KEOP» 0x4
1320 #define OHW_R5KCVTL» 0x8
1321
1322 #define OPAD_PREFIX» 0x1
1323 #define OPAD_POSTFIX» 0x2
1324 #define OPAD_SYMBOL» 0x4
1325
1326
1327 1196
1328 typedef struct { 1197 typedef struct {
1329 Elf32_Word hwp_flags1; 1198 Elf32_Word hwp_flags1;
1330 Elf32_Word hwp_flags2; 1199 Elf32_Word hwp_flags2;
1331 } Elf_Options_Hw; 1200 } Elf_Options_Hw;
1332 1201
1202 #define OHWA0_R4KEOP_CHECKED 0x00000001
1203 #define OHWA1_R4KEOP_CLEAN 0x00000002
1333 1204
1205 #define R_MIPS_NONE 0
1206 #define R_MIPS_16 1
1207 #define R_MIPS_32 2
1208 #define R_MIPS_REL32 3
1209 #define R_MIPS_26 4
1210 #define R_MIPS_HI16 5
1211 #define R_MIPS_LO16 6
1212 #define R_MIPS_GPREL16 7
1213 #define R_MIPS_LITERAL 8
1214 #define R_MIPS_GOT16 9
1215 #define R_MIPS_PC16 10
1216 #define R_MIPS_CALL16 11
1217 #define R_MIPS_GPREL32 12
1334 1218
1335 #define OHWA0_R4KEOP_CHECKED» 0x00000001 1219 #define R_MIPS_SHIFT5 16
1336 #define OHWA1_R4KEOP_CLEAN» 0x00000002 1220 #define R_MIPS_SHIFT6 17
1221 #define R_MIPS_64 18
1222 #define R_MIPS_GOT_DISP 19
1223 #define R_MIPS_GOT_PAGE 20
1224 #define R_MIPS_GOT_OFST 21
1225 #define R_MIPS_GOT_HI16 22
1226 #define R_MIPS_GOT_LO16 23
1227 #define R_MIPS_SUB 24
1228 #define R_MIPS_INSERT_A 25
1229 #define R_MIPS_INSERT_B 26
1230 #define R_MIPS_DELETE 27
1231 #define R_MIPS_HIGHER 28
1232 #define R_MIPS_HIGHEST 29
1233 #define R_MIPS_CALL_HI16 30
1234 #define R_MIPS_CALL_LO16 31
1235 #define R_MIPS_SCN_DISP 32
1236 #define R_MIPS_REL16 33
1237 #define R_MIPS_ADD_IMMEDIATE 34
1238 #define R_MIPS_PJUMP 35
1239 #define R_MIPS_RELGOT 36
1240 #define R_MIPS_JALR 37
1241 #define R_MIPS_TLS_DTPMOD32 38
1242 #define R_MIPS_TLS_DTPREL32 39
1243 #define R_MIPS_TLS_DTPMOD64 40
1244 #define R_MIPS_TLS_DTPREL64 41
1245 #define R_MIPS_TLS_GD 42
1246 #define R_MIPS_TLS_LDM 43
1247 #define R_MIPS_TLS_DTPREL_HI16 44
1248 #define R_MIPS_TLS_DTPREL_LO16 45
1249 #define R_MIPS_TLS_GOTTPREL 46
1250 #define R_MIPS_TLS_TPREL32 47
1251 #define R_MIPS_TLS_TPREL64 48
1252 #define R_MIPS_TLS_TPREL_HI16 49
1253 #define R_MIPS_TLS_TPREL_LO16 50
1254 #define R_MIPS_GLOB_DAT 51
1255 #define R_MIPS_COPY 126
1256 #define R_MIPS_JUMP_SLOT 127
1337 1257
1258 #define R_MIPS_NUM 128
1338 1259
1339 1260 #define PT_MIPS_REGINFO 0x70000000
1340 #define R_MIPS_NONE» » 0 1261 #define PT_MIPS_RTPROC 0x70000001
1341 #define R_MIPS_16» » 1
1342 #define R_MIPS_32» » 2
1343 #define R_MIPS_REL32» » 3
1344 #define R_MIPS_26» » 4
1345 #define R_MIPS_HI16» » 5
1346 #define R_MIPS_LO16» » 6
1347 #define R_MIPS_GPREL16» » 7
1348 #define R_MIPS_LITERAL» » 8
1349 #define R_MIPS_GOT16» » 9
1350 #define R_MIPS_PC16» » 10
1351 #define R_MIPS_CALL16» » 11
1352 #define R_MIPS_GPREL32» » 12
1353
1354 #define R_MIPS_SHIFT5» » 16
1355 #define R_MIPS_SHIFT6» » 17
1356 #define R_MIPS_64» » 18
1357 #define R_MIPS_GOT_DISP»» 19
1358 #define R_MIPS_GOT_PAGE»» 20
1359 #define R_MIPS_GOT_OFST»» 21
1360 #define R_MIPS_GOT_HI16»» 22
1361 #define R_MIPS_GOT_LO16»» 23
1362 #define R_MIPS_SUB» » 24
1363 #define R_MIPS_INSERT_A»» 25
1364 #define R_MIPS_INSERT_B»» 26
1365 #define R_MIPS_DELETE» » 27
1366 #define R_MIPS_HIGHER» » 28
1367 #define R_MIPS_HIGHEST» » 29
1368 #define R_MIPS_CALL_HI16» 30
1369 #define R_MIPS_CALL_LO16» 31
1370 #define R_MIPS_SCN_DISP»» 32
1371 #define R_MIPS_REL16» » 33
1372 #define R_MIPS_ADD_IMMEDIATE» 34
1373 #define R_MIPS_PJUMP» » 35
1374 #define R_MIPS_RELGOT» » 36
1375 #define R_MIPS_JALR» » 37
1376 #define R_MIPS_TLS_DTPMOD32» 38
1377 #define R_MIPS_TLS_DTPREL32» 39
1378 #define R_MIPS_TLS_DTPMOD64» 40
1379 #define R_MIPS_TLS_DTPREL64» 41
1380 #define R_MIPS_TLS_GD» » 42
1381 #define R_MIPS_TLS_LDM» » 43
1382 #define R_MIPS_TLS_DTPREL_HI16» 44
1383 #define R_MIPS_TLS_DTPREL_LO16» 45
1384 #define R_MIPS_TLS_GOTTPREL» 46
1385 #define R_MIPS_TLS_TPREL32» 47
1386 #define R_MIPS_TLS_TPREL64» 48
1387 #define R_MIPS_TLS_TPREL_HI16» 49
1388 #define R_MIPS_TLS_TPREL_LO16» 50
1389 #define R_MIPS_GLOB_DAT»» 51
1390 #define R_MIPS_COPY» » 126
1391 #define R_MIPS_JUMP_SLOT 127
1392
1393 #define R_MIPS_NUM» » 128
1394
1395
1396
1397 #define PT_MIPS_REGINFO»0x70000000
1398 #define PT_MIPS_RTPROC 0x70000001
1399 #define PT_MIPS_OPTIONS 0x70000002 1262 #define PT_MIPS_OPTIONS 0x70000002
1400 1263
1264 #define PF_MIPS_LOCAL 0x10000000
1401 1265
1266 #define DT_MIPS_RLD_VERSION 0x70000001
1267 #define DT_MIPS_TIME_STAMP 0x70000002
1268 #define DT_MIPS_ICHECKSUM 0x70000003
1269 #define DT_MIPS_IVERSION 0x70000004
1270 #define DT_MIPS_FLAGS 0x70000005
1271 #define DT_MIPS_BASE_ADDRESS 0x70000006
1272 #define DT_MIPS_MSYM 0x70000007
1273 #define DT_MIPS_CONFLICT 0x70000008
1274 #define DT_MIPS_LIBLIST 0x70000009
1275 #define DT_MIPS_LOCAL_GOTNO 0x7000000a
1276 #define DT_MIPS_CONFLICTNO 0x7000000b
1277 #define DT_MIPS_LIBLISTNO 0x70000010
1278 #define DT_MIPS_SYMTABNO 0x70000011
1279 #define DT_MIPS_UNREFEXTNO 0x70000012
1280 #define DT_MIPS_GOTSYM 0x70000013
1281 #define DT_MIPS_HIPAGENO 0x70000014
1282 #define DT_MIPS_RLD_MAP 0x70000016
1283 #define DT_MIPS_DELTA_CLASS 0x70000017
1284 #define DT_MIPS_DELTA_CLASS_NO 0x70000018
1402 1285
1403 #define PF_MIPS_LOCAL» 0x10000000 1286 #define DT_MIPS_DELTA_INSTANCE 0x70000019
1404
1405
1406
1407 #define DT_MIPS_RLD_VERSION 0x70000001
1408 #define DT_MIPS_TIME_STAMP 0x70000002
1409 #define DT_MIPS_ICHECKSUM 0x70000003
1410 #define DT_MIPS_IVERSION 0x70000004
1411 #define DT_MIPS_FLAGS» 0x70000005
1412 #define DT_MIPS_BASE_ADDRESS 0x70000006
1413 #define DT_MIPS_MSYM» 0x70000007
1414 #define DT_MIPS_CONFLICT 0x70000008
1415 #define DT_MIPS_LIBLIST» 0x70000009
1416 #define DT_MIPS_LOCAL_GOTNO 0x7000000a
1417 #define DT_MIPS_CONFLICTNO 0x7000000b
1418 #define DT_MIPS_LIBLISTNO 0x70000010
1419 #define DT_MIPS_SYMTABNO 0x70000011
1420 #define DT_MIPS_UNREFEXTNO 0x70000012
1421 #define DT_MIPS_GOTSYM» 0x70000013
1422 #define DT_MIPS_HIPAGENO 0x70000014
1423 #define DT_MIPS_RLD_MAP» 0x70000016
1424 #define DT_MIPS_DELTA_CLASS 0x70000017
1425 #define DT_MIPS_DELTA_CLASS_NO 0x70000018
1426
1427 #define DT_MIPS_DELTA_INSTANCE 0x70000019
1428 #define DT_MIPS_DELTA_INSTANCE_NO 0x7000001a 1287 #define DT_MIPS_DELTA_INSTANCE_NO 0x7000001a
1429 1288
1430 #define DT_MIPS_DELTA_RELOC 0x7000001b 1289 #define DT_MIPS_DELTA_RELOC 0x7000001b
1431 #define DT_MIPS_DELTA_RELOC_NO 0x7000001c 1290 #define DT_MIPS_DELTA_RELOC_NO 0x7000001c
1432 1291
1433 #define DT_MIPS_DELTA_SYM 0x7000001d 1292 #define DT_MIPS_DELTA_SYM 0x7000001d
1434 1293
1435 #define DT_MIPS_DELTA_SYM_NO 0x7000001e 1294 #define DT_MIPS_DELTA_SYM_NO 0x7000001e
1436 1295
1437 #define DT_MIPS_DELTA_CLASSSYM 0x70000020 1296 #define DT_MIPS_DELTA_CLASSSYM 0x70000020
1438 1297
1439 #define DT_MIPS_DELTA_CLASSSYM_NO 0x70000021 1298 #define DT_MIPS_DELTA_CLASSSYM_NO 0x70000021
1440 1299
1441 #define DT_MIPS_CXX_FLAGS 0x70000022 1300 #define DT_MIPS_CXX_FLAGS 0x70000022
1442 #define DT_MIPS_PIXIE_INIT 0x70000023 1301 #define DT_MIPS_PIXIE_INIT 0x70000023
1443 #define DT_MIPS_SYMBOL_LIB 0x70000024 1302 #define DT_MIPS_SYMBOL_LIB 0x70000024
1444 #define DT_MIPS_LOCALPAGE_GOTIDX 0x70000025 1303 #define DT_MIPS_LOCALPAGE_GOTIDX 0x70000025
1445 #define DT_MIPS_LOCAL_GOTIDX 0x70000026 1304 #define DT_MIPS_LOCAL_GOTIDX 0x70000026
1446 #define DT_MIPS_HIDDEN_GOTIDX 0x70000027 1305 #define DT_MIPS_HIDDEN_GOTIDX 0x70000027
1447 #define DT_MIPS_PROTECTED_GOTIDX 0x70000028 1306 #define DT_MIPS_PROTECTED_GOTIDX 0x70000028
1448 #define DT_MIPS_OPTIONS» 0x70000029 1307 #define DT_MIPS_OPTIONS 0x70000029
1449 #define DT_MIPS_INTERFACE 0x7000002a 1308 #define DT_MIPS_INTERFACE 0x7000002a
1450 #define DT_MIPS_DYNSTR_ALIGN 0x7000002b 1309 #define DT_MIPS_DYNSTR_ALIGN 0x7000002b
1451 #define DT_MIPS_INTERFACE_SIZE 0x7000002c 1310 #define DT_MIPS_INTERFACE_SIZE 0x7000002c
1452 #define DT_MIPS_RLD_TEXT_RESOLVE_ADDR 0x7000002d 1311 #define DT_MIPS_RLD_TEXT_RESOLVE_ADDR 0x7000002d
1453 1312
1454 #define DT_MIPS_PERF_SUFFIX 0x7000002e 1313 #define DT_MIPS_PERF_SUFFIX 0x7000002e
1455 1314
1456 #define DT_MIPS_COMPACT_SIZE 0x7000002f 1315 #define DT_MIPS_COMPACT_SIZE 0x7000002f
1457 #define DT_MIPS_GP_VALUE 0x70000030 1316 #define DT_MIPS_GP_VALUE 0x70000030
1458 #define DT_MIPS_AUX_DYNAMIC 0x70000031 1317 #define DT_MIPS_AUX_DYNAMIC 0x70000031
1459 1318
1460 #define DT_MIPS_PLTGOT» 0x70000032 1319 #define DT_MIPS_PLTGOT 0x70000032
1461 1320
1462 #define DT_MIPS_RWPLT 0x70000034 1321 #define DT_MIPS_RWPLT 0x70000034
1463 #define DT_MIPS_NUM» 0x35 1322 #define DT_MIPS_NUM 0x35
1464 1323
1324 #define RHF_NONE 0
1325 #define RHF_QUICKSTART (1 << 0)
1326 #define RHF_NOTPOT (1 << 1)
1327 #define RHF_NO_LIBRARY_REPLACEMENT (1 << 2)
1328 #define RHF_NO_MOVE (1 << 3)
1329 #define RHF_SGI_ONLY (1 << 4)
1330 #define RHF_GUARANTEE_INIT (1 << 5)
1331 #define RHF_DELTA_C_PLUS_PLUS (1 << 6)
1332 #define RHF_GUARANTEE_START_INIT (1 << 7)
1333 #define RHF_PIXIE (1 << 8)
1334 #define RHF_DEFAULT_DELAY_LOAD (1 << 9)
1335 #define RHF_REQUICKSTART (1 << 10)
1336 #define RHF_REQUICKSTARTED (1 << 11)
1337 #define RHF_CORD (1 << 12)
1338 #define RHF_NO_UNRES_UNDEF (1 << 13)
1339 #define RHF_RLD_ORDER_SAFE (1 << 14)
1465 1340
1466 1341 typedef struct {
1467 #define RHF_NONE» » 0
1468 #define RHF_QUICKSTART» » (1 << 0)
1469 #define RHF_NOTPOT» » (1 << 1)
1470 #define RHF_NO_LIBRARY_REPLACEMENT (1 << 2)
1471 #define RHF_NO_MOVE» » (1 << 3)
1472 #define RHF_SGI_ONLY» » (1 << 4)
1473 #define RHF_GUARANTEE_INIT» (1 << 5)
1474 #define RHF_DELTA_C_PLUS_PLUS» (1 << 6)
1475 #define RHF_GUARANTEE_START_INIT (1 << 7)
1476 #define RHF_PIXIE» » (1 << 8)
1477 #define RHF_DEFAULT_DELAY_LOAD» (1 << 9)
1478 #define RHF_REQUICKSTART» (1 << 10)
1479 #define RHF_REQUICKSTARTED» (1 << 11)
1480 #define RHF_CORD» » (1 << 12)
1481 #define RHF_NO_UNRES_UNDEF» (1 << 13)
1482 #define RHF_RLD_ORDER_SAFE» (1 << 14)
1483
1484
1485
1486 typedef struct
1487 {
1488 Elf32_Word l_name; 1342 Elf32_Word l_name;
1489 Elf32_Word l_time_stamp; 1343 Elf32_Word l_time_stamp;
1490 Elf32_Word l_checksum; 1344 Elf32_Word l_checksum;
1491 Elf32_Word l_version; 1345 Elf32_Word l_version;
1492 Elf32_Word l_flags; 1346 Elf32_Word l_flags;
1493 } Elf32_Lib; 1347 } Elf32_Lib;
1494 1348
1495 typedef struct 1349 typedef struct {
1496 {
1497 Elf64_Word l_name; 1350 Elf64_Word l_name;
1498 Elf64_Word l_time_stamp; 1351 Elf64_Word l_time_stamp;
1499 Elf64_Word l_checksum; 1352 Elf64_Word l_checksum;
1500 Elf64_Word l_version; 1353 Elf64_Word l_version;
1501 Elf64_Word l_flags; 1354 Elf64_Word l_flags;
1502 } Elf64_Lib; 1355 } Elf64_Lib;
1503 1356
1504 1357 #define LL_NONE 0
1505 1358 #define LL_EXACT_MATCH (1 << 0)
1506
1507 #define LL_NONE»» 0
1508 #define LL_EXACT_MATCH» (1 << 0)
1509 #define LL_IGNORE_INT_VER (1 << 1) 1359 #define LL_IGNORE_INT_VER (1 << 1)
1510 #define LL_REQUIRE_MINOR (1 << 2) 1360 #define LL_REQUIRE_MINOR (1 << 2)
1511 #define LL_EXPORTS» (1 << 3) 1361 #define LL_EXPORTS (1 << 3)
1512 #define LL_DELAY_LOAD» (1 << 4) 1362 #define LL_DELAY_LOAD (1 << 4)
1513 #define LL_DELTA» (1 << 5) 1363 #define LL_DELTA (1 << 5)
1514
1515
1516 1364
1517 typedef Elf32_Addr Elf32_Conflict; 1365 typedef Elf32_Addr Elf32_Conflict;
1518 1366
1519 1367 #define EF_PARISC_TRAPNIL 0x00010000
1520 1368 #define EF_PARISC_EXT 0x00020000
1521 1369 #define EF_PARISC_LSB 0x00040000
1522 1370 #define EF_PARISC_WIDE 0x00080000
1523 1371 #define EF_PARISC_NO_KABP 0x00100000
1524 #define EF_PARISC_TRAPNIL 0x00010000 1372
1525 #define EF_PARISC_EXT 0x00020000 1373 #define EF_PARISC_LAZYSWAP 0x00400000
1526 #define EF_PARISC_LSB 0x00040000 1374 #define EF_PARISC_ARCH 0x0000ffff
1527 #define EF_PARISC_WIDE 0x00080000 1375
1528 #define EF_PARISC_NO_KABP 0x00100000 1376 #define EFA_PARISC_1_0 0x020b
1529 1377 #define EFA_PARISC_1_1 0x0210
1530 #define EF_PARISC_LAZYSWAP 0x00400000 1378 #define EFA_PARISC_2_0 0x0214
1531 #define EF_PARISC_ARCH 0x0000ffff 1379
1532 1380 #define SHN_PARISC_ANSI_COMMON 0xff00
1533 1381
1534 1382 #define SHN_PARISC_HUGE_COMMON 0xff01
1535 #define EFA_PARISC_1_0 0x020b 1383
1536 #define EFA_PARISC_1_1 0x0210 1384 #define SHT_PARISC_EXT 0x70000000
1537 #define EFA_PARISC_2_0 0x0214 1385 #define SHT_PARISC_UNWIND 0x70000001
1538 1386 #define SHT_PARISC_DOC 0x70000002
1539 1387
1540 1388 #define SHF_PARISC_SHORT 0x20000000
1541 #define SHN_PARISC_ANSI_COMMON 0xff00 1389 #define SHF_PARISC_HUGE 0x40000000
1542 1390 #define SHF_PARISC_SBP 0x80000000
1543 #define SHN_PARISC_HUGE_COMMON 0xff01 1391
1544 1392 #define STT_PARISC_MILLICODE 13
1545 1393
1546 1394 #define STT_HP_OPAQUE (STT_LOOS + 0x1)
1547 #define SHT_PARISC_EXT 0x70000000 1395 #define STT_HP_STUB (STT_LOOS + 0x2)
1548 #define SHT_PARISC_UNWIND 0x70000001 1396
1549 #define SHT_PARISC_DOC 0x70000002 1397 #define R_PARISC_NONE 0
1550 1398 #define R_PARISC_DIR32 1
1551 1399 #define R_PARISC_DIR21L 2
1552 1400 #define R_PARISC_DIR17R 3
1553 #define SHF_PARISC_SHORT 0x20000000 1401 #define R_PARISC_DIR17F 4
1554 #define SHF_PARISC_HUGE 0x40000000 1402 #define R_PARISC_DIR14R 6
1555 #define SHF_PARISC_SBP 0x80000000 1403 #define R_PARISC_PCREL32 9
1556 1404 #define R_PARISC_PCREL21L 10
1557 1405 #define R_PARISC_PCREL17R 11
1558 1406 #define R_PARISC_PCREL17F 12
1559 #define STT_PARISC_MILLICODE 13 1407 #define R_PARISC_PCREL14R 14
1560 1408 #define R_PARISC_DPREL21L 18
1561 #define STT_HP_OPAQUE (STT_LOOS + 0x1) 1409 #define R_PARISC_DPREL14R 22
1562 #define STT_HP_STUB (STT_LOOS + 0x2) 1410 #define R_PARISC_GPREL21L 26
1563 1411 #define R_PARISC_GPREL14R 30
1564 1412 #define R_PARISC_LTOFF21L 34
1565 1413 #define R_PARISC_LTOFF14R 38
1566 #define R_PARISC_NONE 0 1414 #define R_PARISC_SECREL32 41
1567 #define R_PARISC_DIR32 1 1415 #define R_PARISC_SEGBASE 48
1568 #define R_PARISC_DIR21L 2 1416 #define R_PARISC_SEGREL32 49
1569 #define R_PARISC_DIR17R 3 1417 #define R_PARISC_PLTOFF21L 50
1570 #define R_PARISC_DIR17F 4 1418 #define R_PARISC_PLTOFF14R 54
1571 #define R_PARISC_DIR14R 6 1419 #define R_PARISC_LTOFF_FPTR32 57
1572 #define R_PARISC_PCREL32 9 1420 #define R_PARISC_LTOFF_FPTR21L 58
1573 #define R_PARISC_PCREL21L 10 1421 #define R_PARISC_LTOFF_FPTR14R 62
1574 #define R_PARISC_PCREL17R 11 1422 #define R_PARISC_FPTR64 64
1575 #define R_PARISC_PCREL17F 12 1423 #define R_PARISC_PLABEL32 65
1576 #define R_PARISC_PCREL14R 14 1424 #define R_PARISC_PLABEL21L 66
1577 #define R_PARISC_DPREL21L 18 1425 #define R_PARISC_PLABEL14R 70
1578 #define R_PARISC_DPREL14R 22 1426 #define R_PARISC_PCREL64 72
1579 #define R_PARISC_GPREL21L 26 1427 #define R_PARISC_PCREL22F 74
1580 #define R_PARISC_GPREL14R 30 1428 #define R_PARISC_PCREL14WR 75
1581 #define R_PARISC_LTOFF21L 34 1429 #define R_PARISC_PCREL14DR 76
1582 #define R_PARISC_LTOFF14R 38 1430 #define R_PARISC_PCREL16F 77
1583 #define R_PARISC_SECREL32 41 1431 #define R_PARISC_PCREL16WF 78
1584 #define R_PARISC_SEGBASE 48 1432 #define R_PARISC_PCREL16DF 79
1585 #define R_PARISC_SEGREL32 49 1433 #define R_PARISC_DIR64 80
1586 #define R_PARISC_PLTOFF21L 50 1434 #define R_PARISC_DIR14WR 83
1587 #define R_PARISC_PLTOFF14R 54 1435 #define R_PARISC_DIR14DR 84
1588 #define R_PARISC_LTOFF_FPTR32 57 1436 #define R_PARISC_DIR16F 85
1589 #define R_PARISC_LTOFF_FPTR21L 58 1437 #define R_PARISC_DIR16WF 86
1590 #define R_PARISC_LTOFF_FPTR14R 62 1438 #define R_PARISC_DIR16DF 87
1591 #define R_PARISC_FPTR64 64 1439 #define R_PARISC_GPREL64 88
1592 #define R_PARISC_PLABEL32 65 1440 #define R_PARISC_GPREL14WR 91
1593 #define R_PARISC_PLABEL21L 66 1441 #define R_PARISC_GPREL14DR 92
1594 #define R_PARISC_PLABEL14R 70 1442 #define R_PARISC_GPREL16F 93
1595 #define R_PARISC_PCREL64 72 1443 #define R_PARISC_GPREL16WF 94
1596 #define R_PARISC_PCREL22F 74 1444 #define R_PARISC_GPREL16DF 95
1597 #define R_PARISC_PCREL14WR 75 1445 #define R_PARISC_LTOFF64 96
1598 #define R_PARISC_PCREL14DR 76 1446 #define R_PARISC_LTOFF14WR 99
1599 #define R_PARISC_PCREL16F 77 1447 #define R_PARISC_LTOFF14DR 100
1600 #define R_PARISC_PCREL16WF 78 1448 #define R_PARISC_LTOFF16F 101
1601 #define R_PARISC_PCREL16DF 79 1449 #define R_PARISC_LTOFF16WF 102
1602 #define R_PARISC_DIR64 80 1450 #define R_PARISC_LTOFF16DF 103
1603 #define R_PARISC_DIR14WR 83 1451 #define R_PARISC_SECREL64 104
1604 #define R_PARISC_DIR14DR 84 1452 #define R_PARISC_SEGREL64 112
1605 #define R_PARISC_DIR16F 85 1453 #define R_PARISC_PLTOFF14WR 115
1606 #define R_PARISC_DIR16WF 86 1454 #define R_PARISC_PLTOFF14DR 116
1607 #define R_PARISC_DIR16DF 87 1455 #define R_PARISC_PLTOFF16F 117
1608 #define R_PARISC_GPREL64 88 1456 #define R_PARISC_PLTOFF16WF 118
1609 #define R_PARISC_GPREL14WR 91 1457 #define R_PARISC_PLTOFF16DF 119
1610 #define R_PARISC_GPREL14DR 92 1458 #define R_PARISC_LTOFF_FPTR64 120
1611 #define R_PARISC_GPREL16F 93 1459 #define R_PARISC_LTOFF_FPTR14WR 123
1612 #define R_PARISC_GPREL16WF 94 1460 #define R_PARISC_LTOFF_FPTR14DR 124
1613 #define R_PARISC_GPREL16DF 95 1461 #define R_PARISC_LTOFF_FPTR16F 125
1614 #define R_PARISC_LTOFF64 96 1462 #define R_PARISC_LTOFF_FPTR16WF 126
1615 #define R_PARISC_LTOFF14WR 99 1463 #define R_PARISC_LTOFF_FPTR16DF 127
1616 #define R_PARISC_LTOFF14DR 100 1464 #define R_PARISC_LORESERVE 128
1617 #define R_PARISC_LTOFF16F 101 1465 #define R_PARISC_COPY 128
1618 #define R_PARISC_LTOFF16WF 102 1466 #define R_PARISC_IPLT 129
1619 #define R_PARISC_LTOFF16DF 103 1467 #define R_PARISC_EPLT 130
1620 #define R_PARISC_SECREL64 104 1468 #define R_PARISC_TPREL32 153
1621 #define R_PARISC_SEGREL64 112 1469 #define R_PARISC_TPREL21L 154
1622 #define R_PARISC_PLTOFF14WR 115 1470 #define R_PARISC_TPREL14R 158
1623 #define R_PARISC_PLTOFF14DR 116 1471 #define R_PARISC_LTOFF_TP21L 162
1624 #define R_PARISC_PLTOFF16F 117 1472 #define R_PARISC_LTOFF_TP14R 166
1625 #define R_PARISC_PLTOFF16WF 118 1473 #define R_PARISC_LTOFF_TP14F 167
1626 #define R_PARISC_PLTOFF16DF 119 1474 #define R_PARISC_TPREL64 216
1627 #define R_PARISC_LTOFF_FPTR64 120 1475 #define R_PARISC_TPREL14WR 219
1628 #define R_PARISC_LTOFF_FPTR14WR 123 1476 #define R_PARISC_TPREL14DR 220
1629 #define R_PARISC_LTOFF_FPTR14DR 124 1477 #define R_PARISC_TPREL16F 221
1630 #define R_PARISC_LTOFF_FPTR16F 125 1478 #define R_PARISC_TPREL16WF 222
1631 #define R_PARISC_LTOFF_FPTR16WF 126 1479 #define R_PARISC_TPREL16DF 223
1632 #define R_PARISC_LTOFF_FPTR16DF 127 1480 #define R_PARISC_LTOFF_TP64 224
1633 #define R_PARISC_LORESERVE 128 1481 #define R_PARISC_LTOFF_TP14WR 227
1634 #define R_PARISC_COPY 128 1482 #define R_PARISC_LTOFF_TP14DR 228
1635 #define R_PARISC_IPLT 129 1483 #define R_PARISC_LTOFF_TP16F 229
1636 #define R_PARISC_EPLT 130 1484 #define R_PARISC_LTOFF_TP16WF 230
1637 #define R_PARISC_TPREL32 153 1485 #define R_PARISC_LTOFF_TP16DF 231
1638 #define R_PARISC_TPREL21L 154 1486 #define R_PARISC_GNU_VTENTRY 232
1639 #define R_PARISC_TPREL14R 158 1487 #define R_PARISC_GNU_VTINHERIT 233
1640 #define R_PARISC_LTOFF_TP21L 162 1488 #define R_PARISC_TLS_GD21L 234
1641 #define R_PARISC_LTOFF_TP14R 166 1489 #define R_PARISC_TLS_GD14R 235
1642 #define R_PARISC_LTOFF_TP14F 167 1490 #define R_PARISC_TLS_GDCALL 236
1643 #define R_PARISC_TPREL64 216 1491 #define R_PARISC_TLS_LDM21L 237
1644 #define R_PARISC_TPREL14WR 219 1492 #define R_PARISC_TLS_LDM14R 238
1645 #define R_PARISC_TPREL14DR 220 1493 #define R_PARISC_TLS_LDMCALL 239
1646 #define R_PARISC_TPREL16F 221 1494 #define R_PARISC_TLS_LDO21L 240
1647 #define R_PARISC_TPREL16WF 222 1495 #define R_PARISC_TLS_LDO14R 241
1648 #define R_PARISC_TPREL16DF 223 1496 #define R_PARISC_TLS_DTPMOD32 242
1649 #define R_PARISC_LTOFF_TP64 224 1497 #define R_PARISC_TLS_DTPMOD64 243
1650 #define R_PARISC_LTOFF_TP14WR 227 1498 #define R_PARISC_TLS_DTPOFF32 244
1651 #define R_PARISC_LTOFF_TP14DR 228 1499 #define R_PARISC_TLS_DTPOFF64 245
1652 #define R_PARISC_LTOFF_TP16F 229 1500 #define R_PARISC_TLS_LE21L R_PARISC_TPREL21L
1653 #define R_PARISC_LTOFF_TP16WF 230 1501 #define R_PARISC_TLS_LE14R R_PARISC_TPREL14R
1654 #define R_PARISC_LTOFF_TP16DF 231 1502 #define R_PARISC_TLS_IE21L R_PARISC_LTOFF_TP21L
1655 #define R_PARISC_GNU_VTENTRY 232 1503 #define R_PARISC_TLS_IE14R R_PARISC_LTOFF_TP14R
1656 #define R_PARISC_GNU_VTINHERIT 233 1504 #define R_PARISC_TLS_TPREL32 R_PARISC_TPREL32
1657 #define R_PARISC_TLS_GD21L 234 1505 #define R_PARISC_TLS_TPREL64 R_PARISC_TPREL64
1658 #define R_PARISC_TLS_GD14R 235 1506 #define R_PARISC_HIRESERVE 255
1659 #define R_PARISC_TLS_GDCALL 236 1507
1660 #define R_PARISC_TLS_LDM21L 237 1508 #define PT_HP_TLS (PT_LOOS + 0x0)
1661 #define R_PARISC_TLS_LDM14R 238 1509 #define PT_HP_CORE_NONE (PT_LOOS + 0x1)
1662 #define R_PARISC_TLS_LDMCALL 239 1510 #define PT_HP_CORE_VERSION (PT_LOOS + 0x2)
1663 #define R_PARISC_TLS_LDO21L 240 1511 #define PT_HP_CORE_KERNEL (PT_LOOS + 0x3)
1664 #define R_PARISC_TLS_LDO14R 241 1512 #define PT_HP_CORE_COMM (PT_LOOS + 0x4)
1665 #define R_PARISC_TLS_DTPMOD32 242 1513 #define PT_HP_CORE_PROC (PT_LOOS + 0x5)
1666 #define R_PARISC_TLS_DTPMOD64 243 1514 #define PT_HP_CORE_LOADABLE (PT_LOOS + 0x6)
1667 #define R_PARISC_TLS_DTPOFF32 244 1515 #define PT_HP_CORE_STACK (PT_LOOS + 0x7)
1668 #define R_PARISC_TLS_DTPOFF64 245 1516 #define PT_HP_CORE_SHM (PT_LOOS + 0x8)
1669 #define R_PARISC_TLS_LE21L R_PARISC_TPREL21L 1517 #define PT_HP_CORE_MMF (PT_LOOS + 0x9)
1670 #define R_PARISC_TLS_LE14R R_PARISC_TPREL14R 1518 #define PT_HP_PARALLEL (PT_LOOS + 0x10)
1671 #define R_PARISC_TLS_IE21L R_PARISC_LTOFF_TP21L 1519 #define PT_HP_FASTBIND (PT_LOOS + 0x11)
1672 #define R_PARISC_TLS_IE14R R_PARISC_LTOFF_TP14R 1520 #define PT_HP_OPT_ANNOT (PT_LOOS + 0x12)
1673 #define R_PARISC_TLS_TPREL32 R_PARISC_TPREL32 1521 #define PT_HP_HSL_ANNOT (PT_LOOS + 0x13)
1674 #define R_PARISC_TLS_TPREL64 R_PARISC_TPREL64 1522 #define PT_HP_STACK (PT_LOOS + 0x14)
1675 #define R_PARISC_HIRESERVE 255 1523
1676 1524 #define PT_PARISC_ARCHEXT 0x70000000
1677 1525 #define PT_PARISC_UNWIND 0x70000001
1678 1526
1679 #define PT_HP_TLS (PT_LOOS + 0x0) 1527 #define PF_PARISC_SBP 0x08000000
1680 #define PT_HP_CORE_NONE (PT_LOOS + 0x1) 1528
1681 #define PT_HP_CORE_VERSION (PT_LOOS + 0x2) 1529 #define PF_HP_PAGE_SIZE 0x00100000
1682 #define PT_HP_CORE_KERNEL (PT_LOOS + 0x3) 1530 #define PF_HP_FAR_SHARED 0x00200000
1683 #define PT_HP_CORE_COMM (PT_LOOS + 0x4) 1531 #define PF_HP_NEAR_SHARED 0x00400000
1684 #define PT_HP_CORE_PROC (PT_LOOS + 0x5) 1532 #define PF_HP_CODE 0x01000000
1685 #define PT_HP_CORE_LOADABLE (PT_LOOS + 0x6) 1533 #define PF_HP_MODIFY 0x02000000
1686 #define PT_HP_CORE_STACK (PT_LOOS + 0x7) 1534 #define PF_HP_LAZYSWAP 0x04000000
1687 #define PT_HP_CORE_SHM (PT_LOOS + 0x8) 1535 #define PF_HP_SBP 0x08000000
1688 #define PT_HP_CORE_MMF (PT_LOOS + 0x9) 1536
1689 #define PT_HP_PARALLEL (PT_LOOS + 0x10) 1537 #define EF_ALPHA_32BIT 1
1690 #define PT_HP_FASTBIND (PT_LOOS + 0x11) 1538 #define EF_ALPHA_CANRELAX 2
1691 #define PT_HP_OPT_ANNOT (PT_LOOS + 0x12) 1539
1692 #define PT_HP_HSL_ANNOT (PT_LOOS + 0x13) 1540 #define SHT_ALPHA_DEBUG 0x70000001
1693 #define PT_HP_STACK (PT_LOOS + 0x14) 1541 #define SHT_ALPHA_REGINFO 0x70000002
1694 1542
1695 #define PT_PARISC_ARCHEXT 0x70000000 1543 #define SHF_ALPHA_GPREL 0x10000000
1696 #define PT_PARISC_UNWIND 0x70000001 1544
1697 1545 #define STO_ALPHA_NOPV 0x80
1698 1546 #define STO_ALPHA_STD_GPLOAD 0x88
1699 1547
1700 #define PF_PARISC_SBP 0x08000000 1548 #define R_ALPHA_NONE 0
1701 1549 #define R_ALPHA_REFLONG 1
1702 #define PF_HP_PAGE_SIZE 0x00100000 1550 #define R_ALPHA_REFQUAD 2
1703 #define PF_HP_FAR_SHARED 0x00200000 1551 #define R_ALPHA_GPREL32 3
1704 #define PF_HP_NEAR_SHARED 0x00400000 1552 #define R_ALPHA_LITERAL 4
1705 #define PF_HP_CODE 0x01000000 1553 #define R_ALPHA_LITUSE 5
1706 #define PF_HP_MODIFY 0x02000000 1554 #define R_ALPHA_GPDISP 6
1707 #define PF_HP_LAZYSWAP 0x04000000 1555 #define R_ALPHA_BRADDR 7
1708 #define PF_HP_SBP 0x08000000 1556 #define R_ALPHA_HINT 8
1709 1557 #define R_ALPHA_SREL16 9
1710 1558 #define R_ALPHA_SREL32 10
1711 1559 #define R_ALPHA_SREL64 11
1712 1560 #define R_ALPHA_GPRELHIGH 17
1713 1561 #define R_ALPHA_GPRELLOW 18
1714 1562 #define R_ALPHA_GPREL16 19
1715 #define EF_ALPHA_32BIT 1 1563 #define R_ALPHA_COPY 24
1716 #define EF_ALPHA_CANRELAX 2 1564 #define R_ALPHA_GLOB_DAT 25
1717 1565 #define R_ALPHA_JMP_SLOT 26
1718 1566 #define R_ALPHA_RELATIVE 27
1719 1567 #define R_ALPHA_TLS_GD_HI 28
1720 1568 #define R_ALPHA_TLSGD 29
1721 #define SHT_ALPHA_DEBUG 0x70000001 1569 #define R_ALPHA_TLS_LDM 30
1722 #define SHT_ALPHA_REGINFO 0x70000002 1570 #define R_ALPHA_DTPMOD64 31
1723 1571 #define R_ALPHA_GOTDTPREL 32
1724 1572 #define R_ALPHA_DTPREL64 33
1725 1573 #define R_ALPHA_DTPRELHI 34
1726 #define SHF_ALPHA_GPREL 0x10000000 1574 #define R_ALPHA_DTPRELLO 35
1727 1575 #define R_ALPHA_DTPREL16 36
1728 1576 #define R_ALPHA_GOTTPREL 37
1729 #define STO_ALPHA_NOPV 0x80 1577 #define R_ALPHA_TPREL64 38
1730 #define STO_ALPHA_STD_GPLOAD 0x88 1578 #define R_ALPHA_TPRELHI 39
1731 1579 #define R_ALPHA_TPRELLO 40
1732 1580 #define R_ALPHA_TPREL16 41
1733 1581
1734 #define R_ALPHA_NONE 0 1582 #define R_ALPHA_NUM 46
1735 #define R_ALPHA_REFLONG 1 1583
1736 #define R_ALPHA_REFQUAD 2 1584 #define LITUSE_ALPHA_ADDR 0
1737 #define R_ALPHA_GPREL32 3 1585 #define LITUSE_ALPHA_BASE 1
1738 #define R_ALPHA_LITERAL 4 1586 #define LITUSE_ALPHA_BYTOFF 2
1739 #define R_ALPHA_LITUSE 5 1587 #define LITUSE_ALPHA_JSR 3
1740 #define R_ALPHA_GPDISP 6 1588 #define LITUSE_ALPHA_TLS_GD 4
1741 #define R_ALPHA_BRADDR 7 1589 #define LITUSE_ALPHA_TLS_LDM 5
1742 #define R_ALPHA_HINT 8 1590
1743 #define R_ALPHA_SREL16 9 1591 #define DT_ALPHA_PLTRO (DT_LOPROC + 0)
1744 #define R_ALPHA_SREL32 10 1592 #define DT_ALPHA_NUM 1
1745 #define R_ALPHA_SREL64 11 1593
1746 #define R_ALPHA_GPRELHIGH 17 1594 #define EF_PPC_EMB 0x80000000
1747 #define R_ALPHA_GPRELLOW 18 1595
1748 #define R_ALPHA_GPREL16 19 1596 #define EF_PPC_RELOCATABLE 0x00010000
1749 #define R_ALPHA_COPY 24 1597 #define EF_PPC_RELOCATABLE_LIB 0x00008000
1750 #define R_ALPHA_GLOB_DAT 25 1598
1751 #define R_ALPHA_JMP_SLOT 26 1599 #define R_PPC_NONE 0
1752 #define R_ALPHA_RELATIVE 27 1600 #define R_PPC_ADDR32 1
1753 #define R_ALPHA_TLS_GD_HI 28 1601 #define R_PPC_ADDR24 2
1754 #define R_ALPHA_TLSGD 29 1602 #define R_PPC_ADDR16 3
1755 #define R_ALPHA_TLS_LDM 30 1603 #define R_PPC_ADDR16_LO 4
1756 #define R_ALPHA_DTPMOD64 31 1604 #define R_PPC_ADDR16_HI 5
1757 #define R_ALPHA_GOTDTPREL 32 1605 #define R_PPC_ADDR16_HA 6
1758 #define R_ALPHA_DTPREL64 33 1606 #define R_PPC_ADDR14 7
1759 #define R_ALPHA_DTPRELHI 34 1607 #define R_PPC_ADDR14_BRTAKEN 8
1760 #define R_ALPHA_DTPRELLO 35 1608 #define R_PPC_ADDR14_BRNTAKEN 9
1761 #define R_ALPHA_DTPREL16 36 1609 #define R_PPC_REL24 10
1762 #define R_ALPHA_GOTTPREL 37 1610 #define R_PPC_REL14 11
1763 #define R_ALPHA_TPREL64 38 1611 #define R_PPC_REL14_BRTAKEN 12
1764 #define R_ALPHA_TPRELHI 39 1612 #define R_PPC_REL14_BRNTAKEN 13
1765 #define R_ALPHA_TPRELLO 40 1613 #define R_PPC_GOT16 14
1766 #define R_ALPHA_TPREL16 41 1614 #define R_PPC_GOT16_LO 15
1767 1615 #define R_PPC_GOT16_HI 16
1768 #define R_ALPHA_NUM 46 1616 #define R_PPC_GOT16_HA 17
1769 1617 #define R_PPC_PLTREL24 18
1770 1618 #define R_PPC_COPY 19
1771 #define LITUSE_ALPHA_ADDR 0 1619 #define R_PPC_GLOB_DAT 20
1772 #define LITUSE_ALPHA_BASE 1 1620 #define R_PPC_JMP_SLOT 21
1773 #define LITUSE_ALPHA_BYTOFF 2 1621 #define R_PPC_RELATIVE 22
1774 #define LITUSE_ALPHA_JSR 3 1622 #define R_PPC_LOCAL24PC 23
1775 #define LITUSE_ALPHA_TLS_GD 4 1623 #define R_PPC_UADDR32 24
1776 #define LITUSE_ALPHA_TLS_LDM 5 1624 #define R_PPC_UADDR16 25
1777 1625 #define R_PPC_REL32 26
1778 1626 #define R_PPC_PLT32 27
1779 #define DT_ALPHA_PLTRO (DT_LOPROC + 0) 1627 #define R_PPC_PLTREL32 28
1780 #define DT_ALPHA_NUM 1 1628 #define R_PPC_PLT16_LO 29
1781 1629 #define R_PPC_PLT16_HI 30
1782 1630 #define R_PPC_PLT16_HA 31
1783 1631 #define R_PPC_SDAREL16 32
1784 1632 #define R_PPC_SECTOFF 33
1785 #define EF_PPC_EMB 0x80000000 1633 #define R_PPC_SECTOFF_LO 34
1786 1634 #define R_PPC_SECTOFF_HI 35
1787 1635 #define R_PPC_SECTOFF_HA 36
1788 #define EF_PPC_RELOCATABLE 0x00010000 1636
1789 #define EF_PPC_RELOCATABLE_LIB 0x00008000 1637 #define R_PPC_TLS 67
1790 1638 #define R_PPC_DTPMOD32 68
1791 1639 #define R_PPC_TPREL16 69
1792 1640 #define R_PPC_TPREL16_LO 70
1793 #define R_PPC_NONE 0 1641 #define R_PPC_TPREL16_HI 71
1794 #define R_PPC_ADDR32 1 1642 #define R_PPC_TPREL16_HA 72
1795 #define R_PPC_ADDR24 2 1643 #define R_PPC_TPREL32 73
1796 #define R_PPC_ADDR16 3 1644 #define R_PPC_DTPREL16 74
1797 #define R_PPC_ADDR16_LO 4 1645 #define R_PPC_DTPREL16_LO 75
1798 #define R_PPC_ADDR16_HI 5 1646 #define R_PPC_DTPREL16_HI 76
1799 #define R_PPC_ADDR16_HA 6 1647 #define R_PPC_DTPREL16_HA 77
1800 #define R_PPC_ADDR14 7 1648 #define R_PPC_DTPREL32 78
1801 #define R_PPC_ADDR14_BRTAKEN 8 1649 #define R_PPC_GOT_TLSGD16 79
1802 #define R_PPC_ADDR14_BRNTAKEN 9 1650 #define R_PPC_GOT_TLSGD16_LO 80
1803 #define R_PPC_REL24 10 1651 #define R_PPC_GOT_TLSGD16_HI 81
1804 #define R_PPC_REL14 11 1652 #define R_PPC_GOT_TLSGD16_HA 82
1805 #define R_PPC_REL14_BRTAKEN 12 1653 #define R_PPC_GOT_TLSLD16 83
1806 #define R_PPC_REL14_BRNTAKEN 13 1654 #define R_PPC_GOT_TLSLD16_LO 84
1807 #define R_PPC_GOT16 14 1655 #define R_PPC_GOT_TLSLD16_HI 85
1808 #define R_PPC_GOT16_LO 15 1656 #define R_PPC_GOT_TLSLD16_HA 86
1809 #define R_PPC_GOT16_HI 16 1657 #define R_PPC_GOT_TPREL16 87
1810 #define R_PPC_GOT16_HA 17 1658 #define R_PPC_GOT_TPREL16_LO 88
1811 #define R_PPC_PLTREL24 18 1659 #define R_PPC_GOT_TPREL16_HI 89
1812 #define R_PPC_COPY 19 1660 #define R_PPC_GOT_TPREL16_HA 90
1813 #define R_PPC_GLOB_DAT 20 1661 #define R_PPC_GOT_DTPREL16 91
1814 #define R_PPC_JMP_SLOT 21 1662 #define R_PPC_GOT_DTPREL16_LO 92
1815 #define R_PPC_RELATIVE 22 1663 #define R_PPC_GOT_DTPREL16_HI 93
1816 #define R_PPC_LOCAL24PC 23 1664 #define R_PPC_GOT_DTPREL16_HA 94
1817 #define R_PPC_UADDR32 24 1665
1818 #define R_PPC_UADDR16 25 1666 #define R_PPC_EMB_NADDR32 101
1819 #define R_PPC_REL32 26 1667 #define R_PPC_EMB_NADDR16 102
1820 #define R_PPC_PLT32 27 1668 #define R_PPC_EMB_NADDR16_LO 103
1821 #define R_PPC_PLTREL32 28 1669 #define R_PPC_EMB_NADDR16_HI 104
1822 #define R_PPC_PLT16_LO 29 1670 #define R_PPC_EMB_NADDR16_HA 105
1823 #define R_PPC_PLT16_HI 30 1671 #define R_PPC_EMB_SDAI16 106
1824 #define R_PPC_PLT16_HA 31 1672 #define R_PPC_EMB_SDA2I16 107
1825 #define R_PPC_SDAREL16 32 1673 #define R_PPC_EMB_SDA2REL 108
1826 #define R_PPC_SECTOFF 33 1674 #define R_PPC_EMB_SDA21 109
1827 #define R_PPC_SECTOFF_LO 34 1675 #define R_PPC_EMB_MRKREF 110
1828 #define R_PPC_SECTOFF_HI 35 1676 #define R_PPC_EMB_RELSEC16 111
1829 #define R_PPC_SECTOFF_HA 36 1677 #define R_PPC_EMB_RELST_LO 112
1830 1678 #define R_PPC_EMB_RELST_HI 113
1831 1679 #define R_PPC_EMB_RELST_HA 114
1832 #define R_PPC_TLS 67 1680 #define R_PPC_EMB_BIT_FLD 115
1833 #define R_PPC_DTPMOD32 68 1681 #define R_PPC_EMB_RELSDA 116
1834 #define R_PPC_TPREL16 69 1682
1835 #define R_PPC_TPREL16_LO 70 1683 #define R_PPC_DIAB_SDA21_LO 180
1836 #define R_PPC_TPREL16_HI 71 1684 #define R_PPC_DIAB_SDA21_HI 181
1837 #define R_PPC_TPREL16_HA 72 1685 #define R_PPC_DIAB_SDA21_HA 182
1838 #define R_PPC_TPREL32 73 1686 #define R_PPC_DIAB_RELSDA_LO 183
1839 #define R_PPC_DTPREL16 74 1687 #define R_PPC_DIAB_RELSDA_HI 184
1840 #define R_PPC_DTPREL16_LO 75 1688 #define R_PPC_DIAB_RELSDA_HA 185
1841 #define R_PPC_DTPREL16_HI 76 1689
1842 #define R_PPC_DTPREL16_HA 77 1690 #define R_PPC_IRELATIVE 248
1843 #define R_PPC_DTPREL32 78 1691
1844 #define R_PPC_GOT_TLSGD16 79 1692 #define R_PPC_REL16 249
1845 #define R_PPC_GOT_TLSGD16_LO 80 1693 #define R_PPC_REL16_LO 250
1846 #define R_PPC_GOT_TLSGD16_HI 81 1694 #define R_PPC_REL16_HI 251
1847 #define R_PPC_GOT_TLSGD16_HA 82 1695 #define R_PPC_REL16_HA 252
1848 #define R_PPC_GOT_TLSLD16 83 1696
1849 #define R_PPC_GOT_TLSLD16_LO 84 1697 #define R_PPC_TOC16 255
1850 #define R_PPC_GOT_TLSLD16_HI 85 1698
1851 #define R_PPC_GOT_TLSLD16_HA 86 1699 #define DT_PPC_GOT (DT_LOPROC + 0)
1852 #define R_PPC_GOT_TPREL16 87 1700 #define DT_PPC_NUM 1
1853 #define R_PPC_GOT_TPREL16_LO 88 1701
1854 #define R_PPC_GOT_TPREL16_HI 89 1702 #define R_PPC64_NONE R_PPC_NONE
1855 #define R_PPC_GOT_TPREL16_HA 90 1703 #define R_PPC64_ADDR32 R_PPC_ADDR32
1856 #define R_PPC_GOT_DTPREL16 91 1704 #define R_PPC64_ADDR24 R_PPC_ADDR24
1857 #define R_PPC_GOT_DTPREL16_LO 92 1705 #define R_PPC64_ADDR16 R_PPC_ADDR16
1858 #define R_PPC_GOT_DTPREL16_HI 93 1706 #define R_PPC64_ADDR16_LO R_PPC_ADDR16_LO
1859 #define R_PPC_GOT_DTPREL16_HA 94 1707 #define R_PPC64_ADDR16_HI R_PPC_ADDR16_HI
1860 1708 #define R_PPC64_ADDR16_HA R_PPC_ADDR16_HA
1861 1709 #define R_PPC64_ADDR14 R_PPC_ADDR14
1862 1710 #define R_PPC64_ADDR14_BRTAKEN R_PPC_ADDR14_BRTAKEN
1863 #define R_PPC_EMB_NADDR32 101 1711 #define R_PPC64_ADDR14_BRNTAKEN R_PPC_ADDR14_BRNTAKEN
1864 #define R_PPC_EMB_NADDR16 102 1712 #define R_PPC64_REL24 R_PPC_REL24
1865 #define R_PPC_EMB_NADDR16_LO 103 1713 #define R_PPC64_REL14 R_PPC_REL14
1866 #define R_PPC_EMB_NADDR16_HI 104 1714 #define R_PPC64_REL14_BRTAKEN R_PPC_REL14_BRTAKEN
1867 #define R_PPC_EMB_NADDR16_HA 105 1715 #define R_PPC64_REL14_BRNTAKEN R_PPC_REL14_BRNTAKEN
1868 #define R_PPC_EMB_SDAI16 106 1716 #define R_PPC64_GOT16 R_PPC_GOT16
1869 #define R_PPC_EMB_SDA2I16 107 1717 #define R_PPC64_GOT16_LO R_PPC_GOT16_LO
1870 #define R_PPC_EMB_SDA2REL 108 1718 #define R_PPC64_GOT16_HI R_PPC_GOT16_HI
1871 #define R_PPC_EMB_SDA21 109 1719 #define R_PPC64_GOT16_HA R_PPC_GOT16_HA
1872 #define R_PPC_EMB_MRKREF 110 1720
1873 #define R_PPC_EMB_RELSEC16 111 1721 #define R_PPC64_COPY R_PPC_COPY
1874 #define R_PPC_EMB_RELST_LO 112 1722 #define R_PPC64_GLOB_DAT R_PPC_GLOB_DAT
1875 #define R_PPC_EMB_RELST_HI 113 1723 #define R_PPC64_JMP_SLOT R_PPC_JMP_SLOT
1876 #define R_PPC_EMB_RELST_HA 114 1724 #define R_PPC64_RELATIVE R_PPC_RELATIVE
1877 #define R_PPC_EMB_BIT_FLD 115 1725
1878 #define R_PPC_EMB_RELSDA 116 1726 #define R_PPC64_UADDR32 R_PPC_UADDR32
1879 1727 #define R_PPC64_UADDR16 R_PPC_UADDR16
1880 1728 #define R_PPC64_REL32 R_PPC_REL32
1881 #define R_PPC_DIAB_SDA21_LO 180 1729 #define R_PPC64_PLT32 R_PPC_PLT32
1882 #define R_PPC_DIAB_SDA21_HI 181 1730 #define R_PPC64_PLTREL32 R_PPC_PLTREL32
1883 #define R_PPC_DIAB_SDA21_HA 182 1731 #define R_PPC64_PLT16_LO R_PPC_PLT16_LO
1884 #define R_PPC_DIAB_RELSDA_LO 183 1732 #define R_PPC64_PLT16_HI R_PPC_PLT16_HI
1885 #define R_PPC_DIAB_RELSDA_HI 184 1733 #define R_PPC64_PLT16_HA R_PPC_PLT16_HA
1886 #define R_PPC_DIAB_RELSDA_HA 185 1734
1887 1735 #define R_PPC64_SECTOFF R_PPC_SECTOFF
1888 1736 #define R_PPC64_SECTOFF_LO R_PPC_SECTOFF_LO
1889 #define R_PPC_IRELATIVE 248 1737 #define R_PPC64_SECTOFF_HI R_PPC_SECTOFF_HI
1890 1738 #define R_PPC64_SECTOFF_HA R_PPC_SECTOFF_HA
1891 1739 #define R_PPC64_ADDR30 37
1892 #define R_PPC_REL16 249 1740 #define R_PPC64_ADDR64 38
1893 #define R_PPC_REL16_LO 250 1741 #define R_PPC64_ADDR16_HIGHER 39
1894 #define R_PPC_REL16_HI 251 1742 #define R_PPC64_ADDR16_HIGHERA 40
1895 #define R_PPC_REL16_HA 252 1743 #define R_PPC64_ADDR16_HIGHEST 41
1896 1744 #define R_PPC64_ADDR16_HIGHESTA 42
1897 1745 #define R_PPC64_UADDR64 43
1898 1746 #define R_PPC64_REL64 44
1899 #define R_PPC_TOC16 255 1747 #define R_PPC64_PLT64 45
1900 1748 #define R_PPC64_PLTREL64 46
1901 1749 #define R_PPC64_TOC16 47
1902 #define DT_PPC_GOT (DT_LOPROC + 0) 1750 #define R_PPC64_TOC16_LO 48
1903 #define DT_PPC_NUM 1 1751 #define R_PPC64_TOC16_HI 49
1904 1752 #define R_PPC64_TOC16_HA 50
1905 1753 #define R_PPC64_TOC 51
1906 #define R_PPC64_NONE R_PPC_NONE 1754 #define R_PPC64_PLTGOT16 52
1907 #define R_PPC64_ADDR32 R_PPC_ADDR32 1755 #define R_PPC64_PLTGOT16_LO 53
1908 #define R_PPC64_ADDR24 R_PPC_ADDR24 1756 #define R_PPC64_PLTGOT16_HI 54
1909 #define R_PPC64_ADDR16 R_PPC_ADDR16 1757 #define R_PPC64_PLTGOT16_HA 55
1910 #define R_PPC64_ADDR16_LO R_PPC_ADDR16_LO 1758
1911 #define R_PPC64_ADDR16_HI R_PPC_ADDR16_HI 1759 #define R_PPC64_ADDR16_DS 56
1912 #define R_PPC64_ADDR16_HA R_PPC_ADDR16_HA 1760 #define R_PPC64_ADDR16_LO_DS 57
1913 #define R_PPC64_ADDR14 R_PPC_ADDR14 1761 #define R_PPC64_GOT16_DS 58
1914 #define R_PPC64_ADDR14_BRTAKEN R_PPC_ADDR14_BRTAKEN 1762 #define R_PPC64_GOT16_LO_DS 59
1915 #define R_PPC64_ADDR14_BRNTAKEN R_PPC_ADDR14_BRNTAKEN 1763 #define R_PPC64_PLT16_LO_DS 60
1916 #define R_PPC64_REL24 R_PPC_REL24 1764 #define R_PPC64_SECTOFF_DS 61
1917 #define R_PPC64_REL14 R_PPC_REL14 1765 #define R_PPC64_SECTOFF_LO_DS 62
1918 #define R_PPC64_REL14_BRTAKEN R_PPC_REL14_BRTAKEN 1766 #define R_PPC64_TOC16_DS 63
1919 #define R_PPC64_REL14_BRNTAKEN R_PPC_REL14_BRNTAKEN 1767 #define R_PPC64_TOC16_LO_DS 64
1920 #define R_PPC64_GOT16 R_PPC_GOT16 1768 #define R_PPC64_PLTGOT16_DS 65
1921 #define R_PPC64_GOT16_LO R_PPC_GOT16_LO 1769 #define R_PPC64_PLTGOT16_LO_DS 66
1922 #define R_PPC64_GOT16_HI R_PPC_GOT16_HI 1770
1923 #define R_PPC64_GOT16_HA R_PPC_GOT16_HA 1771 #define R_PPC64_TLS 67
1924 1772 #define R_PPC64_DTPMOD64 68
1925 #define R_PPC64_COPY R_PPC_COPY 1773 #define R_PPC64_TPREL16 69
1926 #define R_PPC64_GLOB_DAT R_PPC_GLOB_DAT 1774 #define R_PPC64_TPREL16_LO 70
1927 #define R_PPC64_JMP_SLOT R_PPC_JMP_SLOT 1775 #define R_PPC64_TPREL16_HI 71
1928 #define R_PPC64_RELATIVE R_PPC_RELATIVE 1776 #define R_PPC64_TPREL16_HA 72
1929 1777 #define R_PPC64_TPREL64 73
1930 #define R_PPC64_UADDR32 R_PPC_UADDR32 1778 #define R_PPC64_DTPREL16 74
1931 #define R_PPC64_UADDR16 R_PPC_UADDR16 1779 #define R_PPC64_DTPREL16_LO 75
1932 #define R_PPC64_REL32 R_PPC_REL32 1780 #define R_PPC64_DTPREL16_HI 76
1933 #define R_PPC64_PLT32 R_PPC_PLT32 1781 #define R_PPC64_DTPREL16_HA 77
1934 #define R_PPC64_PLTREL32 R_PPC_PLTREL32 1782 #define R_PPC64_DTPREL64 78
1935 #define R_PPC64_PLT16_LO R_PPC_PLT16_LO 1783 #define R_PPC64_GOT_TLSGD16 79
1936 #define R_PPC64_PLT16_HI R_PPC_PLT16_HI 1784 #define R_PPC64_GOT_TLSGD16_LO 80
1937 #define R_PPC64_PLT16_HA R_PPC_PLT16_HA 1785 #define R_PPC64_GOT_TLSGD16_HI 81
1938 1786 #define R_PPC64_GOT_TLSGD16_HA 82
1939 #define R_PPC64_SECTOFF R_PPC_SECTOFF 1787 #define R_PPC64_GOT_TLSLD16 83
1940 #define R_PPC64_SECTOFF_LO R_PPC_SECTOFF_LO 1788 #define R_PPC64_GOT_TLSLD16_LO 84
1941 #define R_PPC64_SECTOFF_HI R_PPC_SECTOFF_HI 1789 #define R_PPC64_GOT_TLSLD16_HI 85
1942 #define R_PPC64_SECTOFF_HA R_PPC_SECTOFF_HA 1790 #define R_PPC64_GOT_TLSLD16_HA 86
1943 #define R_PPC64_ADDR30 37 1791 #define R_PPC64_GOT_TPREL16_DS 87
1944 #define R_PPC64_ADDR64 38
1945 #define R_PPC64_ADDR16_HIGHER 39
1946 #define R_PPC64_ADDR16_HIGHERA 40
1947 #define R_PPC64_ADDR16_HIGHEST 41
1948 #define R_PPC64_ADDR16_HIGHESTA 42
1949 #define R_PPC64_UADDR64 43
1950 #define R_PPC64_REL64 44
1951 #define R_PPC64_PLT64 45
1952 #define R_PPC64_PLTREL64 46
1953 #define R_PPC64_TOC16 47
1954 #define R_PPC64_TOC16_LO 48
1955 #define R_PPC64_TOC16_HI 49
1956 #define R_PPC64_TOC16_HA 50
1957 #define R_PPC64_TOC 51
1958 #define R_PPC64_PLTGOT16 52
1959 #define R_PPC64_PLTGOT16_LO 53
1960 #define R_PPC64_PLTGOT16_HI 54
1961 #define R_PPC64_PLTGOT16_HA 55
1962
1963 #define R_PPC64_ADDR16_DS 56
1964 #define R_PPC64_ADDR16_LO_DS 57
1965 #define R_PPC64_GOT16_DS 58
1966 #define R_PPC64_GOT16_LO_DS 59
1967 #define R_PPC64_PLT16_LO_DS 60
1968 #define R_PPC64_SECTOFF_DS 61
1969 #define R_PPC64_SECTOFF_LO_DS 62
1970 #define R_PPC64_TOC16_DS 63
1971 #define R_PPC64_TOC16_LO_DS 64
1972 #define R_PPC64_PLTGOT16_DS 65
1973 #define R_PPC64_PLTGOT16_LO_DS 66
1974
1975
1976 #define R_PPC64_TLS 67
1977 #define R_PPC64_DTPMOD64 68
1978 #define R_PPC64_TPREL16 69
1979 #define R_PPC64_TPREL16_LO 70
1980 #define R_PPC64_TPREL16_HI 71
1981 #define R_PPC64_TPREL16_HA 72
1982 #define R_PPC64_TPREL64 73
1983 #define R_PPC64_DTPREL16 74
1984 #define R_PPC64_DTPREL16_LO 75
1985 #define R_PPC64_DTPREL16_HI 76
1986 #define R_PPC64_DTPREL16_HA 77
1987 #define R_PPC64_DTPREL64 78
1988 #define R_PPC64_GOT_TLSGD16 79
1989 #define R_PPC64_GOT_TLSGD16_LO 80
1990 #define R_PPC64_GOT_TLSGD16_HI 81
1991 #define R_PPC64_GOT_TLSGD16_HA 82
1992 #define R_PPC64_GOT_TLSLD16 83
1993 #define R_PPC64_GOT_TLSLD16_LO 84
1994 #define R_PPC64_GOT_TLSLD16_HI 85
1995 #define R_PPC64_GOT_TLSLD16_HA 86
1996 #define R_PPC64_GOT_TPREL16_DS 87
1997 #define R_PPC64_GOT_TPREL16_LO_DS 88 1792 #define R_PPC64_GOT_TPREL16_LO_DS 88
1998 #define R_PPC64_GOT_TPREL16_HI» 89 1793 #define R_PPC64_GOT_TPREL16_HI 89
1999 #define R_PPC64_GOT_TPREL16_HA» 90 1794 #define R_PPC64_GOT_TPREL16_HA 90
2000 #define R_PPC64_GOT_DTPREL16_DS»91 1795 #define R_PPC64_GOT_DTPREL16_DS 91
2001 #define R_PPC64_GOT_DTPREL16_LO_DS 92 1796 #define R_PPC64_GOT_DTPREL16_LO_DS 92
2002 #define R_PPC64_GOT_DTPREL16_HI»93 1797 #define R_PPC64_GOT_DTPREL16_HI 93
2003 #define R_PPC64_GOT_DTPREL16_HA»94 1798 #define R_PPC64_GOT_DTPREL16_HA 94
2004 #define R_PPC64_TPREL16_DS» 95 1799 #define R_PPC64_TPREL16_DS 95
2005 #define R_PPC64_TPREL16_LO_DS» 96 1800 #define R_PPC64_TPREL16_LO_DS 96
2006 #define R_PPC64_TPREL16_HIGHER» 97 1801 #define R_PPC64_TPREL16_HIGHER 97
2007 #define R_PPC64_TPREL16_HIGHERA»98 1802 #define R_PPC64_TPREL16_HIGHERA 98
2008 #define R_PPC64_TPREL16_HIGHEST»99 1803 #define R_PPC64_TPREL16_HIGHEST 99
2009 #define R_PPC64_TPREL16_HIGHESTA 100 1804 #define R_PPC64_TPREL16_HIGHESTA 100
2010 #define R_PPC64_DTPREL16_DS» 101 1805 #define R_PPC64_DTPREL16_DS 101
2011 #define R_PPC64_DTPREL16_LO_DS» 102 1806 #define R_PPC64_DTPREL16_LO_DS 102
2012 #define R_PPC64_DTPREL16_HIGHER»103 1807 #define R_PPC64_DTPREL16_HIGHER 103
2013 #define R_PPC64_DTPREL16_HIGHERA 104 1808 #define R_PPC64_DTPREL16_HIGHERA 104
2014 #define R_PPC64_DTPREL16_HIGHEST 105 1809 #define R_PPC64_DTPREL16_HIGHEST 105
2015 #define R_PPC64_DTPREL16_HIGHESTA 106 1810 #define R_PPC64_DTPREL16_HIGHESTA 106
2016 1811
2017 1812 #define R_PPC64_JMP_IREL 247
2018 #define R_PPC64_JMP_IREL» 247 1813 #define R_PPC64_IRELATIVE 248
2019 #define R_PPC64_IRELATIVE» 248 1814 #define R_PPC64_REL16 249
2020 #define R_PPC64_REL16» » 249 1815 #define R_PPC64_REL16_LO 250
2021 #define R_PPC64_REL16_LO» 250 1816 #define R_PPC64_REL16_HI 251
2022 #define R_PPC64_REL16_HI» 251 1817 #define R_PPC64_REL16_HA 252
2023 #define R_PPC64_REL16_HA» 252 1818
2024 1819 #define DT_PPC64_GLINK (DT_LOPROC + 0)
2025 1820 #define DT_PPC64_OPD (DT_LOPROC + 1)
2026 #define DT_PPC64_GLINK (DT_LOPROC + 0) 1821 #define DT_PPC64_OPDSZ (DT_LOPROC + 2)
2027 #define DT_PPC64_OPD» (DT_LOPROC + 1) 1822 #define DT_PPC64_NUM 3
2028 #define DT_PPC64_OPDSZ» (DT_LOPROC + 2) 1823
2029 #define DT_PPC64_NUM 3 1824 #define EF_ARM_RELEXEC 0x01
2030 1825 #define EF_ARM_HASENTRY 0x02
2031 1826 #define EF_ARM_INTERWORK 0x04
2032 1827 #define EF_ARM_APCS_26 0x08
2033 1828 #define EF_ARM_APCS_FLOAT 0x10
2034 1829 #define EF_ARM_PIC 0x20
2035 #define EF_ARM_RELEXEC» » 0x01 1830 #define EF_ARM_ALIGN8 0x40
2036 #define EF_ARM_HASENTRY»» 0x02 1831 #define EF_ARM_NEW_ABI 0x80
2037 #define EF_ARM_INTERWORK» 0x04 1832 #define EF_ARM_OLD_ABI 0x100
2038 #define EF_ARM_APCS_26» » 0x08 1833 #define EF_ARM_SOFT_FLOAT 0x200
2039 #define EF_ARM_APCS_FLOAT» 0x10 1834 #define EF_ARM_VFP_FLOAT 0x400
2040 #define EF_ARM_PIC» » 0x20 1835 #define EF_ARM_MAVERICK_FLOAT 0x800
2041 #define EF_ARM_ALIGN8» » 0x40 1836
2042 #define EF_ARM_NEW_ABI» » 0x80 1837 #define EF_ARM_ABI_FLOAT_SOFT 0x200
2043 #define EF_ARM_OLD_ABI» » 0x100 1838 #define EF_ARM_ABI_FLOAT_HARD 0x400
2044 #define EF_ARM_SOFT_FLOAT» 0x200 1839
2045 #define EF_ARM_VFP_FLOAT» 0x400 1840 #define EF_ARM_SYMSARESORTED 0x04
2046 #define EF_ARM_MAVERICK_FLOAT» 0x800 1841 #define EF_ARM_DYNSYMSUSESEGIDX 0x08
2047 1842 #define EF_ARM_MAPSYMSFIRST 0x10
2048 #define EF_ARM_ABI_FLOAT_SOFT» 0x200 1843 #define EF_ARM_EABIMASK 0XFF000000
2049 #define EF_ARM_ABI_FLOAT_HARD» 0x400 1844
2050 1845 #define EF_ARM_BE8 0x00800000
2051 1846 #define EF_ARM_LE8 0x00400000
2052 #define EF_ARM_SYMSARESORTED» 0x04 1847
2053 #define EF_ARM_DYNSYMSUSESEGIDX»0x08 1848 #define EF_ARM_EABI_VERSION(flags) ((flags)&EF_ARM_EABIMASK)
2054 #define EF_ARM_MAPSYMSFIRST» 0x10 1849 #define EF_ARM_EABI_UNKNOWN 0x00000000
2055 #define EF_ARM_EABIMASK»» 0XFF000000 1850 #define EF_ARM_EABI_VER1 0x01000000
2056 1851 #define EF_ARM_EABI_VER2 0x02000000
2057 1852 #define EF_ARM_EABI_VER3 0x03000000
2058 #define EF_ARM_BE8» 0x00800000 1853 #define EF_ARM_EABI_VER4 0x04000000
2059 #define EF_ARM_LE8» 0x00400000 1854 #define EF_ARM_EABI_VER5 0x05000000
2060 1855
2061 #define EF_ARM_EABI_VERSION(flags)» ((flags) & EF_ARM_EABIMASK) 1856 #define STT_ARM_TFUNC STT_LOPROC
2062 #define EF_ARM_EABI_UNKNOWN» 0x00000000 1857 #define STT_ARM_16BIT STT_HIPROC
2063 #define EF_ARM_EABI_VER1» 0x01000000 1858
2064 #define EF_ARM_EABI_VER2» 0x02000000 1859 #define SHF_ARM_ENTRYSECT 0x10000000
2065 #define EF_ARM_EABI_VER3» 0x03000000 1860 #define SHF_ARM_COMDEF 0x80000000
2066 #define EF_ARM_EABI_VER4» 0x04000000 1861
2067 #define EF_ARM_EABI_VER5» 0x05000000 1862 #define PF_ARM_SB 0x10000000
2068 1863
2069 1864 #define PF_ARM_PI 0x20000000
2070 #define STT_ARM_TFUNC» » STT_LOPROC 1865 #define PF_ARM_ABS 0x40000000
2071 #define STT_ARM_16BIT» » STT_HIPROC 1866
2072 1867 #define PT_ARM_EXIDX (PT_LOPROC + 1)
2073 1868
2074 #define SHF_ARM_ENTRYSECT» 0x10000000 1869 #define SHT_ARM_EXIDX (SHT_LOPROC + 1)
2075 #define SHF_ARM_COMDEF» » 0x80000000 1870 #define SHT_ARM_PREEMPTMAP (SHT_LOPROC + 2)
2076 1871 #define SHT_ARM_ATTRIBUTES (SHT_LOPROC + 3)
2077 1872
2078 1873 #define R_AARCH64_NONE 0
2079 #define PF_ARM_SB» » 0x10000000 1874 #define R_AARCH64_ABS64 257
2080 1875 #define R_AARCH64_ABS32 258
2081 #define PF_ARM_PI» » 0x20000000 1876 #define R_AARCH64_ABS16 259
2082 #define PF_ARM_ABS» » 0x40000000 1877 #define R_AARCH64_PREL64 260
2083 1878 #define R_AARCH64_PREL32 261
2084 1879 #define R_AARCH64_PREL16 262
2085 #define PT_ARM_EXIDX» » (PT_LOPROC + 1) 1880 #define R_AARCH64_MOVW_UABS_G0 263
2086
2087
2088 #define SHT_ARM_EXIDX» » (SHT_LOPROC + 1)
2089 #define SHT_ARM_PREEMPTMAP» (SHT_LOPROC + 2)
2090 #define SHT_ARM_ATTRIBUTES» (SHT_LOPROC + 3)
2091
2092
2093 #define R_AARCH64_NONE 0
2094 #define R_AARCH64_ABS64 257
2095 #define R_AARCH64_ABS32 258
2096 #define R_AARCH64_ABS16»» 259
2097 #define R_AARCH64_PREL64» 260
2098 #define R_AARCH64_PREL32» 261
2099 #define R_AARCH64_PREL16» 262
2100 #define R_AARCH64_MOVW_UABS_G0» 263
2101 #define R_AARCH64_MOVW_UABS_G0_NC 264 1881 #define R_AARCH64_MOVW_UABS_G0_NC 264
2102 #define R_AARCH64_MOVW_UABS_G1» 265 1882 #define R_AARCH64_MOVW_UABS_G1 265
2103 #define R_AARCH64_MOVW_UABS_G1_NC 266 1883 #define R_AARCH64_MOVW_UABS_G1_NC 266
2104 #define R_AARCH64_MOVW_UABS_G2» 267 1884 #define R_AARCH64_MOVW_UABS_G2 267
2105 #define R_AARCH64_MOVW_UABS_G2_NC 268 1885 #define R_AARCH64_MOVW_UABS_G2_NC 268
2106 #define R_AARCH64_MOVW_UABS_G3» 269 1886 #define R_AARCH64_MOVW_UABS_G3 269
2107 #define R_AARCH64_MOVW_SABS_G0» 270 1887 #define R_AARCH64_MOVW_SABS_G0 270
2108 #define R_AARCH64_MOVW_SABS_G1» 271 1888 #define R_AARCH64_MOVW_SABS_G1 271
2109 #define R_AARCH64_MOVW_SABS_G2» 272 1889 #define R_AARCH64_MOVW_SABS_G2 272
2110 #define R_AARCH64_LD_PREL_LO19» 273 1890 #define R_AARCH64_LD_PREL_LO19 273
2111 #define R_AARCH64_ADR_PREL_LO21»274 1891 #define R_AARCH64_ADR_PREL_LO21 274
2112 #define R_AARCH64_ADR_PREL_PG_HI21 275 1892 #define R_AARCH64_ADR_PREL_PG_HI21 275
2113 #define R_AARCH64_ADR_PREL_PG_HI21_NC 276 1893 #define R_AARCH64_ADR_PREL_PG_HI21_NC 276
2114 #define R_AARCH64_ADD_ABS_LO12_NC 277 1894 #define R_AARCH64_ADD_ABS_LO12_NC 277
2115 #define R_AARCH64_LDST8_ABS_LO12_NC 278 1895 #define R_AARCH64_LDST8_ABS_LO12_NC 278
2116 #define R_AARCH64_TSTBR14» 279 1896 #define R_AARCH64_TSTBR14 279
2117 #define R_AARCH64_CONDBR19» 280 1897 #define R_AARCH64_CONDBR19 280
2118 #define R_AARCH64_JUMP26» 282 1898 #define R_AARCH64_JUMP26 282
2119 #define R_AARCH64_CALL26» 283 1899 #define R_AARCH64_CALL26 283
2120 #define R_AARCH64_LDST16_ABS_LO12_NC 284 1900 #define R_AARCH64_LDST16_ABS_LO12_NC 284
2121 #define R_AARCH64_LDST32_ABS_LO12_NC 285 1901 #define R_AARCH64_LDST32_ABS_LO12_NC 285
2122 #define R_AARCH64_LDST64_ABS_LO12_NC 286 1902 #define R_AARCH64_LDST64_ABS_LO12_NC 286
2123 #define R_AARCH64_MOVW_PREL_G0» 287 1903 #define R_AARCH64_MOVW_PREL_G0 287
2124 #define R_AARCH64_MOVW_PREL_G0_NC 288 1904 #define R_AARCH64_MOVW_PREL_G0_NC 288
2125 #define R_AARCH64_MOVW_PREL_G1» 289 1905 #define R_AARCH64_MOVW_PREL_G1 289
2126 #define R_AARCH64_MOVW_PREL_G1_NC 290 1906 #define R_AARCH64_MOVW_PREL_G1_NC 290
2127 #define R_AARCH64_MOVW_PREL_G2» 291 1907 #define R_AARCH64_MOVW_PREL_G2 291
2128 #define R_AARCH64_MOVW_PREL_G2_NC 292 1908 #define R_AARCH64_MOVW_PREL_G2_NC 292
2129 #define R_AARCH64_MOVW_PREL_G3» 293 1909 #define R_AARCH64_MOVW_PREL_G3 293
2130 #define R_AARCH64_LDST128_ABS_LO12_NC 299 1910 #define R_AARCH64_LDST128_ABS_LO12_NC 299
2131 #define R_AARCH64_MOVW_GOTOFF_G0 300 1911 #define R_AARCH64_MOVW_GOTOFF_G0 300
2132 #define R_AARCH64_MOVW_GOTOFF_G0_NC 301 1912 #define R_AARCH64_MOVW_GOTOFF_G0_NC 301
2133 #define R_AARCH64_MOVW_GOTOFF_G1 302 1913 #define R_AARCH64_MOVW_GOTOFF_G1 302
2134 #define R_AARCH64_MOVW_GOTOFF_G1_NC 303 1914 #define R_AARCH64_MOVW_GOTOFF_G1_NC 303
2135 #define R_AARCH64_MOVW_GOTOFF_G2 304 1915 #define R_AARCH64_MOVW_GOTOFF_G2 304
2136 #define R_AARCH64_MOVW_GOTOFF_G2_NC 305 1916 #define R_AARCH64_MOVW_GOTOFF_G2_NC 305
2137 #define R_AARCH64_MOVW_GOTOFF_G3 306 1917 #define R_AARCH64_MOVW_GOTOFF_G3 306
2138 #define R_AARCH64_GOTREL64» 307 1918 #define R_AARCH64_GOTREL64 307
2139 #define R_AARCH64_GOTREL32» 308 1919 #define R_AARCH64_GOTREL32 308
2140 #define R_AARCH64_GOT_LD_PREL19»309 1920 #define R_AARCH64_GOT_LD_PREL19 309
2141 #define R_AARCH64_LD64_GOTOFF_LO15 310 1921 #define R_AARCH64_LD64_GOTOFF_LO15 310
2142 #define R_AARCH64_ADR_GOT_PAGE» 311 1922 #define R_AARCH64_ADR_GOT_PAGE 311
2143 #define R_AARCH64_LD64_GOT_LO12_NC 312 1923 #define R_AARCH64_LD64_GOT_LO12_NC 312
2144 #define R_AARCH64_LD64_GOTPAGE_LO15 313 1924 #define R_AARCH64_LD64_GOTPAGE_LO15 313
2145 #define R_AARCH64_TLSGD_ADR_PREL21 512 1925 #define R_AARCH64_TLSGD_ADR_PREL21 512
2146 #define R_AARCH64_TLSGD_ADR_PAGE21 513 1926 #define R_AARCH64_TLSGD_ADR_PAGE21 513
2147 #define R_AARCH64_TLSGD_ADD_LO12_NC 514 1927 #define R_AARCH64_TLSGD_ADD_LO12_NC 514
2148 #define R_AARCH64_TLSGD_MOVW_G1»515 1928 #define R_AARCH64_TLSGD_MOVW_G1 515
2149 #define R_AARCH64_TLSGD_MOVW_G0_NC 516 1929 #define R_AARCH64_TLSGD_MOVW_G0_NC 516
2150 #define R_AARCH64_TLSLD_ADR_PREL21 517 1930 #define R_AARCH64_TLSLD_ADR_PREL21 517
2151 #define R_AARCH64_TLSLD_ADR_PAGE21 518 1931 #define R_AARCH64_TLSLD_ADR_PAGE21 518
2152 #define R_AARCH64_TLSLD_ADD_LO12_NC 519 1932 #define R_AARCH64_TLSLD_ADD_LO12_NC 519
2153 #define R_AARCH64_TLSLD_MOVW_G1»520 1933 #define R_AARCH64_TLSLD_MOVW_G1 520
2154 #define R_AARCH64_TLSLD_MOVW_G0_NC 521 1934 #define R_AARCH64_TLSLD_MOVW_G0_NC 521
2155 #define R_AARCH64_TLSLD_LD_PREL19 522 1935 #define R_AARCH64_TLSLD_LD_PREL19 522
2156 #define R_AARCH64_TLSLD_MOVW_DTPREL_G2 523 1936 #define R_AARCH64_TLSLD_MOVW_DTPREL_G2 523
2157 #define R_AARCH64_TLSLD_MOVW_DTPREL_G1 524 1937 #define R_AARCH64_TLSLD_MOVW_DTPREL_G1 524
2158 #define R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC 525 1938 #define R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC 525
2159 #define R_AARCH64_TLSLD_MOVW_DTPREL_G0 526 1939 #define R_AARCH64_TLSLD_MOVW_DTPREL_G0 526
2160 #define R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC 527 1940 #define R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC 527
2161 #define R_AARCH64_TLSLD_ADD_DTPREL_HI12 528 1941 #define R_AARCH64_TLSLD_ADD_DTPREL_HI12 528
2162 #define R_AARCH64_TLSLD_ADD_DTPREL_LO12 529 1942 #define R_AARCH64_TLSLD_ADD_DTPREL_LO12 529
2163 #define R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC 530 1943 #define R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC 530
(...skipping 26 matching lines...) Expand all
2190 #define R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC 557 1970 #define R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC 557
2191 #define R_AARCH64_TLSLE_LDST64_TPREL_LO12 558 1971 #define R_AARCH64_TLSLE_LDST64_TPREL_LO12 558
2192 #define R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC 559 1972 #define R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC 559
2193 #define R_AARCH64_TLSDESC_LD_PREL19 560 1973 #define R_AARCH64_TLSDESC_LD_PREL19 560
2194 #define R_AARCH64_TLSDESC_ADR_PREL21 561 1974 #define R_AARCH64_TLSDESC_ADR_PREL21 561
2195 #define R_AARCH64_TLSDESC_ADR_PAGE21 562 1975 #define R_AARCH64_TLSDESC_ADR_PAGE21 562
2196 #define R_AARCH64_TLSDESC_LD64_LO12 563 1976 #define R_AARCH64_TLSDESC_LD64_LO12 563
2197 #define R_AARCH64_TLSDESC_ADD_LO12 564 1977 #define R_AARCH64_TLSDESC_ADD_LO12 564
2198 #define R_AARCH64_TLSDESC_OFF_G1 565 1978 #define R_AARCH64_TLSDESC_OFF_G1 565
2199 #define R_AARCH64_TLSDESC_OFF_G0_NC 566 1979 #define R_AARCH64_TLSDESC_OFF_G0_NC 566
2200 #define R_AARCH64_TLSDESC_LDR» 567 1980 #define R_AARCH64_TLSDESC_LDR 567
2201 #define R_AARCH64_TLSDESC_ADD» 568 1981 #define R_AARCH64_TLSDESC_ADD 568
2202 #define R_AARCH64_TLSDESC_CALL» 569 1982 #define R_AARCH64_TLSDESC_CALL 569
2203 #define R_AARCH64_TLSLE_LDST128_TPREL_LO12 570 1983 #define R_AARCH64_TLSLE_LDST128_TPREL_LO12 570
2204 #define R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC 571 1984 #define R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC 571
2205 #define R_AARCH64_TLSLD_LDST128_DTPREL_LO12 572 1985 #define R_AARCH64_TLSLD_LDST128_DTPREL_LO12 572
2206 #define R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC 573 1986 #define R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC 573
2207 #define R_AARCH64_COPY 1024 1987 #define R_AARCH64_COPY 1024
2208 #define R_AARCH64_GLOB_DAT 1025 1988 #define R_AARCH64_GLOB_DAT 1025
2209 #define R_AARCH64_JUMP_SLOT 1026 1989 #define R_AARCH64_JUMP_SLOT 1026
2210 #define R_AARCH64_RELATIVE 1027 1990 #define R_AARCH64_RELATIVE 1027
2211 #define R_AARCH64_TLS_DTPMOD64 1028 1991 #define R_AARCH64_TLS_DTPMOD64 1028
2212 #define R_AARCH64_TLS_DTPREL64 1029 1992 #define R_AARCH64_TLS_DTPREL64 1029
2213 #define R_AARCH64_TLS_TPREL64 1030 1993 #define R_AARCH64_TLS_TPREL64 1030
2214 #define R_AARCH64_TLSDESC 1031 1994 #define R_AARCH64_TLSDESC 1031
2215 1995
2216 1996 #define R_ARM_NONE 0
2217 #define R_ARM_NONE 0 1997 #define R_ARM_PC24 1
2218 #define R_ARM_PC24 1 1998 #define R_ARM_ABS32 2
2219 #define R_ARM_ABS32 2 1999 #define R_ARM_REL32 3
2220 #define R_ARM_REL32 3 2000 #define R_ARM_PC13 4
2221 #define R_ARM_PC13 4 2001 #define R_ARM_ABS16 5
2222 #define R_ARM_ABS16 5 2002 #define R_ARM_ABS12 6
2223 #define R_ARM_ABS12 6 2003 #define R_ARM_THM_ABS5 7
2224 #define R_ARM_THM_ABS5 7 2004 #define R_ARM_ABS8 8
2225 #define R_ARM_ABS8 8 2005 #define R_ARM_SBREL32 9
2226 #define R_ARM_SBREL32 9 2006 #define R_ARM_THM_PC22 10
2227 #define R_ARM_THM_PC22 10 2007 #define R_ARM_THM_PC8 11
2228 #define R_ARM_THM_PC8 11 2008 #define R_ARM_AMP_VCALL9 12
2229 #define R_ARM_AMP_VCALL9 12 2009 #define R_ARM_TLS_DESC 13
2230 #define R_ARM_TLS_DESC 13 2010 #define R_ARM_THM_SWI8 14
2231 #define R_ARM_THM_SWI8 14 2011 #define R_ARM_XPC25 15
2232 #define R_ARM_XPC25 15 2012 #define R_ARM_THM_XPC22 16
2233 #define R_ARM_THM_XPC22 16 2013 #define R_ARM_TLS_DTPMOD32 17
2234 #define R_ARM_TLS_DTPMOD32 17 2014 #define R_ARM_TLS_DTPOFF32 18
2235 #define R_ARM_TLS_DTPOFF32 18 2015 #define R_ARM_TLS_TPOFF32 19
2236 #define R_ARM_TLS_TPOFF32 19 2016 #define R_ARM_COPY 20
2237 #define R_ARM_COPY 20 2017 #define R_ARM_GLOB_DAT 21
2238 #define R_ARM_GLOB_DAT 21 2018 #define R_ARM_JUMP_SLOT 22
2239 #define R_ARM_JUMP_SLOT 22 2019 #define R_ARM_RELATIVE 23
2240 #define R_ARM_RELATIVE 23 2020 #define R_ARM_GOTOFF 24
2241 #define R_ARM_GOTOFF 24 2021 #define R_ARM_GOTPC 25
2242 #define R_ARM_GOTPC 25 2022 #define R_ARM_GOT32 26
2243 #define R_ARM_GOT32 26 2023 #define R_ARM_PLT32 27
2244 #define R_ARM_PLT32 27 2024 #define R_ARM_CALL 28
2245 #define R_ARM_CALL 28 2025 #define R_ARM_JUMP24 29
2246 #define R_ARM_JUMP24 29 2026 #define R_ARM_THM_JUMP24 30
2247 #define R_ARM_THM_JUMP24 30 2027 #define R_ARM_BASE_ABS 31
2248 #define R_ARM_BASE_ABS 31 2028 #define R_ARM_ALU_PCREL_7_0 32
2249 #define R_ARM_ALU_PCREL_7_0 32 2029 #define R_ARM_ALU_PCREL_15_8 33
2250 #define R_ARM_ALU_PCREL_15_8 33 2030 #define R_ARM_ALU_PCREL_23_15 34
2251 #define R_ARM_ALU_PCREL_23_15 34 2031 #define R_ARM_LDR_SBREL_11_0 35
2252 #define R_ARM_LDR_SBREL_11_0 35 2032 #define R_ARM_ALU_SBREL_19_12 36
2253 #define R_ARM_ALU_SBREL_19_12 36 2033 #define R_ARM_ALU_SBREL_27_20 37
2254 #define R_ARM_ALU_SBREL_27_20 37 2034 #define R_ARM_TARGET1 38
2255 #define R_ARM_TARGET1 38 2035 #define R_ARM_SBREL31 39
2256 #define R_ARM_SBREL31 39 2036 #define R_ARM_V4BX 40
2257 #define R_ARM_V4BX 40 2037 #define R_ARM_TARGET2 41
2258 #define R_ARM_TARGET2 41 2038 #define R_ARM_PREL31 42
2259 #define R_ARM_PREL31 42 2039 #define R_ARM_MOVW_ABS_NC 43
2260 #define R_ARM_MOVW_ABS_NC 43 2040 #define R_ARM_MOVT_ABS 44
2261 #define R_ARM_MOVT_ABS 44 2041 #define R_ARM_MOVW_PREL_NC 45
2262 #define R_ARM_MOVW_PREL_NC 45 2042 #define R_ARM_MOVT_PREL 46
2263 #define R_ARM_MOVT_PREL 46 2043 #define R_ARM_THM_MOVW_ABS_NC 47
2264 #define R_ARM_THM_MOVW_ABS_NC 47 2044 #define R_ARM_THM_MOVT_ABS 48
2265 #define R_ARM_THM_MOVT_ABS 48 2045 #define R_ARM_THM_MOVW_PREL_NC 49
2266 #define R_ARM_THM_MOVW_PREL_NC 49 2046 #define R_ARM_THM_MOVT_PREL 50
2267 #define R_ARM_THM_MOVT_PREL 50 2047 #define R_ARM_THM_JUMP19 51
2268 #define R_ARM_THM_JUMP19 51 2048 #define R_ARM_THM_JUMP6 52
2269 #define R_ARM_THM_JUMP6 52 2049 #define R_ARM_THM_ALU_PREL_11_0 53
2270 #define R_ARM_THM_ALU_PREL_11_0 53 2050 #define R_ARM_THM_PC12 54
2271 #define R_ARM_THM_PC12 54 2051 #define R_ARM_ABS32_NOI 55
2272 #define R_ARM_ABS32_NOI 55 2052 #define R_ARM_REL32_NOI 56
2273 #define R_ARM_REL32_NOI 56 2053 #define R_ARM_ALU_PC_G0_NC 57
2274 #define R_ARM_ALU_PC_G0_NC 57 2054 #define R_ARM_ALU_PC_G0 58
2275 #define R_ARM_ALU_PC_G0 58 2055 #define R_ARM_ALU_PC_G1_NC 59
2276 #define R_ARM_ALU_PC_G1_NC 59 2056 #define R_ARM_ALU_PC_G1 60
2277 #define R_ARM_ALU_PC_G1 60 2057 #define R_ARM_ALU_PC_G2 61
2278 #define R_ARM_ALU_PC_G2 61 2058 #define R_ARM_LDR_PC_G1 62
2279 #define R_ARM_LDR_PC_G1 62 2059 #define R_ARM_LDR_PC_G2 63
2280 #define R_ARM_LDR_PC_G2 63 2060 #define R_ARM_LDRS_PC_G0 64
2281 #define R_ARM_LDRS_PC_G0 64 2061 #define R_ARM_LDRS_PC_G1 65
2282 #define R_ARM_LDRS_PC_G1 65 2062 #define R_ARM_LDRS_PC_G2 66
2283 #define R_ARM_LDRS_PC_G2 66 2063 #define R_ARM_LDC_PC_G0 67
2284 #define R_ARM_LDC_PC_G0 67 2064 #define R_ARM_LDC_PC_G1 68
2285 #define R_ARM_LDC_PC_G1 68 2065 #define R_ARM_LDC_PC_G2 69
2286 #define R_ARM_LDC_PC_G2 69 2066 #define R_ARM_ALU_SB_G0_NC 70
2287 #define R_ARM_ALU_SB_G0_NC 70 2067 #define R_ARM_ALU_SB_G0 71
2288 #define R_ARM_ALU_SB_G0 71 2068 #define R_ARM_ALU_SB_G1_NC 72
2289 #define R_ARM_ALU_SB_G1_NC 72 2069 #define R_ARM_ALU_SB_G1 73
2290 #define R_ARM_ALU_SB_G1 73 2070 #define R_ARM_ALU_SB_G2 74
2291 #define R_ARM_ALU_SB_G2 74 2071 #define R_ARM_LDR_SB_G0 75
2292 #define R_ARM_LDR_SB_G0 75 2072 #define R_ARM_LDR_SB_G1 76
2293 #define R_ARM_LDR_SB_G1 76 2073 #define R_ARM_LDR_SB_G2 77
2294 #define R_ARM_LDR_SB_G2 77 2074 #define R_ARM_LDRS_SB_G0 78
2295 #define R_ARM_LDRS_SB_G0 78 2075 #define R_ARM_LDRS_SB_G1 79
2296 #define R_ARM_LDRS_SB_G1 79 2076 #define R_ARM_LDRS_SB_G2 80
2297 #define R_ARM_LDRS_SB_G2 80 2077 #define R_ARM_LDC_SB_G0 81
2298 #define R_ARM_LDC_SB_G0 81 2078 #define R_ARM_LDC_SB_G1 82
2299 #define R_ARM_LDC_SB_G1 82 2079 #define R_ARM_LDC_SB_G2 83
2300 #define R_ARM_LDC_SB_G2 83 2080 #define R_ARM_MOVW_BREL_NC 84
2301 #define R_ARM_MOVW_BREL_NC 84 2081 #define R_ARM_MOVT_BREL 85
2302 #define R_ARM_MOVT_BREL 85 2082 #define R_ARM_MOVW_BREL 86
2303 #define R_ARM_MOVW_BREL 86 2083 #define R_ARM_THM_MOVW_BREL_NC 87
2304 #define R_ARM_THM_MOVW_BREL_NC 87 2084 #define R_ARM_THM_MOVT_BREL 88
2305 #define R_ARM_THM_MOVT_BREL 88 2085 #define R_ARM_THM_MOVW_BREL 89
2306 #define R_ARM_THM_MOVW_BREL 89 2086 #define R_ARM_TLS_GOTDESC 90
2307 #define R_ARM_TLS_GOTDESC 90 2087 #define R_ARM_TLS_CALL 91
2308 #define R_ARM_TLS_CALL 91 2088 #define R_ARM_TLS_DESCSEQ 92
2309 #define R_ARM_TLS_DESCSEQ 92 2089 #define R_ARM_THM_TLS_CALL 93
2310 #define R_ARM_THM_TLS_CALL 93 2090 #define R_ARM_PLT32_ABS 94
2311 #define R_ARM_PLT32_ABS 94 2091 #define R_ARM_GOT_ABS 95
2312 #define R_ARM_GOT_ABS 95 2092 #define R_ARM_GOT_PREL 96
2313 #define R_ARM_GOT_PREL 96 2093 #define R_ARM_GOT_BREL12 97
2314 #define R_ARM_GOT_BREL12 97 2094 #define R_ARM_GOTOFF12 98
2315 #define R_ARM_GOTOFF12 98 2095 #define R_ARM_GOTRELAX 99
2316 #define R_ARM_GOTRELAX 99 2096 #define R_ARM_GNU_VTENTRY 100
2317 #define R_ARM_GNU_VTENTRY 100 2097 #define R_ARM_GNU_VTINHERIT 101
2318 #define R_ARM_GNU_VTINHERIT 101 2098 #define R_ARM_THM_PC11 102
2319 #define R_ARM_THM_PC11 102 2099 #define R_ARM_THM_PC9 103
2320 #define R_ARM_THM_PC9 103 2100 #define R_ARM_TLS_GD32 104
2321 #define R_ARM_TLS_GD32 104 2101
2322 2102 #define R_ARM_TLS_LDM32 105
2323 #define R_ARM_TLS_LDM32 105 2103
2324 2104 #define R_ARM_TLS_LDO32 106
2325 #define R_ARM_TLS_LDO32 106 2105
2326 2106 #define R_ARM_TLS_IE32 107
2327 #define R_ARM_TLS_IE32 107 2107
2328 2108 #define R_ARM_TLS_LE32 108
2329 #define R_ARM_TLS_LE32 108 2109 #define R_ARM_TLS_LDO12 109
2330 #define R_ARM_TLS_LDO12 109 2110 #define R_ARM_TLS_LE12 110
2331 #define R_ARM_TLS_LE12 110 2111 #define R_ARM_TLS_IE12GP 111
2332 #define R_ARM_TLS_IE12GP 111 2112 #define R_ARM_ME_TOO 128
2333 #define R_ARM_ME_TOO 128 2113 #define R_ARM_THM_TLS_DESCSEQ 129
2334 #define R_ARM_THM_TLS_DESCSEQ 129 2114 #define R_ARM_THM_TLS_DESCSEQ16 129
2335 #define R_ARM_THM_TLS_DESCSEQ16 129 2115 #define R_ARM_THM_TLS_DESCSEQ32 130
2336 #define R_ARM_THM_TLS_DESCSEQ32 130 2116 #define R_ARM_THM_GOT_BREL12 131
2337 #define R_ARM_THM_GOT_BREL12 131 2117 #define R_ARM_IRELATIVE 160
2338 #define R_ARM_IRELATIVE 160 2118 #define R_ARM_RXPC25 249
2339 #define R_ARM_RXPC25 249 2119 #define R_ARM_RSBREL32 250
2340 #define R_ARM_RSBREL32 250 2120 #define R_ARM_THM_RPC22 251
2341 #define R_ARM_THM_RPC22 251 2121 #define R_ARM_RREL32 252
2342 #define R_ARM_RREL32 252 2122 #define R_ARM_RABS22 253
2343 #define R_ARM_RABS22 253 2123 #define R_ARM_RPC24 254
2344 #define R_ARM_RPC24 254 2124 #define R_ARM_RBASE 255
2345 #define R_ARM_RBASE 255 2125
2346 2126 #define R_ARM_NUM 256
2347 #define R_ARM_NUM 256 2127
2348 2128 #define EF_IA_64_MASKOS 0x0000000f
2349 2129 #define EF_IA_64_ABI64 0x00000010
2350 2130 #define EF_IA_64_ARCH 0xff000000
2351 2131
2352 #define EF_IA_64_MASKOS 0x0000000f 2132 #define PT_IA_64_ARCHEXT (PT_LOPROC + 0)
2353 #define EF_IA_64_ABI64 0x00000010 2133 #define PT_IA_64_UNWIND (PT_LOPROC + 1)
2354 #define EF_IA_64_ARCH 0xff000000 2134 #define PT_IA_64_HP_OPT_ANOT (PT_LOOS + 0x12)
2355 2135 #define PT_IA_64_HP_HSL_ANOT (PT_LOOS + 0x13)
2356 2136 #define PT_IA_64_HP_STACK (PT_LOOS + 0x14)
2357 #define PT_IA_64_ARCHEXT (PT_LOPROC + 0) 2137
2358 #define PT_IA_64_UNWIND (PT_LOPROC + 1) 2138 #define PF_IA_64_NORECOV 0x80000000
2359 #define PT_IA_64_HP_OPT_ANOT (PT_LOOS + 0x12) 2139
2360 #define PT_IA_64_HP_HSL_ANOT (PT_LOOS + 0x13) 2140 #define SHT_IA_64_EXT (SHT_LOPROC + 0)
2361 #define PT_IA_64_HP_STACK (PT_LOOS + 0x14) 2141 #define SHT_IA_64_UNWIND (SHT_LOPROC + 1)
2362 2142
2363 2143 #define SHF_IA_64_SHORT 0x10000000
2364 #define PF_IA_64_NORECOV 0x80000000 2144 #define SHF_IA_64_NORECOV 0x20000000
2365 2145
2366 2146 #define DT_IA_64_PLT_RESERVE (DT_LOPROC + 0)
2367 #define SHT_IA_64_EXT (SHT_LOPROC + 0) 2147 #define DT_IA_64_NUM 1
2368 #define SHT_IA_64_UNWIND (SHT_LOPROC + 1) 2148
2369 2149 #define R_IA64_NONE 0x00
2370 2150 #define R_IA64_IMM14 0x21
2371 #define SHF_IA_64_SHORT 0x10000000 2151 #define R_IA64_IMM22 0x22
2372 #define SHF_IA_64_NORECOV 0x20000000 2152 #define R_IA64_IMM64 0x23
2373 2153 #define R_IA64_DIR32MSB 0x24
2374 2154 #define R_IA64_DIR32LSB 0x25
2375 #define DT_IA_64_PLT_RESERVE (DT_LOPROC + 0) 2155 #define R_IA64_DIR64MSB 0x26
2376 #define DT_IA_64_NUM 1 2156 #define R_IA64_DIR64LSB 0x27
2377 2157 #define R_IA64_GPREL22 0x2a
2378 2158 #define R_IA64_GPREL64I 0x2b
2379 #define R_IA64_NONE 0x00 2159 #define R_IA64_GPREL32MSB 0x2c
2380 #define R_IA64_IMM14 0x21 2160 #define R_IA64_GPREL32LSB 0x2d
2381 #define R_IA64_IMM22 0x22 2161 #define R_IA64_GPREL64MSB 0x2e
2382 #define R_IA64_IMM64 0x23 2162 #define R_IA64_GPREL64LSB 0x2f
2383 #define R_IA64_DIR32MSB 0x24 2163 #define R_IA64_LTOFF22 0x32
2384 #define R_IA64_DIR32LSB 0x25 2164 #define R_IA64_LTOFF64I 0x33
2385 #define R_IA64_DIR64MSB 0x26 2165 #define R_IA64_PLTOFF22 0x3a
2386 #define R_IA64_DIR64LSB 0x27 2166 #define R_IA64_PLTOFF64I 0x3b
2387 #define R_IA64_GPREL22 0x2a 2167 #define R_IA64_PLTOFF64MSB 0x3e
2388 #define R_IA64_GPREL64I 0x2b 2168 #define R_IA64_PLTOFF64LSB 0x3f
2389 #define R_IA64_GPREL32MSB 0x2c 2169 #define R_IA64_FPTR64I 0x43
2390 #define R_IA64_GPREL32LSB 0x2d 2170 #define R_IA64_FPTR32MSB 0x44
2391 #define R_IA64_GPREL64MSB 0x2e 2171 #define R_IA64_FPTR32LSB 0x45
2392 #define R_IA64_GPREL64LSB 0x2f 2172 #define R_IA64_FPTR64MSB 0x46
2393 #define R_IA64_LTOFF22 0x32 2173 #define R_IA64_FPTR64LSB 0x47
2394 #define R_IA64_LTOFF64I 0x33 2174 #define R_IA64_PCREL60B 0x48
2395 #define R_IA64_PLTOFF22 0x3a 2175 #define R_IA64_PCREL21B 0x49
2396 #define R_IA64_PLTOFF64I 0x3b 2176 #define R_IA64_PCREL21M 0x4a
2397 #define R_IA64_PLTOFF64MSB 0x3e 2177 #define R_IA64_PCREL21F 0x4b
2398 #define R_IA64_PLTOFF64LSB 0x3f 2178 #define R_IA64_PCREL32MSB 0x4c
2399 #define R_IA64_FPTR64I 0x43 2179 #define R_IA64_PCREL32LSB 0x4d
2400 #define R_IA64_FPTR32MSB 0x44 2180 #define R_IA64_PCREL64MSB 0x4e
2401 #define R_IA64_FPTR32LSB 0x45 2181 #define R_IA64_PCREL64LSB 0x4f
2402 #define R_IA64_FPTR64MSB 0x46 2182 #define R_IA64_LTOFF_FPTR22 0x52
2403 #define R_IA64_FPTR64LSB 0x47 2183 #define R_IA64_LTOFF_FPTR64I 0x53
2404 #define R_IA64_PCREL60B 0x48 2184 #define R_IA64_LTOFF_FPTR32MSB 0x54
2405 #define R_IA64_PCREL21B 0x49 2185 #define R_IA64_LTOFF_FPTR32LSB 0x55
2406 #define R_IA64_PCREL21M 0x4a 2186 #define R_IA64_LTOFF_FPTR64MSB 0x56
2407 #define R_IA64_PCREL21F 0x4b 2187 #define R_IA64_LTOFF_FPTR64LSB 0x57
2408 #define R_IA64_PCREL32MSB 0x4c 2188 #define R_IA64_SEGREL32MSB 0x5c
2409 #define R_IA64_PCREL32LSB 0x4d 2189 #define R_IA64_SEGREL32LSB 0x5d
2410 #define R_IA64_PCREL64MSB 0x4e 2190 #define R_IA64_SEGREL64MSB 0x5e
2411 #define R_IA64_PCREL64LSB 0x4f 2191 #define R_IA64_SEGREL64LSB 0x5f
2412 #define R_IA64_LTOFF_FPTR22 0x52 2192 #define R_IA64_SECREL32MSB 0x64
2413 #define R_IA64_LTOFF_FPTR64I 0x53 2193 #define R_IA64_SECREL32LSB 0x65
2414 #define R_IA64_LTOFF_FPTR32MSB 0x54 2194 #define R_IA64_SECREL64MSB 0x66
2415 #define R_IA64_LTOFF_FPTR32LSB 0x55 2195 #define R_IA64_SECREL64LSB 0x67
2416 #define R_IA64_LTOFF_FPTR64MSB 0x56 2196 #define R_IA64_REL32MSB 0x6c
2417 #define R_IA64_LTOFF_FPTR64LSB 0x57 2197 #define R_IA64_REL32LSB 0x6d
2418 #define R_IA64_SEGREL32MSB 0x5c 2198 #define R_IA64_REL64MSB 0x6e
2419 #define R_IA64_SEGREL32LSB 0x5d 2199 #define R_IA64_REL64LSB 0x6f
2420 #define R_IA64_SEGREL64MSB 0x5e 2200 #define R_IA64_LTV32MSB 0x74
2421 #define R_IA64_SEGREL64LSB 0x5f 2201 #define R_IA64_LTV32LSB 0x75
2422 #define R_IA64_SECREL32MSB 0x64 2202 #define R_IA64_LTV64MSB 0x76
2423 #define R_IA64_SECREL32LSB 0x65 2203 #define R_IA64_LTV64LSB 0x77
2424 #define R_IA64_SECREL64MSB 0x66 2204 #define R_IA64_PCREL21BI 0x79
2425 #define R_IA64_SECREL64LSB 0x67 2205 #define R_IA64_PCREL22 0x7a
2426 #define R_IA64_REL32MSB 0x6c 2206 #define R_IA64_PCREL64I 0x7b
2427 #define R_IA64_REL32LSB 0x6d 2207 #define R_IA64_IPLTMSB 0x80
2428 #define R_IA64_REL64MSB 0x6e 2208 #define R_IA64_IPLTLSB 0x81
2429 #define R_IA64_REL64LSB 0x6f 2209 #define R_IA64_COPY 0x84
2430 #define R_IA64_LTV32MSB 0x74 2210 #define R_IA64_SUB 0x85
2431 #define R_IA64_LTV32LSB 0x75 2211 #define R_IA64_LTOFF22X 0x86
2432 #define R_IA64_LTV64MSB 0x76 2212 #define R_IA64_LDXMOV 0x87
2433 #define R_IA64_LTV64LSB 0x77 2213 #define R_IA64_TPREL14 0x91
2434 #define R_IA64_PCREL21BI 0x79 2214 #define R_IA64_TPREL22 0x92
2435 #define R_IA64_PCREL22 0x7a 2215 #define R_IA64_TPREL64I 0x93
2436 #define R_IA64_PCREL64I 0x7b 2216 #define R_IA64_TPREL64MSB 0x96
2437 #define R_IA64_IPLTMSB 0x80 2217 #define R_IA64_TPREL64LSB 0x97
2438 #define R_IA64_IPLTLSB 0x81 2218 #define R_IA64_LTOFF_TPREL22 0x9a
2439 #define R_IA64_COPY 0x84 2219 #define R_IA64_DTPMOD64MSB 0xa6
2440 #define R_IA64_SUB 0x85 2220 #define R_IA64_DTPMOD64LSB 0xa7
2441 #define R_IA64_LTOFF22X 0x86 2221 #define R_IA64_LTOFF_DTPMOD22 0xaa
2442 #define R_IA64_LDXMOV 0x87 2222 #define R_IA64_DTPREL14 0xb1
2443 #define R_IA64_TPREL14 0x91 2223 #define R_IA64_DTPREL22 0xb2
2444 #define R_IA64_TPREL22 0x92 2224 #define R_IA64_DTPREL64I 0xb3
2445 #define R_IA64_TPREL64I 0x93 2225 #define R_IA64_DTPREL32MSB 0xb4
2446 #define R_IA64_TPREL64MSB 0x96 2226 #define R_IA64_DTPREL32LSB 0xb5
2447 #define R_IA64_TPREL64LSB 0x97 2227 #define R_IA64_DTPREL64MSB 0xb6
2448 #define R_IA64_LTOFF_TPREL22 0x9a 2228 #define R_IA64_DTPREL64LSB 0xb7
2449 #define R_IA64_DTPMOD64MSB 0xa6 2229 #define R_IA64_LTOFF_DTPREL22 0xba
2450 #define R_IA64_DTPMOD64LSB 0xa7 2230
2451 #define R_IA64_LTOFF_DTPMOD22 0xaa 2231 #define R_SH_NONE 0
2452 #define R_IA64_DTPREL14 0xb1 2232 #define R_SH_DIR32 1
2453 #define R_IA64_DTPREL22 0xb2 2233 #define R_SH_REL32 2
2454 #define R_IA64_DTPREL64I 0xb3 2234 #define R_SH_DIR8WPN 3
2455 #define R_IA64_DTPREL32MSB 0xb4 2235 #define R_SH_IND12W 4
2456 #define R_IA64_DTPREL32LSB 0xb5 2236 #define R_SH_DIR8WPL 5
2457 #define R_IA64_DTPREL64MSB 0xb6 2237 #define R_SH_DIR8WPZ 6
2458 #define R_IA64_DTPREL64LSB 0xb7 2238 #define R_SH_DIR8BP 7
2459 #define R_IA64_LTOFF_DTPREL22 0xba 2239 #define R_SH_DIR8W 8
2460 2240 #define R_SH_DIR8L 9
2461 2241 #define R_SH_SWITCH16 25
2462 2242 #define R_SH_SWITCH32 26
2463 2243 #define R_SH_USES 27
2464 #define R_SH_NONE 0 2244 #define R_SH_COUNT 28
2465 #define R_SH_DIR32 1 2245 #define R_SH_ALIGN 29
2466 #define R_SH_REL32 2 2246 #define R_SH_CODE 30
2467 #define R_SH_DIR8WPN 3 2247 #define R_SH_DATA 31
2468 #define R_SH_IND12W 4 2248 #define R_SH_LABEL 32
2469 #define R_SH_DIR8WPL 5 2249 #define R_SH_SWITCH8 33
2470 #define R_SH_DIR8WPZ 6 2250 #define R_SH_GNU_VTINHERIT 34
2471 #define R_SH_DIR8BP 7 2251 #define R_SH_GNU_VTENTRY 35
2472 #define R_SH_DIR8W 8 2252 #define R_SH_TLS_GD_32 144
2473 #define R_SH_DIR8L 9 2253 #define R_SH_TLS_LD_32 145
2474 #define R_SH_SWITCH16 25 2254 #define R_SH_TLS_LDO_32 146
2475 #define R_SH_SWITCH32 26 2255 #define R_SH_TLS_IE_32 147
2476 #define R_SH_USES 27 2256 #define R_SH_TLS_LE_32 148
2477 #define R_SH_COUNT 28 2257 #define R_SH_TLS_DTPMOD32 149
2478 #define R_SH_ALIGN 29 2258 #define R_SH_TLS_DTPOFF32 150
2479 #define R_SH_CODE 30 2259 #define R_SH_TLS_TPOFF32 151
2480 #define R_SH_DATA 31 2260 #define R_SH_GOT32 160
2481 #define R_SH_LABEL 32 2261 #define R_SH_PLT32 161
2482 #define R_SH_SWITCH8 33 2262 #define R_SH_COPY 162
2483 #define R_SH_GNU_VTINHERIT 34 2263 #define R_SH_GLOB_DAT 163
2484 #define R_SH_GNU_VTENTRY 35 2264 #define R_SH_JMP_SLOT 164
2485 #define R_SH_TLS_GD_32 144 2265 #define R_SH_RELATIVE 165
2486 #define R_SH_TLS_LD_32 145 2266 #define R_SH_GOTOFF 166
2487 #define R_SH_TLS_LDO_32 146 2267 #define R_SH_GOTPC 167
2488 #define R_SH_TLS_IE_32 147 2268 #define R_SH_GOT20 201
2489 #define R_SH_TLS_LE_32 148 2269 #define R_SH_GOTOFF20 202
2490 #define R_SH_TLS_DTPMOD32 149 2270 #define R_SH_GOTFUNCDESC 203
2491 #define R_SH_TLS_DTPOFF32 150 2271 #define R_SH_GOTFUNCDEST20 204
2492 #define R_SH_TLS_TPOFF32 151 2272 #define R_SH_GOTOFFFUNCDESC 205
2493 #define R_SH_GOT32 160 2273 #define R_SH_GOTOFFFUNCDEST20 206
2494 #define R_SH_PLT32 161 2274 #define R_SH_FUNCDESC 207
2495 #define R_SH_COPY 162 2275 #define R_SH_FUNCDESC_VALUE 208
2496 #define R_SH_GLOB_DAT 163 2276
2497 #define R_SH_JMP_SLOT 164 2277 #define R_SH_NUM 256
2498 #define R_SH_RELATIVE 165 2278
2499 #define R_SH_GOTOFF 166 2279 #define R_390_NONE 0
2500 #define R_SH_GOTPC 167 2280 #define R_390_8 1
2501 #define R_SH_GOT20 201 2281 #define R_390_12 2
2502 #define R_SH_GOTOFF20 202 2282 #define R_390_16 3
2503 #define R_SH_GOTFUNCDESC 203 2283 #define R_390_32 4
2504 #define R_SH_GOTFUNCDEST20 204 2284 #define R_390_PC32 5
2505 #define R_SH_GOTOFFFUNCDESC 205 2285 #define R_390_GOT12 6
2506 #define R_SH_GOTOFFFUNCDEST20 206 2286 #define R_390_GOT32 7
2507 #define R_SH_FUNCDESC 207 2287 #define R_390_PLT32 8
2508 #define R_SH_FUNCDESC_VALUE 208 2288 #define R_390_COPY 9
2509 2289 #define R_390_GLOB_DAT 10
2510 #define R_SH_NUM 256 2290 #define R_390_JMP_SLOT 11
2511 2291 #define R_390_RELATIVE 12
2512 2292 #define R_390_GOTOFF32 13
2513 2293 #define R_390_GOTPC 14
2514 #define R_390_NONE 0 2294 #define R_390_GOT16 15
2515 #define R_390_8 1 2295 #define R_390_PC16 16
2516 #define R_390_12 2 2296 #define R_390_PC16DBL 17
2517 #define R_390_16 3 2297 #define R_390_PLT16DBL 18
2518 #define R_390_32 4 2298 #define R_390_PC32DBL 19
2519 #define R_390_PC32 5 2299 #define R_390_PLT32DBL 20
2520 #define R_390_GOT12 6 2300 #define R_390_GOTPCDBL 21
2521 #define R_390_GOT32 7 2301 #define R_390_64 22
2522 #define R_390_PLT32 8 2302 #define R_390_PC64 23
2523 #define R_390_COPY 9 2303 #define R_390_GOT64 24
2524 #define R_390_GLOB_DAT 10 2304 #define R_390_PLT64 25
2525 #define R_390_JMP_SLOT 11 2305 #define R_390_GOTENT 26
2526 #define R_390_RELATIVE 12 2306 #define R_390_GOTOFF16 27
2527 #define R_390_GOTOFF32 13 2307 #define R_390_GOTOFF64 28
2528 #define R_390_GOTPC 14 2308 #define R_390_GOTPLT12 29
2529 #define R_390_GOT16 15 2309 #define R_390_GOTPLT16 30
2530 #define R_390_PC16 16 2310 #define R_390_GOTPLT32 31
2531 #define R_390_PC16DBL 17 2311 #define R_390_GOTPLT64 32
2532 #define R_390_PLT16DBL 18 2312 #define R_390_GOTPLTENT 33
2533 #define R_390_PC32DBL 19 2313 #define R_390_PLTOFF16 34
2534 #define R_390_PLT32DBL 20 2314 #define R_390_PLTOFF32 35
2535 #define R_390_GOTPCDBL 21 2315 #define R_390_PLTOFF64 36
2536 #define R_390_64 22 2316 #define R_390_TLS_LOAD 37
2537 #define R_390_PC64 23 2317 #define R_390_TLS_GDCALL 38
2538 #define R_390_GOT64 24 2318
2539 #define R_390_PLT64 25 2319 #define R_390_TLS_LDCALL 39
2540 #define R_390_GOTENT 26 2320
2541 #define R_390_GOTOFF16 27 2321 #define R_390_TLS_GD32 40
2542 #define R_390_GOTOFF64 28 2322
2543 #define R_390_GOTPLT12 29 2323 #define R_390_TLS_GD64 41
2544 #define R_390_GOTPLT16 30 2324
2545 #define R_390_GOTPLT32 31 2325 #define R_390_TLS_GOTIE12 42
2546 #define R_390_GOTPLT64 32 2326
2547 #define R_390_GOTPLTENT 33 2327 #define R_390_TLS_GOTIE32 43
2548 #define R_390_PLTOFF16 34 2328
2549 #define R_390_PLTOFF32 35 2329 #define R_390_TLS_GOTIE64 44
2550 #define R_390_PLTOFF64 36 2330
2551 #define R_390_TLS_LOAD 37 2331 #define R_390_TLS_LDM32 45
2552 #define R_390_TLS_GDCALL 38 2332
2553 2333 #define R_390_TLS_LDM64 46
2554 #define R_390_TLS_LDCALL 39 2334
2555 2335 #define R_390_TLS_IE32 47
2556 #define R_390_TLS_GD32 40 2336
2557 2337 #define R_390_TLS_IE64 48
2558 #define R_390_TLS_GD64 41 2338
2559 2339 #define R_390_TLS_IEENT 49
2560 #define R_390_TLS_GOTIE12 42 2340
2561 2341 #define R_390_TLS_LE32 50
2562 #define R_390_TLS_GOTIE32 43 2342
2563 2343 #define R_390_TLS_LE64 51
2564 #define R_390_TLS_GOTIE64 44 2344
2565 2345 #define R_390_TLS_LDO32 52
2566 #define R_390_TLS_LDM32 45 2346
2567 2347 #define R_390_TLS_LDO64 53
2568 #define R_390_TLS_LDM64 46 2348
2569 2349 #define R_390_TLS_DTPMOD 54
2570 #define R_390_TLS_IE32 47 2350 #define R_390_TLS_DTPOFF 55
2571 2351 #define R_390_TLS_TPOFF 56
2572 #define R_390_TLS_IE64 48 2352
2573 2353 #define R_390_20 57
2574 #define R_390_TLS_IEENT 49 2354 #define R_390_GOT20 58
2575 2355 #define R_390_GOTPLT20 59
2576 #define R_390_TLS_LE32 50 2356 #define R_390_TLS_GOTIE20 60
2577 2357
2578 #define R_390_TLS_LE64 51 2358 #define R_390_NUM 61
2579 2359
2580 #define R_390_TLS_LDO32 52 2360 #define R_CRIS_NONE 0
2581 2361 #define R_CRIS_8 1
2582 #define R_390_TLS_LDO64 53 2362 #define R_CRIS_16 2
2583 2363 #define R_CRIS_32 3
2584 #define R_390_TLS_DTPMOD 54 2364 #define R_CRIS_8_PCREL 4
2585 #define R_390_TLS_DTPOFF 55 2365 #define R_CRIS_16_PCREL 5
2586 #define R_390_TLS_TPOFF 56 2366 #define R_CRIS_32_PCREL 6
2587 2367 #define R_CRIS_GNU_VTINHERIT 7
2588 #define R_390_20 57 2368 #define R_CRIS_GNU_VTENTRY 8
2589 #define R_390_GOT20 58 2369 #define R_CRIS_COPY 9
2590 #define R_390_GOTPLT20 59 2370 #define R_CRIS_GLOB_DAT 10
2591 #define R_390_TLS_GOTIE20 60 2371 #define R_CRIS_JUMP_SLOT 11
2592 2372 #define R_CRIS_RELATIVE 12
2593 2373 #define R_CRIS_16_GOT 13
2594 #define R_390_NUM 61 2374 #define R_CRIS_32_GOT 14
2595 2375 #define R_CRIS_16_GOTPLT 15
2596 2376 #define R_CRIS_32_GOTPLT 16
2597 2377 #define R_CRIS_32_GOTREL 17
2598 #define R_CRIS_NONE 0 2378 #define R_CRIS_32_PLT_GOTREL 18
2599 #define R_CRIS_8 1 2379 #define R_CRIS_32_PLT_PCREL 19
2600 #define R_CRIS_16 2 2380
2601 #define R_CRIS_32 3 2381 #define R_CRIS_NUM 20
2602 #define R_CRIS_8_PCREL 4 2382
2603 #define R_CRIS_16_PCREL 5 2383 #define R_X86_64_NONE 0
2604 #define R_CRIS_32_PCREL 6 2384 #define R_X86_64_64 1
2605 #define R_CRIS_GNU_VTINHERIT 7 2385 #define R_X86_64_PC32 2
2606 #define R_CRIS_GNU_VTENTRY 8 2386 #define R_X86_64_GOT32 3
2607 #define R_CRIS_COPY 9 2387 #define R_X86_64_PLT32 4
2608 #define R_CRIS_GLOB_DAT 10 2388 #define R_X86_64_COPY 5
2609 #define R_CRIS_JUMP_SLOT 11 2389 #define R_X86_64_GLOB_DAT 6
2610 #define R_CRIS_RELATIVE 12 2390 #define R_X86_64_JUMP_SLOT 7
2611 #define R_CRIS_16_GOT 13 2391 #define R_X86_64_RELATIVE 8
2612 #define R_CRIS_32_GOT 14 2392 #define R_X86_64_GOTPCREL 9
2613 #define R_CRIS_16_GOTPLT 15 2393
2614 #define R_CRIS_32_GOTPLT 16 2394 #define R_X86_64_32 10
2615 #define R_CRIS_32_GOTREL 17 2395 #define R_X86_64_32S 11
2616 #define R_CRIS_32_PLT_GOTREL 18 2396 #define R_X86_64_16 12
2617 #define R_CRIS_32_PLT_PCREL 19 2397 #define R_X86_64_PC16 13
2618 2398 #define R_X86_64_8 14
2619 #define R_CRIS_NUM 20 2399 #define R_X86_64_PC8 15
2620 2400 #define R_X86_64_DTPMOD64 16
2621 2401 #define R_X86_64_DTPOFF64 17
2622 2402 #define R_X86_64_TPOFF64 18
2623 #define R_X86_64_NONE 0 2403 #define R_X86_64_TLSGD 19
2624 #define R_X86_64_64 1 2404
2625 #define R_X86_64_PC32 2 2405 #define R_X86_64_TLSLD 20
2626 #define R_X86_64_GOT32 3 2406
2627 #define R_X86_64_PLT32 4 2407 #define R_X86_64_DTPOFF32 21
2628 #define R_X86_64_COPY 5 2408 #define R_X86_64_GOTTPOFF 22
2629 #define R_X86_64_GLOB_DAT 6 2409
2630 #define R_X86_64_JUMP_SLOT 7 2410 #define R_X86_64_TPOFF32 23
2631 #define R_X86_64_RELATIVE 8 2411 #define R_X86_64_PC64 24
2632 #define R_X86_64_GOTPCREL 9 2412 #define R_X86_64_GOTOFF64 25
2633 2413 #define R_X86_64_GOTPC32 26
2634 #define R_X86_64_32 10 2414 #define R_X86_64_GOT64 27
2635 #define R_X86_64_32S 11 2415 #define R_X86_64_GOTPCREL64 28
2636 #define R_X86_64_16 12 2416 #define R_X86_64_GOTPC64 29
2637 #define R_X86_64_PC16 13 2417 #define R_X86_64_GOTPLT64 30
2638 #define R_X86_64_8 14 2418 #define R_X86_64_PLTOFF64 31
2639 #define R_X86_64_PC8 15 2419 #define R_X86_64_SIZE32 32
2640 #define R_X86_64_DTPMOD64 16 2420 #define R_X86_64_SIZE64 33
2641 #define R_X86_64_DTPOFF64 17
2642 #define R_X86_64_TPOFF64 18
2643 #define R_X86_64_TLSGD 19
2644
2645 #define R_X86_64_TLSLD 20
2646
2647 #define R_X86_64_DTPOFF32 21
2648 #define R_X86_64_GOTTPOFF 22
2649
2650 #define R_X86_64_TPOFF32 23
2651 #define R_X86_64_PC64 24
2652 #define R_X86_64_GOTOFF64 25
2653 #define R_X86_64_GOTPC32 26
2654 #define R_X86_64_GOT64 27
2655 #define R_X86_64_GOTPCREL64 28
2656 #define R_X86_64_GOTPC64 29
2657 #define R_X86_64_GOTPLT64 30
2658 #define R_X86_64_PLTOFF64 31
2659 #define R_X86_64_SIZE32 32
2660 #define R_X86_64_SIZE64 33
2661 2421
2662 #define R_X86_64_GOTPC32_TLSDESC 34 2422 #define R_X86_64_GOTPC32_TLSDESC 34
2663 #define R_X86_64_TLSDESC_CALL 35 2423 #define R_X86_64_TLSDESC_CALL 35
2664 2424
2665 #define R_X86_64_TLSDESC 36 2425 #define R_X86_64_TLSDESC 36
2666 #define R_X86_64_IRELATIVE» 37 2426 #define R_X86_64_IRELATIVE 37
2667 #define R_X86_64_RELATIVE64» 38 2427 #define R_X86_64_RELATIVE64 38
2668 #define R_X86_64_NUM» » 39 2428 #define R_X86_64_NUM 39
2669 2429
2670 2430 #define R_MN10300_NONE 0
2671 2431 #define R_MN10300_32 1
2672 #define R_MN10300_NONE» » 0 2432 #define R_MN10300_16 2
2673 #define R_MN10300_32» » 1 2433 #define R_MN10300_8 3
2674 #define R_MN10300_16» » 2 2434 #define R_MN10300_PCREL32 4
2675 #define R_MN10300_8» » 3 2435 #define R_MN10300_PCREL16 5
2676 #define R_MN10300_PCREL32» 4 2436 #define R_MN10300_PCREL8 6
2677 #define R_MN10300_PCREL16» 5 2437 #define R_MN10300_GNU_VTINHERIT 7
2678 #define R_MN10300_PCREL8» 6 2438 #define R_MN10300_GNU_VTENTRY 8
2679 #define R_MN10300_GNU_VTINHERIT»7 2439 #define R_MN10300_24 9
2680 #define R_MN10300_GNU_VTENTRY» 8 2440 #define R_MN10300_GOTPC32 10
2681 #define R_MN10300_24» » 9 2441 #define R_MN10300_GOTPC16 11
2682 #define R_MN10300_GOTPC32» 10 2442 #define R_MN10300_GOTOFF32 12
2683 #define R_MN10300_GOTPC16» 11 2443 #define R_MN10300_GOTOFF24 13
2684 #define R_MN10300_GOTOFF32» 12 2444 #define R_MN10300_GOTOFF16 14
2685 #define R_MN10300_GOTOFF24» 13 2445 #define R_MN10300_PLT32 15
2686 #define R_MN10300_GOTOFF16» 14 2446 #define R_MN10300_PLT16 16
2687 #define R_MN10300_PLT32»» 15 2447 #define R_MN10300_GOT32 17
2688 #define R_MN10300_PLT16»» 16 2448 #define R_MN10300_GOT24 18
2689 #define R_MN10300_GOT32»» 17 2449 #define R_MN10300_GOT16 19
2690 #define R_MN10300_GOT24»» 18 2450 #define R_MN10300_COPY 20
2691 #define R_MN10300_GOT16»» 19 2451 #define R_MN10300_GLOB_DAT 21
2692 #define R_MN10300_COPY» » 20 2452 #define R_MN10300_JMP_SLOT 22
2693 #define R_MN10300_GLOB_DAT» 21 2453 #define R_MN10300_RELATIVE 23
2694 #define R_MN10300_JMP_SLOT» 22 2454
2695 #define R_MN10300_RELATIVE» 23 2455 #define R_MN10300_NUM 24
2696 2456
2697 #define R_MN10300_NUM» » 24 2457 #define R_M32R_NONE 0
2698 2458 #define R_M32R_16 1
2699 2459 #define R_M32R_32 2
2700 2460 #define R_M32R_24 3
2701 #define R_M32R_NONE» » 0 2461 #define R_M32R_10_PCREL 4
2702 #define R_M32R_16» » 1 2462 #define R_M32R_18_PCREL 5
2703 #define R_M32R_32» » 2 2463 #define R_M32R_26_PCREL 6
2704 #define R_M32R_24» » 3 2464 #define R_M32R_HI16_ULO 7
2705 #define R_M32R_10_PCREL»» 4 2465 #define R_M32R_HI16_SLO 8
2706 #define R_M32R_18_PCREL»» 5 2466 #define R_M32R_LO16 9
2707 #define R_M32R_26_PCREL»» 6 2467 #define R_M32R_SDA16 10
2708 #define R_M32R_HI16_ULO»» 7 2468 #define R_M32R_GNU_VTINHERIT 11
2709 #define R_M32R_HI16_SLO»» 8 2469 #define R_M32R_GNU_VTENTRY 12
2710 #define R_M32R_LO16» » 9 2470
2711 #define R_M32R_SDA16» » 10 2471 #define R_M32R_16_RELA 33
2712 #define R_M32R_GNU_VTINHERIT» 11 2472 #define R_M32R_32_RELA 34
2713 #define R_M32R_GNU_VTENTRY» 12 2473 #define R_M32R_24_RELA 35
2714 2474 #define R_M32R_10_PCREL_RELA 36
2715 #define R_M32R_16_RELA» » 33 2475 #define R_M32R_18_PCREL_RELA 37
2716 #define R_M32R_32_RELA» » 34 2476 #define R_M32R_26_PCREL_RELA 38
2717 #define R_M32R_24_RELA» » 35 2477 #define R_M32R_HI16_ULO_RELA 39
2718 #define R_M32R_10_PCREL_RELA» 36 2478 #define R_M32R_HI16_SLO_RELA 40
2719 #define R_M32R_18_PCREL_RELA» 37 2479 #define R_M32R_LO16_RELA 41
2720 #define R_M32R_26_PCREL_RELA» 38 2480 #define R_M32R_SDA16_RELA 42
2721 #define R_M32R_HI16_ULO_RELA» 39 2481 #define R_M32R_RELA_GNU_VTINHERIT 43
2722 #define R_M32R_HI16_SLO_RELA» 40 2482 #define R_M32R_RELA_GNU_VTENTRY 44
2723 #define R_M32R_LO16_RELA» 41 2483 #define R_M32R_REL32 45
2724 #define R_M32R_SDA16_RELA» 42 2484
2725 #define R_M32R_RELA_GNU_VTINHERIT» 43 2485 #define R_M32R_GOT24 48
2726 #define R_M32R_RELA_GNU_VTENTRY»44 2486 #define R_M32R_26_PLTREL 49
2727 #define R_M32R_REL32» » 45 2487 #define R_M32R_COPY 50
2728 2488 #define R_M32R_GLOB_DAT 51
2729 #define R_M32R_GOT24» » 48 2489 #define R_M32R_JMP_SLOT 52
2730 #define R_M32R_26_PLTREL» 49 2490 #define R_M32R_RELATIVE 53
2731 #define R_M32R_COPY» » 50 2491 #define R_M32R_GOTOFF 54
2732 #define R_M32R_GLOB_DAT»» 51 2492 #define R_M32R_GOTPC24 55
2733 #define R_M32R_JMP_SLOT»» 52 2493 #define R_M32R_GOT16_HI_ULO 56
2734 #define R_M32R_RELATIVE»» 53 2494
2735 #define R_M32R_GOTOFF» » 54 2495 #define R_M32R_GOT16_HI_SLO 57
2736 #define R_M32R_GOTPC24» » 55 2496
2737 #define R_M32R_GOT16_HI_ULO» 56 2497 #define R_M32R_GOT16_LO 58
2738 2498 #define R_M32R_GOTPC_HI_ULO 59
2739 #define R_M32R_GOT16_HI_SLO» 57 2499
2740 2500 #define R_M32R_GOTPC_HI_SLO 60
2741 #define R_M32R_GOT16_LO»» 58 2501
2742 #define R_M32R_GOTPC_HI_ULO» 59 2502 #define R_M32R_GOTPC_LO 61
2743 2503
2744 #define R_M32R_GOTPC_HI_SLO» 60 2504 #define R_M32R_GOTOFF_HI_ULO 62
2745 2505
2746 #define R_M32R_GOTPC_LO»» 61 2506 #define R_M32R_GOTOFF_HI_SLO 63
2747 2507
2748 #define R_M32R_GOTOFF_HI_ULO» 62 2508 #define R_M32R_GOTOFF_LO 64
2749 2509 #define R_M32R_NUM 256
2750 #define R_M32R_GOTOFF_HI_SLO» 63
2751
2752 #define R_M32R_GOTOFF_LO» 64
2753 #define R_M32R_NUM» » 256
2754 2510
2755 #define R_MICROBLAZE_NONE 0 2511 #define R_MICROBLAZE_NONE 0
2756 #define R_MICROBLAZE_32 1 2512 #define R_MICROBLAZE_32 1
2757 #define R_MICROBLAZE_32_PCREL 2 2513 #define R_MICROBLAZE_32_PCREL 2
2758 #define R_MICROBLAZE_64_PCREL 3 2514 #define R_MICROBLAZE_64_PCREL 3
2759 #define R_MICROBLAZE_32_PCREL_LO 4 2515 #define R_MICROBLAZE_32_PCREL_LO 4
2760 #define R_MICROBLAZE_64 5 2516 #define R_MICROBLAZE_64 5
2761 #define R_MICROBLAZE_32_LO 6 2517 #define R_MICROBLAZE_32_LO 6
2762 #define R_MICROBLAZE_SRO32 7 2518 #define R_MICROBLAZE_SRO32 7
2763 #define R_MICROBLAZE_SRW32 8 2519 #define R_MICROBLAZE_SRW32 8
(...skipping 10 matching lines...) Expand all
2774 #define R_MICROBLAZE_GOTOFF_64 19 2530 #define R_MICROBLAZE_GOTOFF_64 19
2775 #define R_MICROBLAZE_GOTOFF_32 20 2531 #define R_MICROBLAZE_GOTOFF_32 20
2776 #define R_MICROBLAZE_COPY 21 2532 #define R_MICROBLAZE_COPY 21
2777 #define R_MICROBLAZE_TLS 22 2533 #define R_MICROBLAZE_TLS 22
2778 #define R_MICROBLAZE_TLSGD 23 2534 #define R_MICROBLAZE_TLSGD 23
2779 #define R_MICROBLAZE_TLSLD 24 2535 #define R_MICROBLAZE_TLSLD 24
2780 #define R_MICROBLAZE_TLSDTPMOD32 25 2536 #define R_MICROBLAZE_TLSDTPMOD32 25
2781 #define R_MICROBLAZE_TLSDTPREL32 26 2537 #define R_MICROBLAZE_TLSDTPREL32 26
2782 #define R_MICROBLAZE_TLSDTPREL64 27 2538 #define R_MICROBLAZE_TLSDTPREL64 27
2783 #define R_MICROBLAZE_TLSGOTTPREL32 28 2539 #define R_MICROBLAZE_TLSGOTTPREL32 28
2784 #define R_MICROBLAZE_TLSTPREL32» 29 2540 #define R_MICROBLAZE_TLSTPREL32 29
2785 2541
2786 #define R_OR1K_NONE» » 0 2542 #define R_OR1K_NONE 0
2787 #define R_OR1K_32» » 1 2543 #define R_OR1K_32 1
2788 #define R_OR1K_16» » 2 2544 #define R_OR1K_16 2
2789 #define R_OR1K_8» » 3 2545 #define R_OR1K_8 3
2790 #define R_OR1K_LO_16_IN_INSN» 4 2546 #define R_OR1K_LO_16_IN_INSN 4
2791 #define R_OR1K_HI_16_IN_INSN» 5 2547 #define R_OR1K_HI_16_IN_INSN 5
2792 #define R_OR1K_INSN_REL_26» 6 2548 #define R_OR1K_INSN_REL_26 6
2793 #define R_OR1K_GNU_VTENTRY» 7 2549 #define R_OR1K_GNU_VTENTRY 7
2794 #define R_OR1K_GNU_VTINHERIT» 8 2550 #define R_OR1K_GNU_VTINHERIT 8
2795 #define R_OR1K_32_PCREL»» 9 2551 #define R_OR1K_32_PCREL 9
2796 #define R_OR1K_16_PCREL»» 10 2552 #define R_OR1K_16_PCREL 10
2797 #define R_OR1K_8_PCREL» » 11 2553 #define R_OR1K_8_PCREL 11
2798 #define R_OR1K_GOTPC_HI16» 12 2554 #define R_OR1K_GOTPC_HI16 12
2799 #define R_OR1K_GOTPC_LO16» 13 2555 #define R_OR1K_GOTPC_LO16 13
2800 #define R_OR1K_GOT16» » 14 2556 #define R_OR1K_GOT16 14
2801 #define R_OR1K_PLT26» » 15 2557 #define R_OR1K_PLT26 15
2802 #define R_OR1K_GOTOFF_HI16» 16 2558 #define R_OR1K_GOTOFF_HI16 16
2803 #define R_OR1K_GOTOFF_LO16» 17 2559 #define R_OR1K_GOTOFF_LO16 17
2804 #define R_OR1K_COPY» » 18 2560 #define R_OR1K_COPY 18
2805 #define R_OR1K_GLOB_DAT»» 19 2561 #define R_OR1K_GLOB_DAT 19
2806 #define R_OR1K_JMP_SLOT»» 20 2562 #define R_OR1K_JMP_SLOT 20
2807 #define R_OR1K_RELATIVE»» 21 2563 #define R_OR1K_RELATIVE 21
2808 #define R_OR1K_TLS_GD_HI16» 22 2564 #define R_OR1K_TLS_GD_HI16 22
2809 #define R_OR1K_TLS_GD_LO16» 23 2565 #define R_OR1K_TLS_GD_LO16 23
2810 #define R_OR1K_TLS_LDM_HI16» 24 2566 #define R_OR1K_TLS_LDM_HI16 24
2811 #define R_OR1K_TLS_LDM_LO16» 25 2567 #define R_OR1K_TLS_LDM_LO16 25
2812 #define R_OR1K_TLS_LDO_HI16» 26 2568 #define R_OR1K_TLS_LDO_HI16 26
2813 #define R_OR1K_TLS_LDO_LO16» 27 2569 #define R_OR1K_TLS_LDO_LO16 27
2814 #define R_OR1K_TLS_IE_HI16» 28 2570 #define R_OR1K_TLS_IE_HI16 28
2815 #define R_OR1K_TLS_IE_LO16» 29 2571 #define R_OR1K_TLS_IE_LO16 29
2816 #define R_OR1K_TLS_LE_HI16» 30 2572 #define R_OR1K_TLS_LE_HI16 30
2817 #define R_OR1K_TLS_LE_LO16» 31 2573 #define R_OR1K_TLS_LE_LO16 31
2818 #define R_OR1K_TLS_TPOFF» 32 2574 #define R_OR1K_TLS_TPOFF 32
2819 #define R_OR1K_TLS_DTPOFF» 33 2575 #define R_OR1K_TLS_DTPOFF 33
2820 #define R_OR1K_TLS_DTPMOD» 34 2576 #define R_OR1K_TLS_DTPMOD 34
2821 2577
2822 #ifdef __cplusplus 2578 #ifdef __cplusplus
2823 } 2579 }
2824 #endif 2580 #endif
2825 2581
2826
2827 #endif 2582 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698