1 /* DO NOT EDIT THIS FILE. 2 3 It has been auto-edited by fixincludes from: 4 5 "/tmp/ec08fa09236e3161f186f0ecaf2224fb/sysroot/usr/include/linux/a.out.h" 6 7 This had to be done to correct non-standard usages in the 8 original, manufacturer supplied header file. */ 9 10 /**************************************************************************** 11 **************************************************************************** 12 *** 13 *** This header was automatically generated from a Linux kernel header 14 *** of the same name, to make information necessary for userspace to 15 *** call into the kernel available to libc. It contains only constants, 16 *** structures, and macros generated from the original header, and thus, 17 *** contains no copyrightable information. 18 *** 19 *** To edit the content of this header, modify the corresponding 20 *** source file (e.g. under external/kernel-headers/original/) then 21 *** run bionic/libc/kernel/tools/update_all.py 22 *** 23 *** Any manual change here will be lost the next time this script will 24 *** be run. You've been warned! 25 *** 26 **************************************************************************** 27 ****************************************************************************/ 28 #ifndef _UAPI__A_OUT_GNU_H__ 29 #define _UAPI__A_OUT_GNU_H__ 30 #define __GNU_EXEC_MACROS__ 31 #ifndef __STRUCT_EXEC_OVERRIDE__ 32 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 33 #include <asm/a.out.h> 34 #endif 35 #ifndef __ASSEMBLY__ 36 enum machine_type { 37 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 38 #ifdef M_OLDSUN2 39 M__OLDSUN2 = M_OLDSUN2, 40 #else 41 M_OLDSUN2 = 0, 42 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 43 #endif 44 #ifdef M_68010 45 M__68010 = M_68010, 46 #else 47 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 48 M_68010 = 1, 49 #endif 50 #ifdef M_68020 51 M__68020 = M_68020, 52 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 53 #else 54 M_68020 = 2, 55 #endif 56 #ifdef M_SPARC 57 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 58 M__SPARC = M_SPARC, 59 #else 60 M_SPARC = 3, 61 #endif 62 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 63 M_386 = 100, 64 M_MIPS1 = 151, 65 M_MIPS2 = 152 66 }; 67 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 68 #ifndef N_MAGIC 69 #define N_MAGIC(exec) ((exec).a_info & 0xffff) 70 #endif 71 #define N_MACHTYPE(exec) ((enum machine_type)(((exec).a_info >> 16) & 0xff)) 72 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 73 #define N_FLAGS(exec) (((exec).a_info >> 24) & 0xff) 74 #define N_SET_INFO(exec, magic, type, flags) ((exec).a_info = ((magic) & 0xffff) | (((int)(type) & 0xff) << 16) | (((flags) & 0xff) << 24)) 75 #define N_SET_MAGIC(exec, magic) ((exec).a_info = (((exec).a_info & 0xffff0000) | ((magic) & 0xffff))) 76 #define N_SET_MACHTYPE(exec, machtype) ((exec).a_info = ((exec).a_info&0xff00ffff) | ((((int)(machtype))&0xff) << 16)) 77 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 78 #define N_SET_FLAGS(exec, flags) ((exec).a_info = ((exec).a_info&0x00ffffff) | (((flags) & 0xff) << 24)) 79 #define OMAGIC 0407 80 #define NMAGIC 0410 81 #define ZMAGIC 0413 82 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 83 #define QMAGIC 0314 84 #define CMAGIC 0421 85 #ifndef N_BADMAG 86 #define N_BADMAG(x) (N_MAGIC(x) != OMAGIC && N_MAGIC(x) != NMAGIC && N_MAGIC(x) != ZMAGIC && N_MAGIC(x) != QMAGIC) 87 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 88 #endif 89 #define _N_HDROFF(x) (1024 - sizeof (struct exec)) 90 #ifndef N_TXTOFF 91 #define N_TXTOFF(x) (N_MAGIC(x) == ZMAGIC ? _N_HDROFF((x)) + sizeof (struct exec) : (N_MAGIC(x) == QMAGIC ? 0 : sizeof (struct exec))) 92 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 93 #endif 94 #ifndef N_DATOFF 95 #define N_DATOFF(x) (N_TXTOFF(x) + (x).a_text) 96 #endif 97 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 98 #ifndef N_TRELOFF 99 #define N_TRELOFF(x) (N_DATOFF(x) + (x).a_data) 100 #endif 101 #ifndef N_DRELOFF 102 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 103 #define N_DRELOFF(x) (N_TRELOFF(x) + N_TRSIZE(x)) 104 #endif 105 #ifndef N_SYMOFF 106 #define N_SYMOFF(x) (N_DRELOFF(x) + N_DRSIZE(x)) 107 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 108 #endif 109 #ifndef N_STROFF 110 #define N_STROFF(x) (N_SYMOFF(x) + N_SYMSIZE(x)) 111 #endif 112 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 113 #ifndef N_TXTADDR 114 #define N_TXTADDR(x) (N_MAGIC(x) == QMAGIC ? PAGE_SIZE : 0) 115 #endif 116 #if defined(vax) || defined(hp300) || defined(pyr) 117 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 118 #define SEGMENT_SIZE page_size 119 #endif 120 #ifdef sony 121 #define SEGMENT_SIZE 0x2000 122 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 123 #endif 124 #ifdef is68k 125 #define SEGMENT_SIZE 0x20000 126 #endif 127 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 128 #if defined(m68k) && defined(PORTAR) 129 #define PAGE_SIZE 0x400 130 #define SEGMENT_SIZE PAGE_SIZE 131 #endif 132 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 133 #ifdef __linux__ 134 #include <unistd.h> 135 #if defined(__i386__) || defined(__mc68000__) 136 #define SEGMENT_SIZE 1024 137 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 138 #else 139 #ifndef SEGMENT_SIZE 140 #define SEGMENT_SIZE getpagesize() 141 #endif 142 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 143 #endif 144 #endif 145 #define _N_SEGMENT_ROUND(x) ALIGN(x, SEGMENT_SIZE) 146 #define _N_TXTENDADDR(x) (N_TXTADDR(x)+(x).a_text) 147 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 148 #ifndef N_DATADDR 149 #define N_DATADDR(x) (N_MAGIC(x)==OMAGIC? (_N_TXTENDADDR(x)) : (_N_SEGMENT_ROUND (_N_TXTENDADDR(x)))) 150 #endif 151 #ifndef N_BSSADDR 152 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 153 #define N_BSSADDR(x) (N_DATADDR(x) + (x).a_data) 154 #endif 155 #ifndef N_NLIST_DECLARED 156 struct nlist { 157 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 158 union { 159 char *n_name; 160 struct nlist *n_next; 161 long n_strx; 162 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 163 } n_un; 164 unsigned char n_type; 165 char n_other; 166 short n_desc; 167 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 168 unsigned long n_value; 169 }; 170 #endif 171 #ifndef N_UNDF 172 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 173 #define N_UNDF 0 174 #endif 175 #ifndef N_ABS 176 #define N_ABS 2 177 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 178 #endif 179 #ifndef N_TEXT 180 #define N_TEXT 4 181 #endif 182 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 183 #ifndef N_DATA 184 #define N_DATA 6 185 #endif 186 #ifndef N_BSS 187 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 188 #define N_BSS 8 189 #endif 190 #ifndef N_FN 191 #define N_FN 15 192 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 193 #endif 194 #ifndef N_EXT 195 #define N_EXT 1 196 #endif 197 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 198 #ifndef N_TYPE 199 #define N_TYPE 036 200 #endif 201 #ifndef N_STAB 202 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 203 #define N_STAB 0340 204 #endif 205 #define N_INDR 0xa 206 #define N_SETA 0x14 207 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 208 #define N_SETT 0x16 209 #define N_SETD 0x18 210 #define N_SETB 0x1A 211 #define N_SETV 0x1C 212 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 213 #ifndef N_RELOCATION_INFO_DECLARED 214 struct relocation_info 215 { 216 int r_address; 217 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 218 unsigned int r_symbolnum:24; 219 unsigned int r_pcrel:1; 220 unsigned int r_length:2; 221 unsigned int r_extern:1; 222 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 223 #ifdef NS32K 224 unsigned r_bsr:1; 225 unsigned r_disp:1; 226 unsigned r_pad:2; 227 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 228 #else 229 unsigned int r_pad:4; 230 #endif 231 }; 232 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 233 #endif 234 #endif 235 #endif 236