elf.h 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445
  1. /****************************************************************************
  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. /*
  20. This file was copied from /bionic/libc/kernel/uapi/linux/elf.h of android
  21. source tree and has below changes.
  22. - Removed included header file linux/types.h, linux/elf-em.h
  23. - Added stdint.h
  24. - Replaced __u32 with uint32_t
  25. - Replaced __u16 with uint16_t
  26. - Replaced __u64 with uint64_t
  27. - Replaced __s32 with int32_t
  28. - Replaced __s16 with int16_t
  29. - Replaced __s64 with int64_t
  30. */
  31. #ifndef _UAPI_LINUX_ELF_H
  32. #define _UAPI_LINUX_ELF_H
  33. #include <stdint.h>
  34. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  35. typedef uint32_t Elf32_Addr;
  36. typedef uint16_t Elf32_Half;
  37. typedef uint32_t Elf32_Off;
  38. typedef int32_t Elf32_Sword;
  39. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  40. typedef uint32_t Elf32_Word;
  41. typedef uint64_t Elf64_Addr;
  42. typedef uint16_t Elf64_Half;
  43. typedef int16_t Elf64_SHalf;
  44. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  45. typedef uint64_t Elf64_Off;
  46. typedef int32_t Elf64_Sword;
  47. typedef uint32_t Elf64_Word;
  48. typedef uint64_t Elf64_Xword;
  49. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  50. typedef int64_t Elf64_Sxword;
  51. #define PT_NULL 0
  52. #define PT_LOAD 1
  53. #define PT_DYNAMIC 2
  54. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  55. #define PT_INTERP 3
  56. #define PT_NOTE 4
  57. #define PT_SHLIB 5
  58. #define PT_PHDR 6
  59. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  60. #define PT_TLS 7
  61. #define PT_LOOS 0x60000000
  62. #define PT_HIOS 0x6fffffff
  63. #define PT_LOPROC 0x70000000
  64. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  65. #define PT_HIPROC 0x7fffffff
  66. #define PT_GNU_EH_FRAME 0x6474e550
  67. #define PT_GNU_STACK (PT_LOOS + 0x474e551)
  68. #define PN_XNUM 0xffff
  69. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  70. #define ET_NONE 0
  71. #define ET_REL 1
  72. #define ET_EXEC 2
  73. #define ET_DYN 3
  74. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  75. #define ET_CORE 4
  76. #define ET_LOPROC 0xff00
  77. #define ET_HIPROC 0xffff
  78. #define DT_NULL 0
  79. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  80. #define DT_NEEDED 1
  81. #define DT_PLTRELSZ 2
  82. #define DT_PLTGOT 3
  83. #define DT_HASH 4
  84. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  85. #define DT_STRTAB 5
  86. #define DT_SYMTAB 6
  87. #define DT_RELA 7
  88. #define DT_RELASZ 8
  89. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  90. #define DT_RELAENT 9
  91. #define DT_STRSZ 10
  92. #define DT_SYMENT 11
  93. #define DT_INIT 12
  94. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  95. #define DT_FINI 13
  96. #define DT_SONAME 14
  97. #define DT_RPATH 15
  98. #define DT_SYMBOLIC 16
  99. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  100. #define DT_REL 17
  101. #define DT_RELSZ 18
  102. #define DT_RELENT 19
  103. #define DT_PLTREL 20
  104. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  105. #define DT_DEBUG 21
  106. #define DT_TEXTREL 22
  107. #define DT_JMPREL 23
  108. #define DT_ENCODING 32
  109. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  110. #define OLD_DT_LOOS 0x60000000
  111. #define DT_LOOS 0x6000000d
  112. #define DT_HIOS 0x6ffff000
  113. #define DT_VALRNGLO 0x6ffffd00
  114. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  115. #define DT_VALRNGHI 0x6ffffdff
  116. #define DT_ADDRRNGLO 0x6ffffe00
  117. #define DT_ADDRRNGHI 0x6ffffeff
  118. #define DT_VERSYM 0x6ffffff0
  119. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  120. #define DT_RELACOUNT 0x6ffffff9
  121. #define DT_RELCOUNT 0x6ffffffa
  122. #define DT_FLAGS_1 0x6ffffffb
  123. #define DT_VERDEF 0x6ffffffc
  124. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  125. #define DT_VERDEFNUM 0x6ffffffd
  126. #define DT_VERNEED 0x6ffffffe
  127. #define DT_VERNEEDNUM 0x6fffffff
  128. #define OLD_DT_HIOS 0x6fffffff
  129. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  130. #define DT_LOPROC 0x70000000
  131. #define DT_HIPROC 0x7fffffff
  132. #define STB_LOCAL 0
  133. #define STB_GLOBAL 1
  134. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  135. #define STB_WEAK 2
  136. #define STT_NOTYPE 0
  137. #define STT_OBJECT 1
  138. #define STT_FUNC 2
  139. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  140. #define STT_SECTION 3
  141. #define STT_FILE 4
  142. #define STT_COMMON 5
  143. #define STT_TLS 6
  144. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  145. #define ELF_ST_BIND(x) ((x) >> 4)
  146. #define ELF_ST_TYPE(x) (((unsigned int) x) & 0xf)
  147. #define ELF32_ST_BIND(x) ELF_ST_BIND(x)
  148. #define ELF32_ST_TYPE(x) ELF_ST_TYPE(x)
  149. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  150. #define ELF64_ST_BIND(x) ELF_ST_BIND(x)
  151. #define ELF64_ST_TYPE(x) ELF_ST_TYPE(x)
  152. typedef struct dynamic{
  153. Elf32_Sword d_tag;
  154. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  155. union{
  156. Elf32_Sword d_val;
  157. Elf32_Addr d_ptr;
  158. } d_un;
  159. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  160. } Elf32_Dyn;
  161. typedef struct {
  162. Elf64_Sxword d_tag;
  163. union {
  164. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  165. Elf64_Xword d_val;
  166. Elf64_Addr d_ptr;
  167. } d_un;
  168. } Elf64_Dyn;
  169. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  170. #define ELF32_R_SYM(x) ((x) >> 8)
  171. #define ELF32_R_TYPE(x) ((x) & 0xff)
  172. #define ELF64_R_SYM(i) ((i) >> 32)
  173. #define ELF64_R_TYPE(i) ((i) & 0xffffffff)
  174. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  175. typedef struct elf32_rel {
  176. Elf32_Addr r_offset;
  177. Elf32_Word r_info;
  178. } Elf32_Rel;
  179. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  180. typedef struct elf64_rel {
  181. Elf64_Addr r_offset;
  182. Elf64_Xword r_info;
  183. } Elf64_Rel;
  184. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  185. typedef struct elf32_rela{
  186. Elf32_Addr r_offset;
  187. Elf32_Word r_info;
  188. Elf32_Sword r_addend;
  189. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  190. } Elf32_Rela;
  191. typedef struct elf64_rela {
  192. Elf64_Addr r_offset;
  193. Elf64_Xword r_info;
  194. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  195. Elf64_Sxword r_addend;
  196. } Elf64_Rela;
  197. typedef struct elf32_sym{
  198. Elf32_Word st_name;
  199. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  200. Elf32_Addr st_value;
  201. Elf32_Word st_size;
  202. unsigned char st_info;
  203. unsigned char st_other;
  204. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  205. Elf32_Half st_shndx;
  206. } Elf32_Sym;
  207. typedef struct elf64_sym {
  208. Elf64_Word st_name;
  209. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  210. unsigned char st_info;
  211. unsigned char st_other;
  212. Elf64_Half st_shndx;
  213. Elf64_Addr st_value;
  214. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  215. Elf64_Xword st_size;
  216. } Elf64_Sym;
  217. #define EI_NIDENT 16
  218. typedef struct elf32_hdr{
  219. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  220. unsigned char e_ident[EI_NIDENT];
  221. Elf32_Half e_type;
  222. Elf32_Half e_machine;
  223. Elf32_Word e_version;
  224. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  225. Elf32_Addr e_entry;
  226. Elf32_Off e_phoff;
  227. Elf32_Off e_shoff;
  228. Elf32_Word e_flags;
  229. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  230. Elf32_Half e_ehsize;
  231. Elf32_Half e_phentsize;
  232. Elf32_Half e_phnum;
  233. Elf32_Half e_shentsize;
  234. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  235. Elf32_Half e_shnum;
  236. Elf32_Half e_shstrndx;
  237. } Elf32_Ehdr;
  238. typedef struct elf64_hdr {
  239. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  240. unsigned char e_ident[EI_NIDENT];
  241. Elf64_Half e_type;
  242. Elf64_Half e_machine;
  243. Elf64_Word e_version;
  244. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  245. Elf64_Addr e_entry;
  246. Elf64_Off e_phoff;
  247. Elf64_Off e_shoff;
  248. Elf64_Word e_flags;
  249. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  250. Elf64_Half e_ehsize;
  251. Elf64_Half e_phentsize;
  252. Elf64_Half e_phnum;
  253. Elf64_Half e_shentsize;
  254. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  255. Elf64_Half e_shnum;
  256. Elf64_Half e_shstrndx;
  257. } Elf64_Ehdr;
  258. #define PF_R 0x4
  259. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  260. #define PF_W 0x2
  261. #define PF_X 0x1
  262. typedef struct elf32_phdr{
  263. Elf32_Word p_type;
  264. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  265. Elf32_Off p_offset;
  266. Elf32_Addr p_vaddr;
  267. Elf32_Addr p_paddr;
  268. Elf32_Word p_filesz;
  269. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  270. Elf32_Word p_memsz;
  271. Elf32_Word p_flags;
  272. Elf32_Word p_align;
  273. } Elf32_Phdr;
  274. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  275. typedef struct elf64_phdr {
  276. Elf64_Word p_type;
  277. Elf64_Word p_flags;
  278. Elf64_Off p_offset;
  279. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  280. Elf64_Addr p_vaddr;
  281. Elf64_Addr p_paddr;
  282. Elf64_Xword p_filesz;
  283. Elf64_Xword p_memsz;
  284. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  285. Elf64_Xword p_align;
  286. } Elf64_Phdr;
  287. #define SHT_NULL 0
  288. #define SHT_PROGBITS 1
  289. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  290. #define SHT_SYMTAB 2
  291. #define SHT_STRTAB 3
  292. #define SHT_RELA 4
  293. #define SHT_HASH 5
  294. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  295. #define SHT_DYNAMIC 6
  296. #define SHT_NOTE 7
  297. #define SHT_NOBITS 8
  298. #define SHT_REL 9
  299. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  300. #define SHT_SHLIB 10
  301. #define SHT_DYNSYM 11
  302. #define SHT_NUM 12
  303. #define SHT_LOPROC 0x70000000
  304. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  305. #define SHT_HIPROC 0x7fffffff
  306. #define SHT_LOUSER 0x80000000
  307. #define SHT_HIUSER 0xffffffff
  308. #define SHF_WRITE 0x1
  309. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  310. #define SHF_ALLOC 0x2
  311. #define SHF_EXECINSTR 0x4
  312. #define SHF_MASKPROC 0xf0000000
  313. #define SHN_UNDEF 0
  314. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  315. #define SHN_LORESERVE 0xff00
  316. #define SHN_LOPROC 0xff00
  317. #define SHN_HIPROC 0xff1f
  318. #define SHN_ABS 0xfff1
  319. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  320. #define SHN_COMMON 0xfff2
  321. #define SHN_HIRESERVE 0xffff
  322. typedef struct elf32_shdr {
  323. Elf32_Word sh_name;
  324. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  325. Elf32_Word sh_type;
  326. Elf32_Word sh_flags;
  327. Elf32_Addr sh_addr;
  328. Elf32_Off sh_offset;
  329. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  330. Elf32_Word sh_size;
  331. Elf32_Word sh_link;
  332. Elf32_Word sh_info;
  333. Elf32_Word sh_addralign;
  334. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  335. Elf32_Word sh_entsize;
  336. } Elf32_Shdr;
  337. typedef struct elf64_shdr {
  338. Elf64_Word sh_name;
  339. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  340. Elf64_Word sh_type;
  341. Elf64_Xword sh_flags;
  342. Elf64_Addr sh_addr;
  343. Elf64_Off sh_offset;
  344. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  345. Elf64_Xword sh_size;
  346. Elf64_Word sh_link;
  347. Elf64_Word sh_info;
  348. Elf64_Xword sh_addralign;
  349. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  350. Elf64_Xword sh_entsize;
  351. } Elf64_Shdr;
  352. #define EI_MAG0 0
  353. #define EI_MAG1 1
  354. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  355. #define EI_MAG2 2
  356. #define EI_MAG3 3
  357. #define EI_CLASS 4
  358. #define EI_DATA 5
  359. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  360. #define EI_VERSION 6
  361. #define EI_OSABI 7
  362. #define EI_PAD 8
  363. #define ELFMAG0 0x7f
  364. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  365. #define ELFMAG1 'E'
  366. #define ELFMAG2 'L'
  367. #define ELFMAG3 'F'
  368. #define ELFMAG "\177ELF"
  369. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  370. #define SELFMAG 4
  371. #define ELFCLASSNONE 0
  372. #define ELFCLASS32 1
  373. #define ELFCLASS64 2
  374. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  375. #define ELFCLASSNUM 3
  376. #define ELFDATANONE 0
  377. #define ELFDATA2LSB 1
  378. #define ELFDATA2MSB 2
  379. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  380. #define EV_NONE 0
  381. #define EV_CURRENT 1
  382. #define EV_NUM 2
  383. #define ELFOSABI_NONE 0
  384. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  385. #define ELFOSABI_LINUX 3
  386. #ifndef ELF_OSABI
  387. #define ELF_OSABI ELFOSABI_NONE
  388. #endif
  389. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  390. #define NT_PRSTATUS 1
  391. #define NT_PRFPREG 2
  392. #define NT_PRPSINFO 3
  393. #define NT_TASKSTRUCT 4
  394. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  395. #define NT_AUXV 6
  396. #define NT_SIGINFO 0x53494749
  397. #define NT_FILE 0x46494c45
  398. #define NT_PRXFPREG 0x46e62b7f
  399. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  400. #define NT_PPC_VMX 0x100
  401. #define NT_PPC_SPE 0x101
  402. #define NT_PPC_VSX 0x102
  403. #define NT_386_TLS 0x200
  404. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  405. #define NT_386_IOPERM 0x201
  406. #define NT_X86_XSTATE 0x202
  407. #define NT_S390_HIGH_GPRS 0x300
  408. #define NT_S390_TIMER 0x301
  409. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  410. #define NT_S390_TODCMP 0x302
  411. #define NT_S390_TODPREG 0x303
  412. #define NT_S390_CTRS 0x304
  413. #define NT_S390_PREFIX 0x305
  414. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  415. #define NT_S390_LAST_BREAK 0x306
  416. #define NT_S390_SYSTEM_CALL 0x307
  417. #define NT_S390_TDB 0x308
  418. #define NT_ARM_VFP 0x400
  419. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  420. #define NT_ARM_TLS 0x401
  421. #define NT_ARM_HW_BREAK 0x402
  422. #define NT_ARM_HW_WATCH 0x403
  423. #define NT_METAG_CBUF 0x500
  424. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  425. #define NT_METAG_RPIPE 0x501
  426. #define NT_METAG_TLS 0x502
  427. typedef struct elf32_note {
  428. Elf32_Word n_namesz;
  429. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  430. Elf32_Word n_descsz;
  431. Elf32_Word n_type;
  432. } Elf32_Nhdr;
  433. typedef struct elf64_note {
  434. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  435. Elf64_Word n_namesz;
  436. Elf64_Word n_descsz;
  437. Elf64_Word n_type;
  438. } Elf64_Nhdr;
  439. /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  440. #endif