blob: fe50a679aec95192af464e9835bb2472bf4a4d1b [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _UAPI_LINUX_ELF_H
20#define _UAPI_LINUX_ELF_H
21#include <linux/types.h>
22#include <linux/elf-em.h>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24typedef __u32 Elf32_Addr;
25typedef __u16 Elf32_Half;
26typedef __u32 Elf32_Off;
27typedef __s32 Elf32_Sword;
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29typedef __u32 Elf32_Word;
30typedef __u64 Elf64_Addr;
31typedef __u16 Elf64_Half;
32typedef __s16 Elf64_SHalf;
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34typedef __u64 Elf64_Off;
35typedef __s32 Elf64_Sword;
36typedef __u32 Elf64_Word;
37typedef __u64 Elf64_Xword;
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39typedef __s64 Elf64_Sxword;
40#define PT_NULL 0
41#define PT_LOAD 1
42#define PT_DYNAMIC 2
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#define PT_INTERP 3
45#define PT_NOTE 4
46#define PT_SHLIB 5
47#define PT_PHDR 6
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49#define PT_TLS 7
50#define PT_LOOS 0x60000000
51#define PT_HIOS 0x6fffffff
52#define PT_LOPROC 0x70000000
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54#define PT_HIPROC 0x7fffffff
55#define PT_GNU_EH_FRAME 0x6474e550
56#define PT_GNU_STACK (PT_LOOS + 0x474e551)
57#define PN_XNUM 0xffff
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59#define ET_NONE 0
60#define ET_REL 1
61#define ET_EXEC 2
62#define ET_DYN 3
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64#define ET_CORE 4
65#define ET_LOPROC 0xff00
66#define ET_HIPROC 0xffff
67#define DT_NULL 0
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69#define DT_NEEDED 1
70#define DT_PLTRELSZ 2
71#define DT_PLTGOT 3
72#define DT_HASH 4
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74#define DT_STRTAB 5
75#define DT_SYMTAB 6
76#define DT_RELA 7
77#define DT_RELASZ 8
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79#define DT_RELAENT 9
80#define DT_STRSZ 10
81#define DT_SYMENT 11
82#define DT_INIT 12
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84#define DT_FINI 13
85#define DT_SONAME 14
86#define DT_RPATH 15
87#define DT_SYMBOLIC 16
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89#define DT_REL 17
90#define DT_RELSZ 18
91#define DT_RELENT 19
92#define DT_PLTREL 20
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94#define DT_DEBUG 21
95#define DT_TEXTREL 22
96#define DT_JMPREL 23
97#define DT_ENCODING 32
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99#define OLD_DT_LOOS 0x60000000
100#define DT_LOOS 0x6000000d
101#define DT_HIOS 0x6ffff000
102#define DT_VALRNGLO 0x6ffffd00
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104#define DT_VALRNGHI 0x6ffffdff
105#define DT_ADDRRNGLO 0x6ffffe00
106#define DT_ADDRRNGHI 0x6ffffeff
107#define DT_VERSYM 0x6ffffff0
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109#define DT_RELACOUNT 0x6ffffff9
110#define DT_RELCOUNT 0x6ffffffa
111#define DT_FLAGS_1 0x6ffffffb
112#define DT_VERDEF 0x6ffffffc
113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114#define DT_VERDEFNUM 0x6ffffffd
115#define DT_VERNEED 0x6ffffffe
116#define DT_VERNEEDNUM 0x6fffffff
117#define OLD_DT_HIOS 0x6fffffff
118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119#define DT_LOPROC 0x70000000
120#define DT_HIPROC 0x7fffffff
121#define STB_LOCAL 0
122#define STB_GLOBAL 1
123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124#define STB_WEAK 2
125#define STT_NOTYPE 0
126#define STT_OBJECT 1
127#define STT_FUNC 2
128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129#define STT_SECTION 3
130#define STT_FILE 4
131#define STT_COMMON 5
132#define STT_TLS 6
133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
134#define ELF_ST_BIND(x) ((x) >> 4)
135#define ELF_ST_TYPE(x) (((unsigned int) x) & 0xf)
136#define ELF32_ST_BIND(x) ELF_ST_BIND(x)
137#define ELF32_ST_TYPE(x) ELF_ST_TYPE(x)
138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
139#define ELF64_ST_BIND(x) ELF_ST_BIND(x)
140#define ELF64_ST_TYPE(x) ELF_ST_TYPE(x)
Tao Baod7db5942015-01-28 10:07:51 -0800141typedef struct dynamic {
142 Elf32_Sword d_tag;
Ben Cheng655a7c02013-10-16 16:09:24 -0700143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800144 union {
145 Elf32_Sword d_val;
146 Elf32_Addr d_ptr;
147 } d_un;
Ben Cheng655a7c02013-10-16 16:09:24 -0700148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
149} Elf32_Dyn;
150typedef struct {
Tao Baod7db5942015-01-28 10:07:51 -0800151 Elf64_Sxword d_tag;
152 union {
Ben Cheng655a7c02013-10-16 16:09:24 -0700153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800154 Elf64_Xword d_val;
155 Elf64_Addr d_ptr;
156 } d_un;
Ben Cheng655a7c02013-10-16 16:09:24 -0700157} Elf64_Dyn;
158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
159#define ELF32_R_SYM(x) ((x) >> 8)
160#define ELF32_R_TYPE(x) ((x) & 0xff)
161#define ELF64_R_SYM(i) ((i) >> 32)
162#define ELF64_R_TYPE(i) ((i) & 0xffffffff)
163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
164typedef struct elf32_rel {
Tao Baod7db5942015-01-28 10:07:51 -0800165 Elf32_Addr r_offset;
166 Elf32_Word r_info;
Ben Cheng655a7c02013-10-16 16:09:24 -0700167} Elf32_Rel;
168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
169typedef struct elf64_rel {
Tao Baod7db5942015-01-28 10:07:51 -0800170 Elf64_Addr r_offset;
171 Elf64_Xword r_info;
Ben Cheng655a7c02013-10-16 16:09:24 -0700172} Elf64_Rel;
173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800174typedef struct elf32_rela {
175 Elf32_Addr r_offset;
176 Elf32_Word r_info;
177 Elf32_Sword r_addend;
Ben Cheng655a7c02013-10-16 16:09:24 -0700178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
179} Elf32_Rela;
180typedef struct elf64_rela {
Tao Baod7db5942015-01-28 10:07:51 -0800181 Elf64_Addr r_offset;
182 Elf64_Xword r_info;
Ben Cheng655a7c02013-10-16 16:09:24 -0700183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800184 Elf64_Sxword r_addend;
Ben Cheng655a7c02013-10-16 16:09:24 -0700185} Elf64_Rela;
Tao Baod7db5942015-01-28 10:07:51 -0800186typedef struct elf32_sym {
187 Elf32_Word st_name;
Ben Cheng655a7c02013-10-16 16:09:24 -0700188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800189 Elf32_Addr st_value;
190 Elf32_Word st_size;
191 unsigned char st_info;
192 unsigned char st_other;
Ben Cheng655a7c02013-10-16 16:09:24 -0700193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800194 Elf32_Half st_shndx;
Ben Cheng655a7c02013-10-16 16:09:24 -0700195} Elf32_Sym;
196typedef struct elf64_sym {
Tao Baod7db5942015-01-28 10:07:51 -0800197 Elf64_Word st_name;
Ben Cheng655a7c02013-10-16 16:09:24 -0700198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800199 unsigned char st_info;
200 unsigned char st_other;
201 Elf64_Half st_shndx;
202 Elf64_Addr st_value;
Ben Cheng655a7c02013-10-16 16:09:24 -0700203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800204 Elf64_Xword st_size;
Ben Cheng655a7c02013-10-16 16:09:24 -0700205} Elf64_Sym;
206#define EI_NIDENT 16
Tao Baod7db5942015-01-28 10:07:51 -0800207typedef struct elf32_hdr {
Ben Cheng655a7c02013-10-16 16:09:24 -0700208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800209 unsigned char e_ident[EI_NIDENT];
210 Elf32_Half e_type;
211 Elf32_Half e_machine;
212 Elf32_Word e_version;
Ben Cheng655a7c02013-10-16 16:09:24 -0700213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800214 Elf32_Addr e_entry;
215 Elf32_Off e_phoff;
216 Elf32_Off e_shoff;
217 Elf32_Word e_flags;
Ben Cheng655a7c02013-10-16 16:09:24 -0700218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800219 Elf32_Half e_ehsize;
220 Elf32_Half e_phentsize;
221 Elf32_Half e_phnum;
222 Elf32_Half e_shentsize;
Ben Cheng655a7c02013-10-16 16:09:24 -0700223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800224 Elf32_Half e_shnum;
225 Elf32_Half e_shstrndx;
Ben Cheng655a7c02013-10-16 16:09:24 -0700226} Elf32_Ehdr;
227typedef struct elf64_hdr {
228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800229 unsigned char e_ident[EI_NIDENT];
230 Elf64_Half e_type;
231 Elf64_Half e_machine;
232 Elf64_Word e_version;
Ben Cheng655a7c02013-10-16 16:09:24 -0700233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800234 Elf64_Addr e_entry;
235 Elf64_Off e_phoff;
236 Elf64_Off e_shoff;
237 Elf64_Word e_flags;
Ben Cheng655a7c02013-10-16 16:09:24 -0700238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800239 Elf64_Half e_ehsize;
240 Elf64_Half e_phentsize;
241 Elf64_Half e_phnum;
242 Elf64_Half e_shentsize;
Ben Cheng655a7c02013-10-16 16:09:24 -0700243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800244 Elf64_Half e_shnum;
245 Elf64_Half e_shstrndx;
Ben Cheng655a7c02013-10-16 16:09:24 -0700246} Elf64_Ehdr;
247#define PF_R 0x4
248/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
249#define PF_W 0x2
250#define PF_X 0x1
Tao Baod7db5942015-01-28 10:07:51 -0800251typedef struct elf32_phdr {
252 Elf32_Word p_type;
Ben Cheng655a7c02013-10-16 16:09:24 -0700253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800254 Elf32_Off p_offset;
255 Elf32_Addr p_vaddr;
256 Elf32_Addr p_paddr;
257 Elf32_Word p_filesz;
Ben Cheng655a7c02013-10-16 16:09:24 -0700258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800259 Elf32_Word p_memsz;
260 Elf32_Word p_flags;
261 Elf32_Word p_align;
Ben Cheng655a7c02013-10-16 16:09:24 -0700262} Elf32_Phdr;
263/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
264typedef struct elf64_phdr {
Tao Baod7db5942015-01-28 10:07:51 -0800265 Elf64_Word p_type;
266 Elf64_Word p_flags;
267 Elf64_Off p_offset;
Ben Cheng655a7c02013-10-16 16:09:24 -0700268/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800269 Elf64_Addr p_vaddr;
270 Elf64_Addr p_paddr;
271 Elf64_Xword p_filesz;
272 Elf64_Xword p_memsz;
Ben Cheng655a7c02013-10-16 16:09:24 -0700273/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800274 Elf64_Xword p_align;
Ben Cheng655a7c02013-10-16 16:09:24 -0700275} Elf64_Phdr;
276#define SHT_NULL 0
277#define SHT_PROGBITS 1
278/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
279#define SHT_SYMTAB 2
280#define SHT_STRTAB 3
281#define SHT_RELA 4
282#define SHT_HASH 5
283/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
284#define SHT_DYNAMIC 6
285#define SHT_NOTE 7
286#define SHT_NOBITS 8
287#define SHT_REL 9
288/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
289#define SHT_SHLIB 10
290#define SHT_DYNSYM 11
291#define SHT_NUM 12
292#define SHT_LOPROC 0x70000000
293/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
294#define SHT_HIPROC 0x7fffffff
295#define SHT_LOUSER 0x80000000
296#define SHT_HIUSER 0xffffffff
297#define SHF_WRITE 0x1
298/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
299#define SHF_ALLOC 0x2
300#define SHF_EXECINSTR 0x4
Christopher Ferris106b3a82016-08-24 12:15:38 -0700301#define SHF_RELA_LIVEPATCH 0x00100000
Ben Cheng655a7c02013-10-16 16:09:24 -0700302#define SHF_MASKPROC 0xf0000000
Ben Cheng655a7c02013-10-16 16:09:24 -0700303/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -0700304#define SHN_UNDEF 0
Ben Cheng655a7c02013-10-16 16:09:24 -0700305#define SHN_LORESERVE 0xff00
306#define SHN_LOPROC 0xff00
307#define SHN_HIPROC 0xff1f
Ben Cheng655a7c02013-10-16 16:09:24 -0700308/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -0700309#define SHN_LIVEPATCH 0xff20
310#define SHN_ABS 0xfff1
Ben Cheng655a7c02013-10-16 16:09:24 -0700311#define SHN_COMMON 0xfff2
312#define SHN_HIRESERVE 0xffff
Christopher Ferris106b3a82016-08-24 12:15:38 -0700313/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700314typedef struct elf32_shdr {
Tao Baod7db5942015-01-28 10:07:51 -0800315 Elf32_Word sh_name;
Tao Baod7db5942015-01-28 10:07:51 -0800316 Elf32_Word sh_type;
317 Elf32_Word sh_flags;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700318/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800319 Elf32_Addr sh_addr;
320 Elf32_Off sh_offset;
Tao Baod7db5942015-01-28 10:07:51 -0800321 Elf32_Word sh_size;
322 Elf32_Word sh_link;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700323/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800324 Elf32_Word sh_info;
325 Elf32_Word sh_addralign;
Tao Baod7db5942015-01-28 10:07:51 -0800326 Elf32_Word sh_entsize;
Ben Cheng655a7c02013-10-16 16:09:24 -0700327} Elf32_Shdr;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700328/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700329typedef struct elf64_shdr {
Tao Baod7db5942015-01-28 10:07:51 -0800330 Elf64_Word sh_name;
Tao Baod7db5942015-01-28 10:07:51 -0800331 Elf64_Word sh_type;
332 Elf64_Xword sh_flags;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700333/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800334 Elf64_Addr sh_addr;
335 Elf64_Off sh_offset;
Tao Baod7db5942015-01-28 10:07:51 -0800336 Elf64_Xword sh_size;
337 Elf64_Word sh_link;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700338/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800339 Elf64_Word sh_info;
340 Elf64_Xword sh_addralign;
Tao Baod7db5942015-01-28 10:07:51 -0800341 Elf64_Xword sh_entsize;
Ben Cheng655a7c02013-10-16 16:09:24 -0700342} Elf64_Shdr;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700343/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700344#define EI_MAG0 0
345#define EI_MAG1 1
Ben Cheng655a7c02013-10-16 16:09:24 -0700346#define EI_MAG2 2
347#define EI_MAG3 3
Christopher Ferris106b3a82016-08-24 12:15:38 -0700348/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700349#define EI_CLASS 4
350#define EI_DATA 5
Ben Cheng655a7c02013-10-16 16:09:24 -0700351#define EI_VERSION 6
352#define EI_OSABI 7
Christopher Ferris106b3a82016-08-24 12:15:38 -0700353/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700354#define EI_PAD 8
355#define ELFMAG0 0x7f
Ben Cheng655a7c02013-10-16 16:09:24 -0700356#define ELFMAG1 'E'
357#define ELFMAG2 'L'
Christopher Ferris106b3a82016-08-24 12:15:38 -0700358/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700359#define ELFMAG3 'F'
360#define ELFMAG "\177ELF"
Ben Cheng655a7c02013-10-16 16:09:24 -0700361#define SELFMAG 4
362#define ELFCLASSNONE 0
Christopher Ferris106b3a82016-08-24 12:15:38 -0700363/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700364#define ELFCLASS32 1
365#define ELFCLASS64 2
Ben Cheng655a7c02013-10-16 16:09:24 -0700366#define ELFCLASSNUM 3
367#define ELFDATANONE 0
Christopher Ferris106b3a82016-08-24 12:15:38 -0700368/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700369#define ELFDATA2LSB 1
370#define ELFDATA2MSB 2
Ben Cheng655a7c02013-10-16 16:09:24 -0700371#define EV_NONE 0
372#define EV_CURRENT 1
Christopher Ferris106b3a82016-08-24 12:15:38 -0700373/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700374#define EV_NUM 2
375#define ELFOSABI_NONE 0
Ben Cheng655a7c02013-10-16 16:09:24 -0700376#define ELFOSABI_LINUX 3
377#ifndef ELF_OSABI
Christopher Ferris106b3a82016-08-24 12:15:38 -0700378/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700379#define ELF_OSABI ELFOSABI_NONE
380#endif
Ben Cheng655a7c02013-10-16 16:09:24 -0700381#define NT_PRSTATUS 1
382#define NT_PRFPREG 2
Christopher Ferris106b3a82016-08-24 12:15:38 -0700383/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700384#define NT_PRPSINFO 3
385#define NT_TASKSTRUCT 4
Ben Cheng655a7c02013-10-16 16:09:24 -0700386#define NT_AUXV 6
387#define NT_SIGINFO 0x53494749
Christopher Ferris106b3a82016-08-24 12:15:38 -0700388/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700389#define NT_FILE 0x46494c45
390#define NT_PRXFPREG 0x46e62b7f
Ben Cheng655a7c02013-10-16 16:09:24 -0700391#define NT_PPC_VMX 0x100
392#define NT_PPC_SPE 0x101
Christopher Ferris106b3a82016-08-24 12:15:38 -0700393/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700394#define NT_PPC_VSX 0x102
395#define NT_386_TLS 0x200
Ben Cheng655a7c02013-10-16 16:09:24 -0700396#define NT_386_IOPERM 0x201
397#define NT_X86_XSTATE 0x202
Christopher Ferris106b3a82016-08-24 12:15:38 -0700398/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700399#define NT_S390_HIGH_GPRS 0x300
400#define NT_S390_TIMER 0x301
Ben Cheng655a7c02013-10-16 16:09:24 -0700401#define NT_S390_TODCMP 0x302
402#define NT_S390_TODPREG 0x303
Christopher Ferris106b3a82016-08-24 12:15:38 -0700403/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700404#define NT_S390_CTRS 0x304
405#define NT_S390_PREFIX 0x305
Ben Cheng655a7c02013-10-16 16:09:24 -0700406#define NT_S390_LAST_BREAK 0x306
407#define NT_S390_SYSTEM_CALL 0x307
Christopher Ferris106b3a82016-08-24 12:15:38 -0700408/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700409#define NT_S390_TDB 0x308
Christopher Ferris82d75042015-01-26 10:57:07 -0800410#define NT_S390_VXRS_LOW 0x309
Christopher Ferris82d75042015-01-26 10:57:07 -0800411#define NT_S390_VXRS_HIGH 0x30a
412#define NT_ARM_VFP 0x400
Christopher Ferris106b3a82016-08-24 12:15:38 -0700413/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700414#define NT_ARM_TLS 0x401
415#define NT_ARM_HW_BREAK 0x402
416#define NT_ARM_HW_WATCH 0x403
Christopher Ferris05d08e92016-02-04 13:16:38 -0800417#define NT_ARM_SYSTEM_CALL 0x404
Christopher Ferris106b3a82016-08-24 12:15:38 -0700418/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700419#define NT_METAG_CBUF 0x500
Ben Cheng655a7c02013-10-16 16:09:24 -0700420#define NT_METAG_RPIPE 0x501
Christopher Ferris05d08e92016-02-04 13:16:38 -0800421#define NT_METAG_TLS 0x502
Ben Cheng655a7c02013-10-16 16:09:24 -0700422typedef struct elf32_note {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700423/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800424 Elf32_Word n_namesz;
425 Elf32_Word n_descsz;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800426 Elf32_Word n_type;
Ben Cheng655a7c02013-10-16 16:09:24 -0700427} Elf32_Nhdr;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700428/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700429typedef struct elf64_note {
Tao Baod7db5942015-01-28 10:07:51 -0800430 Elf64_Word n_namesz;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800431 Elf64_Word n_descsz;
Tao Baod7db5942015-01-28 10:07:51 -0800432 Elf64_Word n_type;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700433/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700434} Elf64_Nhdr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700435#endif