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 #ifndef _ASM_ELF_H 20 #define _ASM_ELF_H 21 #define EF_MIPS_ARCH_1 0x00000000 22 #define EF_MIPS_ARCH_2 0x10000000 23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24 #define EF_MIPS_ARCH_3 0x20000000 25 #define EF_MIPS_ARCH_4 0x30000000 26 #define EF_MIPS_ARCH_5 0x40000000 27 #define EF_MIPS_ARCH_32 0x50000000 28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 #define EF_MIPS_ARCH_64 0x60000000 30 #define EF_MIPS_ARCH_32R2 0x70000000 31 #define EF_MIPS_ARCH_64R2 0x80000000 32 #define EF_MIPS_ABI_O32 0x00001000 33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 #define EF_MIPS_ABI_O64 0x00002000 35 #define PT_MIPS_REGINFO 0x70000000 36 #define PT_MIPS_RTPROC 0x70000001 37 #define PT_MIPS_OPTIONS 0x70000002 38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 #define EF_MIPS_NOREORDER 0x00000001 40 #define EF_MIPS_PIC 0x00000002 41 #define EF_MIPS_CPIC 0x00000004 42 #define EF_MIPS_ABI2 0x00000020 43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 #define EF_MIPS_OPTIONS_FIRST 0x00000080 45 #define EF_MIPS_32BITMODE 0x00000100 46 #define EF_MIPS_ABI 0x0000f000 47 #define EF_MIPS_ARCH 0xf0000000 48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 #define DT_MIPS_RLD_VERSION 0x70000001 50 #define DT_MIPS_TIME_STAMP 0x70000002 51 #define DT_MIPS_ICHECKSUM 0x70000003 52 #define DT_MIPS_IVERSION 0x70000004 53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 #define DT_MIPS_FLAGS 0x70000005 55 #define RHF_NONE 0x00000000 56 #define RHF_HARDWAY 0x00000001 57 #define RHF_NOTPOT 0x00000002 58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 #define RHF_SGI_ONLY 0x00000010 60 #define DT_MIPS_BASE_ADDRESS 0x70000006 61 #define DT_MIPS_CONFLICT 0x70000008 62 #define DT_MIPS_LIBLIST 0x70000009 63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64 #define DT_MIPS_LOCAL_GOTNO 0x7000000a 65 #define DT_MIPS_CONFLICTNO 0x7000000b 66 #define DT_MIPS_LIBLISTNO 0x70000010 67 #define DT_MIPS_SYMTABNO 0x70000011 68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69 #define DT_MIPS_UNREFEXTNO 0x70000012 70 #define DT_MIPS_GOTSYM 0x70000013 71 #define DT_MIPS_HIPAGENO 0x70000014 72 #define DT_MIPS_RLD_MAP 0x70000016 73 #define DT_MIPS_RLD_MAP2 0x70000035 74 75 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 76 #define R_MIPS_NONE 0 77 #define R_MIPS_16 1 78 #define R_MIPS_32 2 79 #define R_MIPS_REL32 3 80 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 81 #define R_MIPS_26 4 82 #define R_MIPS_HI16 5 83 #define R_MIPS_LO16 6 84 #define R_MIPS_GPREL16 7 85 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 86 #define R_MIPS_LITERAL 8 87 #define R_MIPS_GOT16 9 88 #define R_MIPS_PC16 10 89 #define R_MIPS_CALL16 11 90 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 91 #define R_MIPS_GPREL32 12 92 #define R_MIPS_UNUSED1 13 93 #define R_MIPS_UNUSED2 14 94 #define R_MIPS_UNUSED3 15 95 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 96 #define R_MIPS_SHIFT5 16 97 #define R_MIPS_SHIFT6 17 98 #define R_MIPS_64 18 99 #define R_MIPS_GOT_DISP 19 100 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 101 #define R_MIPS_GOT_PAGE 20 102 #define R_MIPS_GOT_OFST 21 103 #define R_MIPS_GOTHI16 22 104 #define R_MIPS_GOTLO16 23 105 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 106 #define R_MIPS_SUB 24 107 #define R_MIPS_INSERT_A 25 108 #define R_MIPS_INSERT_B 26 109 #define R_MIPS_DELETE 27 110 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 111 #define R_MIPS_HIGHER 28 112 #define R_MIPS_HIGHEST 29 113 #define R_MIPS_CALLHI16 30 114 #define R_MIPS_CALLLO16 31 115 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 116 #define R_MIPS_LOVENDOR 100 117 #define R_MIPS_HIVENDOR 127 118 #define SHN_MIPS_ACCOMON 0xff00 119 #define SHN_MIPS_TEXT 0xff01 120 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 121 #define SHN_MIPS_DATA 0xff02 122 #define SHN_MIPS_SCOMMON 0xff03 123 #define SHN_MIPS_SUNDEFINED 0xff04 124 #define SHT_MIPS_LIST 0x70000000 125 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 126 #define SHT_MIPS_CONFLICT 0x70000002 127 #define SHT_MIPS_GPTAB 0x70000003 128 #define SHT_MIPS_UCODE 0x70000004 129 #define SHT_MIPS_DEBUG 0x70000005 130 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 131 #define SHT_MIPS_REGINFO 0x70000006 132 #define SHT_MIPS_PACKAGE 0x70000007 133 #define SHT_MIPS_PACKSYM 0x70000008 134 #define SHT_MIPS_RELD 0x70000009 135 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 136 #define SHT_MIPS_IFACE 0x7000000b 137 #define SHT_MIPS_CONTENT 0x7000000c 138 #define SHT_MIPS_OPTIONS 0x7000000d 139 #define SHT_MIPS_SHDR 0x70000010 140 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 141 #define SHT_MIPS_FDESC 0x70000011 142 #define SHT_MIPS_EXTSYM 0x70000012 143 #define SHT_MIPS_DENSE 0x70000013 144 #define SHT_MIPS_PDESC 0x70000014 145 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 146 #define SHT_MIPS_LOCSYM 0x70000015 147 #define SHT_MIPS_AUXSYM 0x70000016 148 #define SHT_MIPS_OPTSYM 0x70000017 149 #define SHT_MIPS_LOCSTR 0x70000018 150 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 151 #define SHT_MIPS_LINE 0x70000019 152 #define SHT_MIPS_RFDESC 0x7000001a 153 #define SHT_MIPS_DELTASYM 0x7000001b 154 #define SHT_MIPS_DELTAINST 0x7000001c 155 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 156 #define SHT_MIPS_DELTACLASS 0x7000001d 157 #define SHT_MIPS_DWARF 0x7000001e 158 #define SHT_MIPS_DELTADECL 0x7000001f 159 #define SHT_MIPS_SYMBOL_LIB 0x70000020 160 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 161 #define SHT_MIPS_EVENTS 0x70000021 162 #define SHT_MIPS_TRANSLATE 0x70000022 163 #define SHT_MIPS_PIXIE 0x70000023 164 #define SHT_MIPS_XLATE 0x70000024 165 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 166 #define SHT_MIPS_XLATE_DEBUG 0x70000025 167 #define SHT_MIPS_WHIRL 0x70000026 168 #define SHT_MIPS_EH_REGION 0x70000027 169 #define SHT_MIPS_XLATE_OLD 0x70000028 170 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 171 #define SHT_MIPS_PDR_EXCEPTION 0x70000029 172 #define SHF_MIPS_GPREL 0x10000000 173 #define SHF_MIPS_MERGE 0x20000000 174 #define SHF_MIPS_ADDR 0x40000000 175 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 176 #define SHF_MIPS_STRING 0x80000000 177 #define SHF_MIPS_NOSTRIP 0x08000000 178 #define SHF_MIPS_LOCAL 0x04000000 179 #define SHF_MIPS_NAMES 0x02000000 180 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 181 #define SHF_MIPS_NODUPES 0x01000000 182 #ifndef ELF_ARCH 183 #define ELF_NGREG 45 184 #define ELF_NFPREG 33 185 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 186 typedef unsigned long elf_greg_t; 187 typedef elf_greg_t elf_gregset_t[ELF_NGREG]; 188 typedef double elf_fpreg_t; 189 typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG]; 190 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 191 #define elf_check_arch(hdr) ({ int __res = 1; struct elfhdr *__h = (hdr); if (__h->e_machine != EM_MIPS) __res = 0; if (__h->e_ident[EI_CLASS] != ELFCLASS32) __res = 0; if ((__h->e_flags & EF_MIPS_ABI2) != 0) __res = 0; if (((__h->e_flags & EF_MIPS_ABI) != 0) && ((__h->e_flags & EF_MIPS_ABI) != EF_MIPS_ABI_O32)) __res = 0; __res; }) 192 #define ELF_CLASS ELFCLASS32 193 #ifdef __MIPSEB__ 194 #define ELF_DATA ELFDATA2MSB 195 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 196 #elif __MIPSEL__ 197 #define ELF_DATA ELFDATA2LSB 198 #endif 199 #define ELF_ARCH EM_MIPS 200 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 201 #endif 202 struct mips_abi; 203 #define SET_PERSONALITY(ex, ibcs2) do { if (ibcs2) set_personality(PER_SVR4); set_personality(PER_LINUX); current->thread.abi = &mips_abi; } while (0) 204 struct task_struct; 205 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 206 #define ELF_CORE_COPY_REGS(elf_regs, regs) elf_dump_regs((elf_greg_t *)&(elf_regs), regs); 207 #define ELF_CORE_COPY_TASK_REGS(tsk, elf_regs) dump_task_regs(tsk, elf_regs) 208 #define ELF_CORE_COPY_FPREGS(tsk, elf_fpregs) dump_task_fpu(tsk, elf_fpregs) 209 #define USE_ELF_CORE_DUMP 210 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 211 #define ELF_EXEC_PAGESIZE PAGE_SIZE 212 #define ELF_HWCAP (0) 213 #define ELF_PLATFORM (NULL) 214 #define ELF_PLAT_INIT(_r, load_addr) do { _r->regs[1] = _r->regs[2] = _r->regs[3] = _r->regs[4] = 0; _r->regs[5] = _r->regs[6] = _r->regs[7] = _r->regs[8] = 0; _r->regs[9] = _r->regs[10] = _r->regs[11] = _r->regs[12] = 0; _r->regs[13] = _r->regs[14] = _r->regs[15] = _r->regs[16] = 0; _r->regs[17] = _r->regs[18] = _r->regs[19] = _r->regs[20] = 0; _r->regs[21] = _r->regs[22] = _r->regs[23] = _r->regs[24] = 0; _r->regs[25] = _r->regs[26] = _r->regs[27] = _r->regs[28] = 0; _r->regs[30] = _r->regs[31] = 0; } while (0) 215 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 216 #ifndef ELF_ET_DYN_BASE 217 #define ELF_ET_DYN_BASE (TASK_SIZE / 3 * 2) 218 #endif 219 #endif 220 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 221