blob: 87691db19aa36f5dbe0d3c8e31a37a927a863cf5 [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#define E_SYMNMLEN 8
20#define E_FILNMLEN 14
21#define E_DIMNUM 4
Tao Baod7db5942015-01-28 10:07:51 -080022#define COFF_SHORT_L(ps) ((short) (((unsigned short) ((unsigned char) ps[1]) << 8) | ((unsigned short) ((unsigned char) ps[0]))))
Ben Cheng655a7c02013-10-16 16:09:24 -070023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080024#define COFF_LONG_L(ps) (((long) (((unsigned long) ((unsigned char) ps[3]) << 24) | ((unsigned long) ((unsigned char) ps[2]) << 16) | ((unsigned long) ((unsigned char) ps[1]) << 8) | ((unsigned long) ((unsigned char) ps[0])))))
25#define COFF_SHORT_H(ps) ((short) (((unsigned short) ((unsigned char) ps[0]) << 8) | ((unsigned short) ((unsigned char) ps[1]))))
26#define COFF_LONG_H(ps) (((long) (((unsigned long) ((unsigned char) ps[0]) << 24) | ((unsigned long) ((unsigned char) ps[1]) << 16) | ((unsigned long) ((unsigned char) ps[2]) << 8) | ((unsigned long) ((unsigned char) ps[3])))))
Ben Cheng655a7c02013-10-16 16:09:24 -070027#define COFF_LONG(v) COFF_LONG_L(v)
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define COFF_SHORT(v) COFF_SHORT_L(v)
30struct COFF_filehdr {
Tao Baod7db5942015-01-28 10:07:51 -080031 char f_magic[2];
32 char f_nscns[2];
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034 char f_timdat[4];
35 char f_symptr[4];
36 char f_nsyms[4];
37 char f_opthdr[2];
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039 char f_flags[2];
Ben Cheng655a7c02013-10-16 16:09:24 -070040};
41#define COFF_F_RELFLG 0000001
42#define COFF_F_EXEC 0000002
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#define COFF_F_LNNO 0000004
45#define COFF_F_LSYMS 0000010
46#define COFF_F_MINMAL 0000020
47#define COFF_F_UPDATE 0000040
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49#define COFF_F_SWABD 0000100
50#define COFF_F_AR16WR 0000200
51#define COFF_F_AR32WR 0000400
52#define COFF_F_AR32W 0001000
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54#define COFF_F_PATCH 0002000
55#define COFF_F_NODF 0002000
56#define COFF_I386MAGIC 0x14c
57#define COFF_I386BADMAG(x) (COFF_SHORT((x).f_magic) != COFF_I386MAGIC)
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59#define COFF_FILHDR struct COFF_filehdr
60#define COFF_FILHSZ sizeof(COFF_FILHDR)
Tao Baod7db5942015-01-28 10:07:51 -080061typedef struct {
62 char magic[2];
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080064 char vstamp[2];
65 char tsize[4];
66 char dsize[4];
67 char bsize[4];
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080069 char entry[4];
70 char text_start[4];
71 char data_start[4];
72} COFF_AOUTHDR;
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070074#define COFF_AOUTSZ (sizeof(COFF_AOUTHDR))
75#define COFF_STMAGIC 0401
Ben Cheng655a7c02013-10-16 16:09:24 -070076#define COFF_OMAGIC 0404
77#define COFF_JMAGIC 0407
Tao Baod7db5942015-01-28 10:07:51 -080078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070079#define COFF_DMAGIC 0410
80#define COFF_ZMAGIC 0413
Ben Cheng655a7c02013-10-16 16:09:24 -070081#define COFF_SHMAGIC 0443
82struct COFF_scnhdr {
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080084 char s_name[8];
85 char s_paddr[4];
86 char s_vaddr[4];
87 char s_size[4];
Ben Cheng655a7c02013-10-16 16:09:24 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080089 char s_scnptr[4];
90 char s_relptr[4];
91 char s_lnnoptr[4];
92 char s_nreloc[2];
Ben Cheng655a7c02013-10-16 16:09:24 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080094 char s_nlnno[2];
95 char s_flags[4];
Ben Cheng655a7c02013-10-16 16:09:24 -070096};
97#define COFF_SCNHDR struct COFF_scnhdr
Tao Baod7db5942015-01-28 10:07:51 -080098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070099#define COFF_SCNHSZ sizeof(COFF_SCNHDR)
100#define COFF_TEXT ".text"
Ben Cheng655a7c02013-10-16 16:09:24 -0700101#define COFF_DATA ".data"
102#define COFF_BSS ".bss"
Tao Baod7db5942015-01-28 10:07:51 -0800103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700104#define COFF_COMMENT ".comment"
105#define COFF_LIB ".lib"
Ben Cheng655a7c02013-10-16 16:09:24 -0700106#define COFF_SECT_TEXT 0
107#define COFF_SECT_DATA 1
Tao Baod7db5942015-01-28 10:07:51 -0800108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700109#define COFF_SECT_BSS 2
110#define COFF_SECT_REQD 3
Ben Cheng655a7c02013-10-16 16:09:24 -0700111#define COFF_STYP_REG 0x00
112#define COFF_STYP_DSECT 0x01
Tao Baod7db5942015-01-28 10:07:51 -0800113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700114#define COFF_STYP_NOLOAD 0x02
115#define COFF_STYP_GROUP 0x04
Ben Cheng655a7c02013-10-16 16:09:24 -0700116#define COFF_STYP_PAD 0x08
117#define COFF_STYP_COPY 0x10
Tao Baod7db5942015-01-28 10:07:51 -0800118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700119#define COFF_STYP_TEXT 0x20
120#define COFF_STYP_DATA 0x40
Ben Cheng655a7c02013-10-16 16:09:24 -0700121#define COFF_STYP_BSS 0x80
122#define COFF_STYP_INFO 0x200
Tao Baod7db5942015-01-28 10:07:51 -0800123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700124#define COFF_STYP_OVER 0x400
125#define COFF_STYP_LIB 0x800
Ben Cheng655a7c02013-10-16 16:09:24 -0700126struct COFF_slib {
Tao Baod7db5942015-01-28 10:07:51 -0800127 char sl_entsz[4];
Ben Cheng655a7c02013-10-16 16:09:24 -0700128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800129 char sl_pathndx[4];
130};
Ben Cheng655a7c02013-10-16 16:09:24 -0700131#define COFF_SLIBHD struct COFF_slib
132#define COFF_SLIBSZ sizeof(COFF_SLIBHD)
Tao Baod7db5942015-01-28 10:07:51 -0800133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700134struct COFF_lineno {
Tao Baod7db5942015-01-28 10:07:51 -0800135 union {
136 char l_symndx[4];
137 char l_paddr[4];
Ben Cheng655a7c02013-10-16 16:09:24 -0700138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800139 } l_addr;
140 char l_lnno[2];
Ben Cheng655a7c02013-10-16 16:09:24 -0700141};
142#define COFF_LINENO struct COFF_lineno
Tao Baod7db5942015-01-28 10:07:51 -0800143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700144#define COFF_LINESZ 6
145#define COFF_E_SYMNMLEN 8
Ben Cheng655a7c02013-10-16 16:09:24 -0700146#define COFF_E_FILNMLEN 14
147#define COFF_E_DIMNUM 4
Ben Cheng655a7c02013-10-16 16:09:24 -0700148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800149struct COFF_syment {
150 union {
151 char e_name[E_SYMNMLEN];
152 struct {
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 char e_zeroes[4];
155 char e_offset[4];
156 } e;
157 } e;
Ben Cheng655a7c02013-10-16 16:09:24 -0700158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800159 char e_value[4];
160 char e_scnum[2];
161 char e_type[2];
162 char e_sclass[1];
Ben Cheng655a7c02013-10-16 16:09:24 -0700163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800164 char e_numaux[1];
Ben Cheng655a7c02013-10-16 16:09:24 -0700165};
166#define COFF_N_BTMASK (0xf)
167#define COFF_N_TMASK (0x30)
Ben Cheng655a7c02013-10-16 16:09:24 -0700168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800169#define COFF_N_BTSHFT (4)
Ben Cheng655a7c02013-10-16 16:09:24 -0700170#define COFF_N_TSHIFT (2)
171union COFF_auxent {
Tao Baod7db5942015-01-28 10:07:51 -0800172 struct {
Ben Cheng655a7c02013-10-16 16:09:24 -0700173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800174 char x_tagndx[4];
175 union {
176 struct {
177 char x_lnno[2];
Ben Cheng655a7c02013-10-16 16:09:24 -0700178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800179 char x_size[2];
180 } x_lnsz;
181 char x_fsize[4];
182 } x_misc;
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 union {
185 struct {
186 char x_lnnoptr[4];
187 char x_endndx[4];
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 } x_fcn;
190 struct {
191 char x_dimen[E_DIMNUM][2];
192 } x_ary;
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 } x_fcnary;
195 char x_tvndx[2];
196 } x_sym;
197 union {
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 char x_fname[E_FILNMLEN];
200 struct {
201 char x_zeroes[4];
202 char x_offset[4];
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 } x_n;
205 } x_file;
206 struct {
207 char x_scnlen[4];
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 char x_nreloc[2];
210 char x_nlinno[2];
211 } x_scn;
212 struct {
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 char x_tvfill[4];
215 char x_tvlen[2];
216 char x_tvran[2][2];
217 } x_tv;
218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700219};
Ben Cheng655a7c02013-10-16 16:09:24 -0700220#define COFF_SYMENT struct COFF_syment
221#define COFF_SYMESZ 18
222#define COFF_AUXENT union COFF_auxent
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#define COFF_AUXESZ 18
Ben Cheng655a7c02013-10-16 16:09:24 -0700225#define COFF_ETEXT "etext"
226struct COFF_reloc {
Tao Baod7db5942015-01-28 10:07:51 -0800227 char r_vaddr[4];
Ben Cheng655a7c02013-10-16 16:09:24 -0700228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800229 char r_symndx[4];
230 char r_type[2];
Ben Cheng655a7c02013-10-16 16:09:24 -0700231};
232#define COFF_RELOC struct COFF_reloc
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#define COFF_RELSZ 10
Ben Cheng655a7c02013-10-16 16:09:24 -0700235#define COFF_DEF_DATA_SECTION_ALIGNMENT 4
236#define COFF_DEF_BSS_SECTION_ALIGNMENT 4
237#define COFF_DEF_TEXT_SECTION_ALIGNMENT 4
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#define COFF_DEF_SECTION_ALIGNMENT 4