Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 1 | #ifndef _ELF_H |
Rich Felker | 57d5fff | 2012-06-15 21:52:53 -0400 | [diff] [blame] | 2 | #define _ELF_H |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 3 | |
| 4 | #ifdef __cplusplus |
| 5 | extern "C" { |
| 6 | #endif |
| 7 | |
| 8 | #include <stdint.h> |
| 9 | |
| 10 | typedef uint16_t Elf32_Half; |
| 11 | typedef uint16_t Elf64_Half; |
| 12 | |
| 13 | typedef uint32_t Elf32_Word; |
| 14 | typedef int32_t Elf32_Sword; |
| 15 | typedef uint32_t Elf64_Word; |
| 16 | typedef int32_t Elf64_Sword; |
| 17 | |
| 18 | typedef uint64_t Elf32_Xword; |
| 19 | typedef int64_t Elf32_Sxword; |
| 20 | typedef uint64_t Elf64_Xword; |
| 21 | typedef int64_t Elf64_Sxword; |
| 22 | |
| 23 | typedef uint32_t Elf32_Addr; |
| 24 | typedef uint64_t Elf64_Addr; |
| 25 | |
| 26 | typedef uint32_t Elf32_Off; |
| 27 | typedef uint64_t Elf64_Off; |
| 28 | |
| 29 | typedef uint16_t Elf32_Section; |
| 30 | typedef uint16_t Elf64_Section; |
| 31 | |
| 32 | typedef Elf32_Half Elf32_Versym; |
| 33 | typedef Elf64_Half Elf64_Versym; |
| 34 | |
| 35 | #define EI_NIDENT (16) |
| 36 | |
| 37 | typedef struct { |
| 38 | unsigned char e_ident[EI_NIDENT]; |
| 39 | Elf32_Half e_type; |
| 40 | Elf32_Half e_machine; |
| 41 | Elf32_Word e_version; |
| 42 | Elf32_Addr e_entry; |
| 43 | Elf32_Off e_phoff; |
| 44 | Elf32_Off e_shoff; |
| 45 | Elf32_Word e_flags; |
| 46 | Elf32_Half e_ehsize; |
| 47 | Elf32_Half e_phentsize; |
| 48 | Elf32_Half e_phnum; |
| 49 | Elf32_Half e_shentsize; |
| 50 | Elf32_Half e_shnum; |
| 51 | Elf32_Half e_shstrndx; |
| 52 | } Elf32_Ehdr; |
| 53 | |
| 54 | typedef struct { |
| 55 | unsigned char e_ident[EI_NIDENT]; |
| 56 | Elf64_Half e_type; |
| 57 | Elf64_Half e_machine; |
| 58 | Elf64_Word e_version; |
| 59 | Elf64_Addr e_entry; |
| 60 | Elf64_Off e_phoff; |
| 61 | Elf64_Off e_shoff; |
| 62 | Elf64_Word e_flags; |
| 63 | Elf64_Half e_ehsize; |
| 64 | Elf64_Half e_phentsize; |
| 65 | Elf64_Half e_phnum; |
| 66 | Elf64_Half e_shentsize; |
| 67 | Elf64_Half e_shnum; |
| 68 | Elf64_Half e_shstrndx; |
| 69 | } Elf64_Ehdr; |
| 70 | |
| 71 | #define EI_MAG0 0 |
| 72 | #define ELFMAG0 0x7f |
| 73 | |
| 74 | #define EI_MAG1 1 |
| 75 | #define ELFMAG1 'E' |
| 76 | |
| 77 | #define EI_MAG2 2 |
| 78 | #define ELFMAG2 'L' |
| 79 | |
| 80 | #define EI_MAG3 3 |
| 81 | #define ELFMAG3 'F' |
| 82 | |
| 83 | |
| 84 | #define ELFMAG "\177ELF" |
| 85 | #define SELFMAG 4 |
| 86 | |
| 87 | #define EI_CLASS 4 |
| 88 | #define ELFCLASSNONE 0 |
| 89 | #define ELFCLASS32 1 |
| 90 | #define ELFCLASS64 2 |
| 91 | #define ELFCLASSNUM 3 |
| 92 | |
| 93 | #define EI_DATA 5 |
| 94 | #define ELFDATANONE 0 |
| 95 | #define ELFDATA2LSB 1 |
| 96 | #define ELFDATA2MSB 2 |
| 97 | #define ELFDATANUM 3 |
| 98 | |
| 99 | #define EI_VERSION 6 |
| 100 | |
| 101 | |
| 102 | #define EI_OSABI 7 |
| 103 | #define ELFOSABI_NONE 0 |
| 104 | #define ELFOSABI_SYSV 0 |
| 105 | #define ELFOSABI_HPUX 1 |
| 106 | #define ELFOSABI_NETBSD 2 |
| 107 | #define ELFOSABI_LINUX 3 |
Szabolcs Nagy | 268375c | 2013-09-15 14:53:34 +0000 | [diff] [blame] | 108 | #define ELFOSABI_GNU 3 |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 109 | #define ELFOSABI_SOLARIS 6 |
| 110 | #define ELFOSABI_AIX 7 |
| 111 | #define ELFOSABI_IRIX 8 |
| 112 | #define ELFOSABI_FREEBSD 9 |
| 113 | #define ELFOSABI_TRU64 10 |
| 114 | #define ELFOSABI_MODESTO 11 |
| 115 | #define ELFOSABI_OPENBSD 12 |
| 116 | #define ELFOSABI_ARM 97 |
| 117 | #define ELFOSABI_STANDALONE 255 |
| 118 | |
| 119 | #define EI_ABIVERSION 8 |
| 120 | |
| 121 | #define EI_PAD 9 |
| 122 | |
| 123 | |
| 124 | |
| 125 | #define ET_NONE 0 |
| 126 | #define ET_REL 1 |
| 127 | #define ET_EXEC 2 |
| 128 | #define ET_DYN 3 |
| 129 | #define ET_CORE 4 |
| 130 | #define ET_NUM 5 |
| 131 | #define ET_LOOS 0xfe00 |
| 132 | #define ET_HIOS 0xfeff |
| 133 | #define ET_LOPROC 0xff00 |
| 134 | #define ET_HIPROC 0xffff |
| 135 | |
| 136 | |
| 137 | |
| 138 | #define EM_NONE 0 |
| 139 | #define EM_M32 1 |
| 140 | #define EM_SPARC 2 |
| 141 | #define EM_386 3 |
| 142 | #define EM_68K 4 |
| 143 | #define EM_88K 5 |
| 144 | #define EM_860 7 |
| 145 | #define EM_MIPS 8 |
| 146 | #define EM_S370 9 |
| 147 | #define EM_MIPS_RS3_LE 10 |
| 148 | |
| 149 | #define EM_PARISC 15 |
| 150 | #define EM_VPP500 17 |
| 151 | #define EM_SPARC32PLUS 18 |
| 152 | #define EM_960 19 |
| 153 | #define EM_PPC 20 |
| 154 | #define EM_PPC64 21 |
| 155 | #define EM_S390 22 |
| 156 | |
| 157 | #define EM_V800 36 |
| 158 | #define EM_FR20 37 |
| 159 | #define EM_RH32 38 |
| 160 | #define EM_RCE 39 |
| 161 | #define EM_ARM 40 |
| 162 | #define EM_FAKE_ALPHA 41 |
| 163 | #define EM_SH 42 |
| 164 | #define EM_SPARCV9 43 |
| 165 | #define EM_TRICORE 44 |
| 166 | #define EM_ARC 45 |
| 167 | #define EM_H8_300 46 |
| 168 | #define EM_H8_300H 47 |
| 169 | #define EM_H8S 48 |
| 170 | #define EM_H8_500 49 |
| 171 | #define EM_IA_64 50 |
| 172 | #define EM_MIPS_X 51 |
| 173 | #define EM_COLDFIRE 52 |
| 174 | #define EM_68HC12 53 |
| 175 | #define EM_MMA 54 |
| 176 | #define EM_PCP 55 |
| 177 | #define EM_NCPU 56 |
| 178 | #define EM_NDR1 57 |
| 179 | #define EM_STARCORE 58 |
| 180 | #define EM_ME16 59 |
| 181 | #define EM_ST100 60 |
| 182 | #define EM_TINYJ 61 |
| 183 | #define EM_X86_64 62 |
| 184 | #define EM_PDSP 63 |
| 185 | |
| 186 | #define EM_FX66 66 |
| 187 | #define EM_ST9PLUS 67 |
| 188 | #define EM_ST7 68 |
| 189 | #define EM_68HC16 69 |
| 190 | #define EM_68HC11 70 |
| 191 | #define EM_68HC08 71 |
| 192 | #define EM_68HC05 72 |
| 193 | #define EM_SVX 73 |
| 194 | #define EM_ST19 74 |
| 195 | #define EM_VAX 75 |
| 196 | #define EM_CRIS 76 |
| 197 | #define EM_JAVELIN 77 |
| 198 | #define EM_FIREPATH 78 |
| 199 | #define EM_ZSP 79 |
| 200 | #define EM_MMIX 80 |
| 201 | #define EM_HUANY 81 |
| 202 | #define EM_PRISM 82 |
| 203 | #define EM_AVR 83 |
| 204 | #define EM_FR30 84 |
| 205 | #define EM_D10V 85 |
| 206 | #define EM_D30V 86 |
| 207 | #define EM_V850 87 |
| 208 | #define EM_M32R 88 |
| 209 | #define EM_MN10300 89 |
| 210 | #define EM_MN10200 90 |
| 211 | #define EM_PJ 91 |
Stefan Kristiansson | 200d154 | 2014-07-17 22:09:10 +0300 | [diff] [blame] | 212 | #define EM_OR1K 92 |
Szabolcs Nagy | 308e4bc | 2016-04-20 13:14:13 +0200 | [diff] [blame] | 213 | #define EM_OPENRISC 92 |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 214 | #define EM_ARC_A5 93 |
| 215 | #define EM_XTENSA 94 |
Szabolcs Nagy | 347d061 | 2016-04-20 13:17:31 +0200 | [diff] [blame] | 216 | #define EM_ALTERA_NIOS2 113 |
Szabolcs Nagy | 268375c | 2013-09-15 14:53:34 +0000 | [diff] [blame] | 217 | #define EM_AARCH64 183 |
| 218 | #define EM_TILEPRO 188 |
| 219 | #define EM_MICROBLAZE 189 |
| 220 | #define EM_TILEGX 191 |
| 221 | #define EM_NUM 192 |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 222 | #define EM_ALPHA 0x9026 |
| 223 | |
| 224 | #define EV_NONE 0 |
| 225 | #define EV_CURRENT 1 |
| 226 | #define EV_NUM 2 |
| 227 | |
| 228 | typedef struct { |
| 229 | Elf32_Word sh_name; |
| 230 | Elf32_Word sh_type; |
| 231 | Elf32_Word sh_flags; |
| 232 | Elf32_Addr sh_addr; |
| 233 | Elf32_Off sh_offset; |
| 234 | Elf32_Word sh_size; |
| 235 | Elf32_Word sh_link; |
| 236 | Elf32_Word sh_info; |
| 237 | Elf32_Word sh_addralign; |
| 238 | Elf32_Word sh_entsize; |
| 239 | } Elf32_Shdr; |
| 240 | |
| 241 | typedef struct { |
| 242 | Elf64_Word sh_name; |
| 243 | Elf64_Word sh_type; |
| 244 | Elf64_Xword sh_flags; |
| 245 | Elf64_Addr sh_addr; |
| 246 | Elf64_Off sh_offset; |
| 247 | Elf64_Xword sh_size; |
| 248 | Elf64_Word sh_link; |
| 249 | Elf64_Word sh_info; |
| 250 | Elf64_Xword sh_addralign; |
| 251 | Elf64_Xword sh_entsize; |
| 252 | } Elf64_Shdr; |
| 253 | |
| 254 | |
| 255 | |
| 256 | #define SHN_UNDEF 0 |
| 257 | #define SHN_LORESERVE 0xff00 |
| 258 | #define SHN_LOPROC 0xff00 |
| 259 | #define SHN_BEFORE 0xff00 |
| 260 | |
| 261 | #define SHN_AFTER 0xff01 |
| 262 | |
| 263 | #define SHN_HIPROC 0xff1f |
| 264 | #define SHN_LOOS 0xff20 |
| 265 | #define SHN_HIOS 0xff3f |
| 266 | #define SHN_ABS 0xfff1 |
| 267 | #define SHN_COMMON 0xfff2 |
| 268 | #define SHN_XINDEX 0xffff |
| 269 | #define SHN_HIRESERVE 0xffff |
| 270 | |
| 271 | |
| 272 | |
| 273 | #define SHT_NULL 0 |
| 274 | #define SHT_PROGBITS 1 |
| 275 | #define SHT_SYMTAB 2 |
| 276 | #define SHT_STRTAB 3 |
| 277 | #define SHT_RELA 4 |
| 278 | #define SHT_HASH 5 |
| 279 | #define SHT_DYNAMIC 6 |
| 280 | #define SHT_NOTE 7 |
| 281 | #define SHT_NOBITS 8 |
| 282 | #define SHT_REL 9 |
| 283 | #define SHT_SHLIB 10 |
| 284 | #define SHT_DYNSYM 11 |
| 285 | #define SHT_INIT_ARRAY 14 |
| 286 | #define SHT_FINI_ARRAY 15 |
| 287 | #define SHT_PREINIT_ARRAY 16 |
| 288 | #define SHT_GROUP 17 |
| 289 | #define SHT_SYMTAB_SHNDX 18 |
| 290 | #define SHT_NUM 19 |
| 291 | #define SHT_LOOS 0x60000000 |
| 292 | #define SHT_GNU_ATTRIBUTES 0x6ffffff5 |
| 293 | #define SHT_GNU_HASH 0x6ffffff6 |
| 294 | #define SHT_GNU_LIBLIST 0x6ffffff7 |
| 295 | #define SHT_CHECKSUM 0x6ffffff8 |
| 296 | #define SHT_LOSUNW 0x6ffffffa |
| 297 | #define SHT_SUNW_move 0x6ffffffa |
| 298 | #define SHT_SUNW_COMDAT 0x6ffffffb |
| 299 | #define SHT_SUNW_syminfo 0x6ffffffc |
| 300 | #define SHT_GNU_verdef 0x6ffffffd |
| 301 | #define SHT_GNU_verneed 0x6ffffffe |
| 302 | #define SHT_GNU_versym 0x6fffffff |
| 303 | #define SHT_HISUNW 0x6fffffff |
| 304 | #define SHT_HIOS 0x6fffffff |
| 305 | #define SHT_LOPROC 0x70000000 |
| 306 | #define SHT_HIPROC 0x7fffffff |
| 307 | #define SHT_LOUSER 0x80000000 |
| 308 | #define SHT_HIUSER 0x8fffffff |
| 309 | |
| 310 | #define SHF_WRITE (1 << 0) |
| 311 | #define SHF_ALLOC (1 << 1) |
| 312 | #define SHF_EXECINSTR (1 << 2) |
| 313 | #define SHF_MERGE (1 << 4) |
| 314 | #define SHF_STRINGS (1 << 5) |
| 315 | #define SHF_INFO_LINK (1 << 6) |
| 316 | #define SHF_LINK_ORDER (1 << 7) |
| 317 | #define SHF_OS_NONCONFORMING (1 << 8) |
| 318 | |
| 319 | #define SHF_GROUP (1 << 9) |
| 320 | #define SHF_TLS (1 << 10) |
Szabolcs Nagy | af17dc4 | 2016-04-20 13:19:08 +0200 | [diff] [blame^] | 321 | #define SHF_COMPRESSED (1 << 11) |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 322 | #define SHF_MASKOS 0x0ff00000 |
| 323 | #define SHF_MASKPROC 0xf0000000 |
| 324 | #define SHF_ORDERED (1 << 30) |
Rich Felker | e98a546 | 2015-05-01 13:35:51 -0400 | [diff] [blame] | 325 | #define SHF_EXCLUDE (1U << 31) |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 326 | |
Szabolcs Nagy | af17dc4 | 2016-04-20 13:19:08 +0200 | [diff] [blame^] | 327 | typedef struct |
| 328 | { |
| 329 | Elf32_Word ch_type; |
| 330 | Elf32_Word ch_size; |
| 331 | Elf32_Word ch_addralign; |
| 332 | } Elf32_Chdr; |
| 333 | |
| 334 | typedef struct |
| 335 | { |
| 336 | Elf64_Word ch_type; |
| 337 | Elf64_Word ch_reserved; |
| 338 | Elf64_Xword ch_size; |
| 339 | Elf64_Xword ch_addralign; |
| 340 | } Elf64_Chdr; |
| 341 | |
| 342 | #define ELFCOMPRESS_ZLIB 1 |
| 343 | #define ELFCOMPRESS_LOOS 0x60000000 |
| 344 | #define ELFCOMPRESS_HIOS 0x6fffffff |
| 345 | #define ELFCOMPRESS_LOPROC 0x70000000 |
| 346 | #define ELFCOMPRESS_HIPROC 0x7fffffff |
| 347 | |
| 348 | |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 349 | #define GRP_COMDAT 0x1 |
| 350 | |
| 351 | typedef struct { |
| 352 | Elf32_Word st_name; |
| 353 | Elf32_Addr st_value; |
| 354 | Elf32_Word st_size; |
| 355 | unsigned char st_info; |
| 356 | unsigned char st_other; |
| 357 | Elf32_Section st_shndx; |
| 358 | } Elf32_Sym; |
| 359 | |
| 360 | typedef struct { |
| 361 | Elf64_Word st_name; |
| 362 | unsigned char st_info; |
| 363 | unsigned char st_other; |
| 364 | Elf64_Section st_shndx; |
| 365 | Elf64_Addr st_value; |
| 366 | Elf64_Xword st_size; |
| 367 | } Elf64_Sym; |
| 368 | |
| 369 | typedef struct { |
| 370 | Elf32_Half si_boundto; |
| 371 | Elf32_Half si_flags; |
| 372 | } Elf32_Syminfo; |
| 373 | |
| 374 | typedef struct { |
| 375 | Elf64_Half si_boundto; |
| 376 | Elf64_Half si_flags; |
| 377 | } Elf64_Syminfo; |
| 378 | |
| 379 | #define SYMINFO_BT_SELF 0xffff |
| 380 | #define SYMINFO_BT_PARENT 0xfffe |
| 381 | #define SYMINFO_BT_LOWRESERVE 0xff00 |
| 382 | |
| 383 | #define SYMINFO_FLG_DIRECT 0x0001 |
| 384 | #define SYMINFO_FLG_PASSTHRU 0x0002 |
| 385 | #define SYMINFO_FLG_COPY 0x0004 |
| 386 | #define SYMINFO_FLG_LAZYLOAD 0x0008 |
| 387 | |
| 388 | #define SYMINFO_NONE 0 |
| 389 | #define SYMINFO_CURRENT 1 |
| 390 | #define SYMINFO_NUM 2 |
| 391 | |
| 392 | #define ELF32_ST_BIND(val) (((unsigned char) (val)) >> 4) |
| 393 | #define ELF32_ST_TYPE(val) ((val) & 0xf) |
| 394 | #define ELF32_ST_INFO(bind, type) (((bind) << 4) + ((type) & 0xf)) |
| 395 | |
| 396 | #define ELF64_ST_BIND(val) ELF32_ST_BIND (val) |
| 397 | #define ELF64_ST_TYPE(val) ELF32_ST_TYPE (val) |
| 398 | #define ELF64_ST_INFO(bind, type) ELF32_ST_INFO ((bind), (type)) |
| 399 | |
| 400 | #define STB_LOCAL 0 |
| 401 | #define STB_GLOBAL 1 |
| 402 | #define STB_WEAK 2 |
| 403 | #define STB_NUM 3 |
| 404 | #define STB_LOOS 10 |
| 405 | #define STB_GNU_UNIQUE 10 |
| 406 | #define STB_HIOS 12 |
| 407 | #define STB_LOPROC 13 |
| 408 | #define STB_HIPROC 15 |
| 409 | |
| 410 | #define STT_NOTYPE 0 |
| 411 | #define STT_OBJECT 1 |
| 412 | #define STT_FUNC 2 |
| 413 | #define STT_SECTION 3 |
| 414 | #define STT_FILE 4 |
| 415 | #define STT_COMMON 5 |
| 416 | #define STT_TLS 6 |
| 417 | #define STT_NUM 7 |
| 418 | #define STT_LOOS 10 |
| 419 | #define STT_GNU_IFUNC 10 |
| 420 | #define STT_HIOS 12 |
| 421 | #define STT_LOPROC 13 |
| 422 | #define STT_HIPROC 15 |
| 423 | |
| 424 | #define STN_UNDEF 0 |
| 425 | |
| 426 | #define ELF32_ST_VISIBILITY(o) ((o) & 0x03) |
| 427 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) |
| 428 | |
| 429 | #define STV_DEFAULT 0 |
| 430 | #define STV_INTERNAL 1 |
| 431 | #define STV_HIDDEN 2 |
| 432 | #define STV_PROTECTED 3 |
| 433 | |
| 434 | |
| 435 | |
| 436 | |
| 437 | typedef struct |
| 438 | { |
| 439 | Elf32_Addr r_offset; |
| 440 | Elf32_Word r_info; |
| 441 | } Elf32_Rel; |
| 442 | |
| 443 | typedef struct { |
| 444 | Elf64_Addr r_offset; |
| 445 | Elf64_Xword r_info; |
| 446 | } Elf64_Rel; |
| 447 | |
| 448 | |
| 449 | |
| 450 | typedef struct { |
| 451 | Elf32_Addr r_offset; |
| 452 | Elf32_Word r_info; |
| 453 | Elf32_Sword r_addend; |
| 454 | } Elf32_Rela; |
| 455 | |
| 456 | typedef struct { |
| 457 | Elf64_Addr r_offset; |
| 458 | Elf64_Xword r_info; |
| 459 | Elf64_Sxword r_addend; |
| 460 | } Elf64_Rela; |
| 461 | |
| 462 | |
| 463 | |
| 464 | #define ELF32_R_SYM(val) ((val) >> 8) |
| 465 | #define ELF32_R_TYPE(val) ((val) & 0xff) |
| 466 | #define ELF32_R_INFO(sym, type) (((sym) << 8) + ((type) & 0xff)) |
| 467 | |
| 468 | #define ELF64_R_SYM(i) ((i) >> 32) |
| 469 | #define ELF64_R_TYPE(i) ((i) & 0xffffffff) |
| 470 | #define ELF64_R_INFO(sym,type) ((((Elf64_Xword) (sym)) << 32) + (type)) |
| 471 | |
| 472 | |
| 473 | |
| 474 | typedef struct { |
| 475 | Elf32_Word p_type; |
| 476 | Elf32_Off p_offset; |
| 477 | Elf32_Addr p_vaddr; |
| 478 | Elf32_Addr p_paddr; |
| 479 | Elf32_Word p_filesz; |
| 480 | Elf32_Word p_memsz; |
| 481 | Elf32_Word p_flags; |
| 482 | Elf32_Word p_align; |
| 483 | } Elf32_Phdr; |
| 484 | |
| 485 | typedef struct { |
| 486 | Elf64_Word p_type; |
| 487 | Elf64_Word p_flags; |
| 488 | Elf64_Off p_offset; |
| 489 | Elf64_Addr p_vaddr; |
| 490 | Elf64_Addr p_paddr; |
| 491 | Elf64_Xword p_filesz; |
| 492 | Elf64_Xword p_memsz; |
| 493 | Elf64_Xword p_align; |
| 494 | } Elf64_Phdr; |
| 495 | |
| 496 | |
| 497 | |
| 498 | #define PT_NULL 0 |
| 499 | #define PT_LOAD 1 |
| 500 | #define PT_DYNAMIC 2 |
| 501 | #define PT_INTERP 3 |
| 502 | #define PT_NOTE 4 |
| 503 | #define PT_SHLIB 5 |
| 504 | #define PT_PHDR 6 |
| 505 | #define PT_TLS 7 |
| 506 | #define PT_NUM 8 |
| 507 | #define PT_LOOS 0x60000000 |
| 508 | #define PT_GNU_EH_FRAME 0x6474e550 |
| 509 | #define PT_GNU_STACK 0x6474e551 |
| 510 | #define PT_GNU_RELRO 0x6474e552 |
| 511 | #define PT_LOSUNW 0x6ffffffa |
| 512 | #define PT_SUNWBSS 0x6ffffffa |
| 513 | #define PT_SUNWSTACK 0x6ffffffb |
| 514 | #define PT_HISUNW 0x6fffffff |
| 515 | #define PT_HIOS 0x6fffffff |
| 516 | #define PT_LOPROC 0x70000000 |
| 517 | #define PT_HIPROC 0x7fffffff |
| 518 | |
| 519 | |
Szabolcs Nagy | 268375c | 2013-09-15 14:53:34 +0000 | [diff] [blame] | 520 | #define PN_XNUM 0xffff |
| 521 | |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 522 | |
| 523 | #define PF_X (1 << 0) |
| 524 | #define PF_W (1 << 1) |
| 525 | #define PF_R (1 << 2) |
| 526 | #define PF_MASKOS 0x0ff00000 |
| 527 | #define PF_MASKPROC 0xf0000000 |
| 528 | |
| 529 | |
| 530 | |
| 531 | #define NT_PRSTATUS 1 |
| 532 | #define NT_FPREGSET 2 |
| 533 | #define NT_PRPSINFO 3 |
| 534 | #define NT_PRXREG 4 |
| 535 | #define NT_TASKSTRUCT 4 |
| 536 | #define NT_PLATFORM 5 |
| 537 | #define NT_AUXV 6 |
| 538 | #define NT_GWINDOWS 7 |
| 539 | #define NT_ASRS 8 |
| 540 | #define NT_PSTATUS 10 |
| 541 | #define NT_PSINFO 13 |
| 542 | #define NT_PRCRED 14 |
| 543 | #define NT_UTSNAME 15 |
| 544 | #define NT_LWPSTATUS 16 |
| 545 | #define NT_LWPSINFO 17 |
| 546 | #define NT_PRFPXREG 20 |
Szabolcs Nagy | 268375c | 2013-09-15 14:53:34 +0000 | [diff] [blame] | 547 | #define NT_SIGINFO 0x53494749 |
| 548 | #define NT_FILE 0x46494c45 |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 549 | #define NT_PRXFPREG 0x46e62b7f |
| 550 | #define NT_PPC_VMX 0x100 |
| 551 | #define NT_PPC_SPE 0x101 |
| 552 | #define NT_PPC_VSX 0x102 |
| 553 | #define NT_386_TLS 0x200 |
| 554 | #define NT_386_IOPERM 0x201 |
Szabolcs Nagy | 268375c | 2013-09-15 14:53:34 +0000 | [diff] [blame] | 555 | #define NT_X86_XSTATE 0x202 |
| 556 | #define NT_S390_HIGH_GPRS 0x300 |
| 557 | #define NT_S390_TIMER 0x301 |
| 558 | #define NT_S390_TODCMP 0x302 |
| 559 | #define NT_S390_TODPREG 0x303 |
| 560 | #define NT_S390_CTRS 0x304 |
| 561 | #define NT_S390_PREFIX 0x305 |
| 562 | #define NT_S390_LAST_BREAK 0x306 |
| 563 | #define NT_S390_SYSTEM_CALL 0x307 |
| 564 | #define NT_S390_TDB 0x308 |
| 565 | #define NT_ARM_VFP 0x400 |
| 566 | #define NT_ARM_TLS 0x401 |
| 567 | #define NT_ARM_HW_BREAK 0x402 |
| 568 | #define NT_ARM_HW_WATCH 0x403 |
| 569 | #define NT_METAG_CBUF 0x500 |
| 570 | #define NT_METAG_RPIPE 0x501 |
| 571 | #define NT_METAG_TLS 0x502 |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 572 | #define NT_VERSION 1 |
| 573 | |
| 574 | |
| 575 | |
| 576 | |
| 577 | typedef struct { |
| 578 | Elf32_Sword d_tag; |
| 579 | union { |
| 580 | Elf32_Word d_val; |
| 581 | Elf32_Addr d_ptr; |
| 582 | } d_un; |
| 583 | } Elf32_Dyn; |
| 584 | |
| 585 | typedef struct { |
| 586 | Elf64_Sxword d_tag; |
| 587 | union { |
| 588 | Elf64_Xword d_val; |
| 589 | Elf64_Addr d_ptr; |
| 590 | } d_un; |
| 591 | } Elf64_Dyn; |
| 592 | |
| 593 | |
| 594 | |
| 595 | #define DT_NULL 0 |
| 596 | #define DT_NEEDED 1 |
| 597 | #define DT_PLTRELSZ 2 |
| 598 | #define DT_PLTGOT 3 |
| 599 | #define DT_HASH 4 |
| 600 | #define DT_STRTAB 5 |
| 601 | #define DT_SYMTAB 6 |
| 602 | #define DT_RELA 7 |
| 603 | #define DT_RELASZ 8 |
| 604 | #define DT_RELAENT 9 |
| 605 | #define DT_STRSZ 10 |
| 606 | #define DT_SYMENT 11 |
| 607 | #define DT_INIT 12 |
| 608 | #define DT_FINI 13 |
| 609 | #define DT_SONAME 14 |
| 610 | #define DT_RPATH 15 |
| 611 | #define DT_SYMBOLIC 16 |
| 612 | #define DT_REL 17 |
| 613 | #define DT_RELSZ 18 |
| 614 | #define DT_RELENT 19 |
| 615 | #define DT_PLTREL 20 |
| 616 | #define DT_DEBUG 21 |
| 617 | #define DT_TEXTREL 22 |
| 618 | #define DT_JMPREL 23 |
| 619 | #define DT_BIND_NOW 24 |
| 620 | #define DT_INIT_ARRAY 25 |
| 621 | #define DT_FINI_ARRAY 26 |
| 622 | #define DT_INIT_ARRAYSZ 27 |
| 623 | #define DT_FINI_ARRAYSZ 28 |
| 624 | #define DT_RUNPATH 29 |
| 625 | #define DT_FLAGS 30 |
| 626 | #define DT_ENCODING 32 |
| 627 | #define DT_PREINIT_ARRAY 32 |
| 628 | #define DT_PREINIT_ARRAYSZ 33 |
| 629 | #define DT_NUM 34 |
| 630 | #define DT_LOOS 0x6000000d |
| 631 | #define DT_HIOS 0x6ffff000 |
| 632 | #define DT_LOPROC 0x70000000 |
| 633 | #define DT_HIPROC 0x7fffffff |
| 634 | #define DT_PROCNUM DT_MIPS_NUM |
| 635 | |
| 636 | #define DT_VALRNGLO 0x6ffffd00 |
| 637 | #define DT_GNU_PRELINKED 0x6ffffdf5 |
| 638 | #define DT_GNU_CONFLICTSZ 0x6ffffdf6 |
| 639 | #define DT_GNU_LIBLISTSZ 0x6ffffdf7 |
| 640 | #define DT_CHECKSUM 0x6ffffdf8 |
| 641 | #define DT_PLTPADSZ 0x6ffffdf9 |
| 642 | #define DT_MOVEENT 0x6ffffdfa |
| 643 | #define DT_MOVESZ 0x6ffffdfb |
| 644 | #define DT_FEATURE_1 0x6ffffdfc |
| 645 | #define DT_POSFLAG_1 0x6ffffdfd |
| 646 | |
| 647 | #define DT_SYMINSZ 0x6ffffdfe |
| 648 | #define DT_SYMINENT 0x6ffffdff |
| 649 | #define DT_VALRNGHI 0x6ffffdff |
| 650 | #define DT_VALTAGIDX(tag) (DT_VALRNGHI - (tag)) |
| 651 | #define DT_VALNUM 12 |
| 652 | |
| 653 | #define DT_ADDRRNGLO 0x6ffffe00 |
| 654 | #define DT_GNU_HASH 0x6ffffef5 |
| 655 | #define DT_TLSDESC_PLT 0x6ffffef6 |
| 656 | #define DT_TLSDESC_GOT 0x6ffffef7 |
| 657 | #define DT_GNU_CONFLICT 0x6ffffef8 |
| 658 | #define DT_GNU_LIBLIST 0x6ffffef9 |
| 659 | #define DT_CONFIG 0x6ffffefa |
| 660 | #define DT_DEPAUDIT 0x6ffffefb |
| 661 | #define DT_AUDIT 0x6ffffefc |
| 662 | #define DT_PLTPAD 0x6ffffefd |
| 663 | #define DT_MOVETAB 0x6ffffefe |
| 664 | #define DT_SYMINFO 0x6ffffeff |
| 665 | #define DT_ADDRRNGHI 0x6ffffeff |
| 666 | #define DT_ADDRTAGIDX(tag) (DT_ADDRRNGHI - (tag)) |
| 667 | #define DT_ADDRNUM 11 |
| 668 | |
| 669 | |
| 670 | |
| 671 | #define DT_VERSYM 0x6ffffff0 |
| 672 | |
| 673 | #define DT_RELACOUNT 0x6ffffff9 |
| 674 | #define DT_RELCOUNT 0x6ffffffa |
| 675 | |
| 676 | |
| 677 | #define DT_FLAGS_1 0x6ffffffb |
| 678 | #define DT_VERDEF 0x6ffffffc |
| 679 | |
| 680 | #define DT_VERDEFNUM 0x6ffffffd |
| 681 | #define DT_VERNEED 0x6ffffffe |
| 682 | |
| 683 | #define DT_VERNEEDNUM 0x6fffffff |
| 684 | #define DT_VERSIONTAGIDX(tag) (DT_VERNEEDNUM - (tag)) |
| 685 | #define DT_VERSIONTAGNUM 16 |
| 686 | |
| 687 | |
| 688 | |
| 689 | #define DT_AUXILIARY 0x7ffffffd |
| 690 | #define DT_FILTER 0x7fffffff |
| 691 | #define DT_EXTRATAGIDX(tag) ((Elf32_Word)-((Elf32_Sword) (tag) <<1>>1)-1) |
| 692 | #define DT_EXTRANUM 3 |
| 693 | |
| 694 | |
| 695 | #define DF_ORIGIN 0x00000001 |
| 696 | #define DF_SYMBOLIC 0x00000002 |
| 697 | #define DF_TEXTREL 0x00000004 |
| 698 | #define DF_BIND_NOW 0x00000008 |
| 699 | #define DF_STATIC_TLS 0x00000010 |
| 700 | |
| 701 | |
| 702 | |
| 703 | #define DF_1_NOW 0x00000001 |
| 704 | #define DF_1_GLOBAL 0x00000002 |
| 705 | #define DF_1_GROUP 0x00000004 |
| 706 | #define DF_1_NODELETE 0x00000008 |
| 707 | #define DF_1_LOADFLTR 0x00000010 |
| 708 | #define DF_1_INITFIRST 0x00000020 |
| 709 | #define DF_1_NOOPEN 0x00000040 |
| 710 | #define DF_1_ORIGIN 0x00000080 |
| 711 | #define DF_1_DIRECT 0x00000100 |
| 712 | #define DF_1_TRANS 0x00000200 |
| 713 | #define DF_1_INTERPOSE 0x00000400 |
| 714 | #define DF_1_NODEFLIB 0x00000800 |
| 715 | #define DF_1_NODUMP 0x00001000 |
| 716 | #define DF_1_CONFALT 0x00002000 |
| 717 | #define DF_1_ENDFILTEE 0x00004000 |
| 718 | #define DF_1_DISPRELDNE 0x00008000 |
| 719 | #define DF_1_DISPRELPND 0x00010000 |
Szabolcs Nagy | 268375c | 2013-09-15 14:53:34 +0000 | [diff] [blame] | 720 | #define DF_1_NODIRECT 0x00020000 |
| 721 | #define DF_1_IGNMULDEF 0x00040000 |
| 722 | #define DF_1_NOKSYMS 0x00080000 |
| 723 | #define DF_1_NOHDR 0x00100000 |
| 724 | #define DF_1_EDITED 0x00200000 |
| 725 | #define DF_1_NORELOC 0x00400000 |
| 726 | #define DF_1_SYMINTPOSE 0x00800000 |
| 727 | #define DF_1_GLOBAUDIT 0x01000000 |
| 728 | #define DF_1_SINGLETON 0x02000000 |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 729 | |
| 730 | #define DTF_1_PARINIT 0x00000001 |
| 731 | #define DTF_1_CONFEXP 0x00000002 |
| 732 | |
| 733 | |
| 734 | #define DF_P1_LAZYLOAD 0x00000001 |
| 735 | #define DF_P1_GROUPPERM 0x00000002 |
| 736 | |
| 737 | |
| 738 | |
| 739 | |
| 740 | typedef struct { |
| 741 | Elf32_Half vd_version; |
| 742 | Elf32_Half vd_flags; |
| 743 | Elf32_Half vd_ndx; |
| 744 | Elf32_Half vd_cnt; |
| 745 | Elf32_Word vd_hash; |
| 746 | Elf32_Word vd_aux; |
| 747 | Elf32_Word vd_next; |
| 748 | } Elf32_Verdef; |
| 749 | |
| 750 | typedef struct { |
| 751 | Elf64_Half vd_version; |
| 752 | Elf64_Half vd_flags; |
| 753 | Elf64_Half vd_ndx; |
| 754 | Elf64_Half vd_cnt; |
| 755 | Elf64_Word vd_hash; |
| 756 | Elf64_Word vd_aux; |
| 757 | Elf64_Word vd_next; |
| 758 | } Elf64_Verdef; |
| 759 | |
| 760 | |
| 761 | |
| 762 | #define VER_DEF_NONE 0 |
| 763 | #define VER_DEF_CURRENT 1 |
| 764 | #define VER_DEF_NUM 2 |
| 765 | |
| 766 | |
| 767 | #define VER_FLG_BASE 0x1 |
| 768 | #define VER_FLG_WEAK 0x2 |
| 769 | |
| 770 | |
| 771 | #define VER_NDX_LOCAL 0 |
| 772 | #define VER_NDX_GLOBAL 1 |
| 773 | #define VER_NDX_LORESERVE 0xff00 |
| 774 | #define VER_NDX_ELIMINATE 0xff01 |
| 775 | |
| 776 | |
| 777 | |
| 778 | typedef struct { |
| 779 | Elf32_Word vda_name; |
| 780 | Elf32_Word vda_next; |
| 781 | } Elf32_Verdaux; |
| 782 | |
| 783 | typedef struct { |
| 784 | Elf64_Word vda_name; |
| 785 | Elf64_Word vda_next; |
| 786 | } Elf64_Verdaux; |
| 787 | |
| 788 | |
| 789 | |
| 790 | |
| 791 | typedef struct { |
| 792 | Elf32_Half vn_version; |
| 793 | Elf32_Half vn_cnt; |
| 794 | Elf32_Word vn_file; |
| 795 | Elf32_Word vn_aux; |
| 796 | Elf32_Word vn_next; |
| 797 | } Elf32_Verneed; |
| 798 | |
| 799 | typedef struct { |
| 800 | Elf64_Half vn_version; |
| 801 | Elf64_Half vn_cnt; |
| 802 | Elf64_Word vn_file; |
| 803 | Elf64_Word vn_aux; |
| 804 | Elf64_Word vn_next; |
| 805 | } Elf64_Verneed; |
| 806 | |
| 807 | |
| 808 | |
| 809 | #define VER_NEED_NONE 0 |
| 810 | #define VER_NEED_CURRENT 1 |
| 811 | #define VER_NEED_NUM 2 |
| 812 | |
| 813 | |
| 814 | |
| 815 | typedef struct { |
| 816 | Elf32_Word vna_hash; |
| 817 | Elf32_Half vna_flags; |
| 818 | Elf32_Half vna_other; |
| 819 | Elf32_Word vna_name; |
| 820 | Elf32_Word vna_next; |
| 821 | } Elf32_Vernaux; |
| 822 | |
| 823 | typedef struct { |
| 824 | Elf64_Word vna_hash; |
| 825 | Elf64_Half vna_flags; |
| 826 | Elf64_Half vna_other; |
| 827 | Elf64_Word vna_name; |
| 828 | Elf64_Word vna_next; |
| 829 | } Elf64_Vernaux; |
| 830 | |
| 831 | |
| 832 | |
| 833 | #define VER_FLG_WEAK 0x2 |
| 834 | |
| 835 | |
| 836 | |
| 837 | typedef struct { |
| 838 | uint32_t a_type; |
| 839 | union { |
| 840 | uint32_t a_val; |
| 841 | } a_un; |
| 842 | } Elf32_auxv_t; |
| 843 | |
| 844 | typedef struct { |
| 845 | uint64_t a_type; |
| 846 | union { |
| 847 | uint64_t a_val; |
| 848 | } a_un; |
| 849 | } Elf64_auxv_t; |
| 850 | |
| 851 | |
| 852 | |
| 853 | #define AT_NULL 0 |
| 854 | #define AT_IGNORE 1 |
| 855 | #define AT_EXECFD 2 |
| 856 | #define AT_PHDR 3 |
| 857 | #define AT_PHENT 4 |
| 858 | #define AT_PHNUM 5 |
| 859 | #define AT_PAGESZ 6 |
| 860 | #define AT_BASE 7 |
| 861 | #define AT_FLAGS 8 |
| 862 | #define AT_ENTRY 9 |
| 863 | #define AT_NOTELF 10 |
| 864 | #define AT_UID 11 |
| 865 | #define AT_EUID 12 |
| 866 | #define AT_GID 13 |
| 867 | #define AT_EGID 14 |
| 868 | #define AT_CLKTCK 17 |
| 869 | |
| 870 | |
| 871 | #define AT_PLATFORM 15 |
| 872 | #define AT_HWCAP 16 |
| 873 | |
| 874 | |
| 875 | |
| 876 | |
| 877 | #define AT_FPUCW 18 |
| 878 | |
| 879 | |
| 880 | #define AT_DCACHEBSIZE 19 |
| 881 | #define AT_ICACHEBSIZE 20 |
| 882 | #define AT_UCACHEBSIZE 21 |
| 883 | |
| 884 | |
| 885 | |
| 886 | #define AT_IGNOREPPC 22 |
| 887 | |
| 888 | #define AT_SECURE 23 |
| 889 | |
| 890 | #define AT_BASE_PLATFORM 24 |
| 891 | |
| 892 | #define AT_RANDOM 25 |
| 893 | |
Szabolcs Nagy | 268375c | 2013-09-15 14:53:34 +0000 | [diff] [blame] | 894 | #define AT_HWCAP2 26 |
| 895 | |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 896 | #define AT_EXECFN 31 |
| 897 | |
| 898 | |
| 899 | |
| 900 | #define AT_SYSINFO 32 |
| 901 | #define AT_SYSINFO_EHDR 33 |
| 902 | |
| 903 | |
| 904 | |
| 905 | #define AT_L1I_CACHESHAPE 34 |
| 906 | #define AT_L1D_CACHESHAPE 35 |
| 907 | #define AT_L2_CACHESHAPE 36 |
| 908 | #define AT_L3_CACHESHAPE 37 |
| 909 | |
| 910 | |
| 911 | |
| 912 | |
| 913 | typedef struct { |
| 914 | Elf32_Word n_namesz; |
| 915 | Elf32_Word n_descsz; |
| 916 | Elf32_Word n_type; |
| 917 | } Elf32_Nhdr; |
| 918 | |
| 919 | typedef struct { |
| 920 | Elf64_Word n_namesz; |
| 921 | Elf64_Word n_descsz; |
| 922 | Elf64_Word n_type; |
| 923 | } Elf64_Nhdr; |
| 924 | |
| 925 | |
| 926 | |
| 927 | |
| 928 | #define ELF_NOTE_SOLARIS "SUNW Solaris" |
| 929 | |
| 930 | |
| 931 | #define ELF_NOTE_GNU "GNU" |
| 932 | |
| 933 | |
| 934 | |
| 935 | |
| 936 | |
| 937 | #define ELF_NOTE_PAGESIZE_HINT 1 |
| 938 | |
| 939 | |
| 940 | #define NT_GNU_ABI_TAG 1 |
| 941 | #define ELF_NOTE_ABI NT_GNU_ABI_TAG |
| 942 | |
| 943 | |
| 944 | |
| 945 | #define ELF_NOTE_OS_LINUX 0 |
| 946 | #define ELF_NOTE_OS_GNU 1 |
| 947 | #define ELF_NOTE_OS_SOLARIS2 2 |
| 948 | #define ELF_NOTE_OS_FREEBSD 3 |
| 949 | |
| 950 | #define NT_GNU_BUILD_ID 3 |
| 951 | #define NT_GNU_GOLD_VERSION 4 |
| 952 | |
| 953 | |
| 954 | |
| 955 | typedef struct { |
| 956 | Elf32_Xword m_value; |
| 957 | Elf32_Word m_info; |
| 958 | Elf32_Word m_poffset; |
| 959 | Elf32_Half m_repeat; |
| 960 | Elf32_Half m_stride; |
| 961 | } Elf32_Move; |
| 962 | |
| 963 | typedef struct { |
| 964 | Elf64_Xword m_value; |
| 965 | Elf64_Xword m_info; |
| 966 | Elf64_Xword m_poffset; |
| 967 | Elf64_Half m_repeat; |
| 968 | Elf64_Half m_stride; |
| 969 | } Elf64_Move; |
| 970 | |
| 971 | |
| 972 | #define ELF32_M_SYM(info) ((info) >> 8) |
| 973 | #define ELF32_M_SIZE(info) ((unsigned char) (info)) |
| 974 | #define ELF32_M_INFO(sym, size) (((sym) << 8) + (unsigned char) (size)) |
| 975 | |
| 976 | #define ELF64_M_SYM(info) ELF32_M_SYM (info) |
| 977 | #define ELF64_M_SIZE(info) ELF32_M_SIZE (info) |
| 978 | #define ELF64_M_INFO(sym, size) ELF32_M_INFO (sym, size) |
| 979 | |
| 980 | #define EF_CPU32 0x00810000 |
| 981 | |
| 982 | #define R_68K_NONE 0 |
| 983 | #define R_68K_32 1 |
| 984 | #define R_68K_16 2 |
| 985 | #define R_68K_8 3 |
| 986 | #define R_68K_PC32 4 |
| 987 | #define R_68K_PC16 5 |
| 988 | #define R_68K_PC8 6 |
| 989 | #define R_68K_GOT32 7 |
| 990 | #define R_68K_GOT16 8 |
| 991 | #define R_68K_GOT8 9 |
| 992 | #define R_68K_GOT32O 10 |
| 993 | #define R_68K_GOT16O 11 |
| 994 | #define R_68K_GOT8O 12 |
| 995 | #define R_68K_PLT32 13 |
| 996 | #define R_68K_PLT16 14 |
| 997 | #define R_68K_PLT8 15 |
| 998 | #define R_68K_PLT32O 16 |
| 999 | #define R_68K_PLT16O 17 |
| 1000 | #define R_68K_PLT8O 18 |
| 1001 | #define R_68K_COPY 19 |
| 1002 | #define R_68K_GLOB_DAT 20 |
| 1003 | #define R_68K_JMP_SLOT 21 |
| 1004 | #define R_68K_RELATIVE 22 |
| 1005 | #define R_68K_NUM 23 |
| 1006 | |
| 1007 | #define R_386_NONE 0 |
| 1008 | #define R_386_32 1 |
| 1009 | #define R_386_PC32 2 |
| 1010 | #define R_386_GOT32 3 |
| 1011 | #define R_386_PLT32 4 |
| 1012 | #define R_386_COPY 5 |
| 1013 | #define R_386_GLOB_DAT 6 |
| 1014 | #define R_386_JMP_SLOT 7 |
| 1015 | #define R_386_RELATIVE 8 |
| 1016 | #define R_386_GOTOFF 9 |
| 1017 | #define R_386_GOTPC 10 |
| 1018 | #define R_386_32PLT 11 |
| 1019 | #define R_386_TLS_TPOFF 14 |
| 1020 | #define R_386_TLS_IE 15 |
| 1021 | #define R_386_TLS_GOTIE 16 |
| 1022 | #define R_386_TLS_LE 17 |
| 1023 | #define R_386_TLS_GD 18 |
| 1024 | #define R_386_TLS_LDM 19 |
| 1025 | #define R_386_16 20 |
| 1026 | #define R_386_PC16 21 |
| 1027 | #define R_386_8 22 |
| 1028 | #define R_386_PC8 23 |
| 1029 | #define R_386_TLS_GD_32 24 |
| 1030 | #define R_386_TLS_GD_PUSH 25 |
| 1031 | #define R_386_TLS_GD_CALL 26 |
| 1032 | #define R_386_TLS_GD_POP 27 |
| 1033 | #define R_386_TLS_LDM_32 28 |
| 1034 | #define R_386_TLS_LDM_PUSH 29 |
| 1035 | #define R_386_TLS_LDM_CALL 30 |
| 1036 | #define R_386_TLS_LDM_POP 31 |
| 1037 | #define R_386_TLS_LDO_32 32 |
| 1038 | #define R_386_TLS_IE_32 33 |
| 1039 | #define R_386_TLS_LE_32 34 |
| 1040 | #define R_386_TLS_DTPMOD32 35 |
| 1041 | #define R_386_TLS_DTPOFF32 36 |
| 1042 | #define R_386_TLS_TPOFF32 37 |
Szabolcs Nagy | 268375c | 2013-09-15 14:53:34 +0000 | [diff] [blame] | 1043 | #define R_386_SIZE32 38 |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 1044 | #define R_386_TLS_GOTDESC 39 |
| 1045 | #define R_386_TLS_DESC_CALL 40 |
| 1046 | #define R_386_TLS_DESC 41 |
| 1047 | #define R_386_IRELATIVE 42 |
| 1048 | #define R_386_NUM 43 |
| 1049 | |
| 1050 | |
| 1051 | |
| 1052 | |
| 1053 | |
| 1054 | #define STT_SPARC_REGISTER 13 |
| 1055 | |
| 1056 | |
| 1057 | |
| 1058 | #define EF_SPARCV9_MM 3 |
| 1059 | #define EF_SPARCV9_TSO 0 |
| 1060 | #define EF_SPARCV9_PSO 1 |
| 1061 | #define EF_SPARCV9_RMO 2 |
| 1062 | #define EF_SPARC_LEDATA 0x800000 |
| 1063 | #define EF_SPARC_EXT_MASK 0xFFFF00 |
| 1064 | #define EF_SPARC_32PLUS 0x000100 |
| 1065 | #define EF_SPARC_SUN_US1 0x000200 |
| 1066 | #define EF_SPARC_HAL_R1 0x000400 |
| 1067 | #define EF_SPARC_SUN_US3 0x000800 |
| 1068 | |
| 1069 | |
| 1070 | |
| 1071 | #define R_SPARC_NONE 0 |
| 1072 | #define R_SPARC_8 1 |
| 1073 | #define R_SPARC_16 2 |
| 1074 | #define R_SPARC_32 3 |
| 1075 | #define R_SPARC_DISP8 4 |
| 1076 | #define R_SPARC_DISP16 5 |
| 1077 | #define R_SPARC_DISP32 6 |
| 1078 | #define R_SPARC_WDISP30 7 |
| 1079 | #define R_SPARC_WDISP22 8 |
| 1080 | #define R_SPARC_HI22 9 |
| 1081 | #define R_SPARC_22 10 |
| 1082 | #define R_SPARC_13 11 |
| 1083 | #define R_SPARC_LO10 12 |
| 1084 | #define R_SPARC_GOT10 13 |
| 1085 | #define R_SPARC_GOT13 14 |
| 1086 | #define R_SPARC_GOT22 15 |
| 1087 | #define R_SPARC_PC10 16 |
| 1088 | #define R_SPARC_PC22 17 |
| 1089 | #define R_SPARC_WPLT30 18 |
| 1090 | #define R_SPARC_COPY 19 |
| 1091 | #define R_SPARC_GLOB_DAT 20 |
| 1092 | #define R_SPARC_JMP_SLOT 21 |
| 1093 | #define R_SPARC_RELATIVE 22 |
| 1094 | #define R_SPARC_UA32 23 |
| 1095 | |
| 1096 | |
| 1097 | |
| 1098 | #define R_SPARC_PLT32 24 |
| 1099 | #define R_SPARC_HIPLT22 25 |
| 1100 | #define R_SPARC_LOPLT10 26 |
| 1101 | #define R_SPARC_PCPLT32 27 |
| 1102 | #define R_SPARC_PCPLT22 28 |
| 1103 | #define R_SPARC_PCPLT10 29 |
| 1104 | #define R_SPARC_10 30 |
| 1105 | #define R_SPARC_11 31 |
| 1106 | #define R_SPARC_64 32 |
| 1107 | #define R_SPARC_OLO10 33 |
| 1108 | #define R_SPARC_HH22 34 |
| 1109 | #define R_SPARC_HM10 35 |
| 1110 | #define R_SPARC_LM22 36 |
| 1111 | #define R_SPARC_PC_HH22 37 |
| 1112 | #define R_SPARC_PC_HM10 38 |
| 1113 | #define R_SPARC_PC_LM22 39 |
| 1114 | #define R_SPARC_WDISP16 40 |
| 1115 | #define R_SPARC_WDISP19 41 |
| 1116 | #define R_SPARC_GLOB_JMP 42 |
| 1117 | #define R_SPARC_7 43 |
| 1118 | #define R_SPARC_5 44 |
| 1119 | #define R_SPARC_6 45 |
| 1120 | #define R_SPARC_DISP64 46 |
| 1121 | #define R_SPARC_PLT64 47 |
| 1122 | #define R_SPARC_HIX22 48 |
| 1123 | #define R_SPARC_LOX10 49 |
| 1124 | #define R_SPARC_H44 50 |
| 1125 | #define R_SPARC_M44 51 |
| 1126 | #define R_SPARC_L44 52 |
| 1127 | #define R_SPARC_REGISTER 53 |
| 1128 | #define R_SPARC_UA64 54 |
| 1129 | #define R_SPARC_UA16 55 |
| 1130 | #define R_SPARC_TLS_GD_HI22 56 |
| 1131 | #define R_SPARC_TLS_GD_LO10 57 |
| 1132 | #define R_SPARC_TLS_GD_ADD 58 |
| 1133 | #define R_SPARC_TLS_GD_CALL 59 |
| 1134 | #define R_SPARC_TLS_LDM_HI22 60 |
| 1135 | #define R_SPARC_TLS_LDM_LO10 61 |
| 1136 | #define R_SPARC_TLS_LDM_ADD 62 |
| 1137 | #define R_SPARC_TLS_LDM_CALL 63 |
| 1138 | #define R_SPARC_TLS_LDO_HIX22 64 |
| 1139 | #define R_SPARC_TLS_LDO_LOX10 65 |
| 1140 | #define R_SPARC_TLS_LDO_ADD 66 |
| 1141 | #define R_SPARC_TLS_IE_HI22 67 |
| 1142 | #define R_SPARC_TLS_IE_LO10 68 |
| 1143 | #define R_SPARC_TLS_IE_LD 69 |
| 1144 | #define R_SPARC_TLS_IE_LDX 70 |
| 1145 | #define R_SPARC_TLS_IE_ADD 71 |
| 1146 | #define R_SPARC_TLS_LE_HIX22 72 |
| 1147 | #define R_SPARC_TLS_LE_LOX10 73 |
| 1148 | #define R_SPARC_TLS_DTPMOD32 74 |
| 1149 | #define R_SPARC_TLS_DTPMOD64 75 |
| 1150 | #define R_SPARC_TLS_DTPOFF32 76 |
| 1151 | #define R_SPARC_TLS_DTPOFF64 77 |
| 1152 | #define R_SPARC_TLS_TPOFF32 78 |
| 1153 | #define R_SPARC_TLS_TPOFF64 79 |
| 1154 | #define R_SPARC_GOTDATA_HIX22 80 |
| 1155 | #define R_SPARC_GOTDATA_LOX10 81 |
| 1156 | #define R_SPARC_GOTDATA_OP_HIX22 82 |
| 1157 | #define R_SPARC_GOTDATA_OP_LOX10 83 |
| 1158 | #define R_SPARC_GOTDATA_OP 84 |
| 1159 | #define R_SPARC_H34 85 |
| 1160 | #define R_SPARC_SIZE32 86 |
| 1161 | #define R_SPARC_SIZE64 87 |
| 1162 | #define R_SPARC_GNU_VTINHERIT 250 |
| 1163 | #define R_SPARC_GNU_VTENTRY 251 |
| 1164 | #define R_SPARC_REV32 252 |
| 1165 | |
| 1166 | #define R_SPARC_NUM 253 |
| 1167 | |
| 1168 | |
| 1169 | |
| 1170 | #define DT_SPARC_REGISTER 0x70000001 |
| 1171 | #define DT_SPARC_NUM 2 |
| 1172 | |
| 1173 | |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 1174 | #define EF_MIPS_NOREORDER 1 |
| 1175 | #define EF_MIPS_PIC 2 |
| 1176 | #define EF_MIPS_CPIC 4 |
| 1177 | #define EF_MIPS_XGOT 8 |
| 1178 | #define EF_MIPS_64BIT_WHIRL 16 |
| 1179 | #define EF_MIPS_ABI2 32 |
| 1180 | #define EF_MIPS_ABI_ON32 64 |
Szabolcs Nagy | abbdf0f | 2016-04-20 13:17:11 +0200 | [diff] [blame] | 1181 | #define EF_MIPS_FP64 512 |
Szabolcs Nagy | d99c999 | 2014-02-25 00:12:39 +0100 | [diff] [blame] | 1182 | #define EF_MIPS_NAN2008 1024 |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 1183 | #define EF_MIPS_ARCH 0xf0000000 |
| 1184 | |
| 1185 | |
| 1186 | |
| 1187 | #define EF_MIPS_ARCH_1 0x00000000 |
| 1188 | #define EF_MIPS_ARCH_2 0x10000000 |
| 1189 | #define EF_MIPS_ARCH_3 0x20000000 |
| 1190 | #define EF_MIPS_ARCH_4 0x30000000 |
| 1191 | #define EF_MIPS_ARCH_5 0x40000000 |
Szabolcs Nagy | 268375c | 2013-09-15 14:53:34 +0000 | [diff] [blame] | 1192 | #define EF_MIPS_ARCH_32 0x50000000 |
| 1193 | #define EF_MIPS_ARCH_64 0x60000000 |
| 1194 | #define EF_MIPS_ARCH_32R2 0x70000000 |
| 1195 | #define EF_MIPS_ARCH_64R2 0x80000000 |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 1196 | |
| 1197 | |
| 1198 | #define E_MIPS_ARCH_1 0x00000000 |
| 1199 | #define E_MIPS_ARCH_2 0x10000000 |
| 1200 | #define E_MIPS_ARCH_3 0x20000000 |
| 1201 | #define E_MIPS_ARCH_4 0x30000000 |
| 1202 | #define E_MIPS_ARCH_5 0x40000000 |
Szabolcs Nagy | 268375c | 2013-09-15 14:53:34 +0000 | [diff] [blame] | 1203 | #define E_MIPS_ARCH_32 0x50000000 |
| 1204 | #define E_MIPS_ARCH_64 0x60000000 |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 1205 | |
| 1206 | |
| 1207 | |
| 1208 | #define SHN_MIPS_ACOMMON 0xff00 |
| 1209 | #define SHN_MIPS_TEXT 0xff01 |
| 1210 | #define SHN_MIPS_DATA 0xff02 |
| 1211 | #define SHN_MIPS_SCOMMON 0xff03 |
| 1212 | #define SHN_MIPS_SUNDEFINED 0xff04 |
| 1213 | |
| 1214 | |
| 1215 | |
| 1216 | #define SHT_MIPS_LIBLIST 0x70000000 |
| 1217 | #define SHT_MIPS_MSYM 0x70000001 |
| 1218 | #define SHT_MIPS_CONFLICT 0x70000002 |
| 1219 | #define SHT_MIPS_GPTAB 0x70000003 |
| 1220 | #define SHT_MIPS_UCODE 0x70000004 |
| 1221 | #define SHT_MIPS_DEBUG 0x70000005 |
| 1222 | #define SHT_MIPS_REGINFO 0x70000006 |
| 1223 | #define SHT_MIPS_PACKAGE 0x70000007 |
| 1224 | #define SHT_MIPS_PACKSYM 0x70000008 |
| 1225 | #define SHT_MIPS_RELD 0x70000009 |
| 1226 | #define SHT_MIPS_IFACE 0x7000000b |
| 1227 | #define SHT_MIPS_CONTENT 0x7000000c |
| 1228 | #define SHT_MIPS_OPTIONS 0x7000000d |
| 1229 | #define SHT_MIPS_SHDR 0x70000010 |
| 1230 | #define SHT_MIPS_FDESC 0x70000011 |
| 1231 | #define SHT_MIPS_EXTSYM 0x70000012 |
| 1232 | #define SHT_MIPS_DENSE 0x70000013 |
| 1233 | #define SHT_MIPS_PDESC 0x70000014 |
| 1234 | #define SHT_MIPS_LOCSYM 0x70000015 |
| 1235 | #define SHT_MIPS_AUXSYM 0x70000016 |
| 1236 | #define SHT_MIPS_OPTSYM 0x70000017 |
| 1237 | #define SHT_MIPS_LOCSTR 0x70000018 |
| 1238 | #define SHT_MIPS_LINE 0x70000019 |
| 1239 | #define SHT_MIPS_RFDESC 0x7000001a |
| 1240 | #define SHT_MIPS_DELTASYM 0x7000001b |
| 1241 | #define SHT_MIPS_DELTAINST 0x7000001c |
| 1242 | #define SHT_MIPS_DELTACLASS 0x7000001d |
| 1243 | #define SHT_MIPS_DWARF 0x7000001e |
| 1244 | #define SHT_MIPS_DELTADECL 0x7000001f |
| 1245 | #define SHT_MIPS_SYMBOL_LIB 0x70000020 |
| 1246 | #define SHT_MIPS_EVENTS 0x70000021 |
| 1247 | #define SHT_MIPS_TRANSLATE 0x70000022 |
| 1248 | #define SHT_MIPS_PIXIE 0x70000023 |
| 1249 | #define SHT_MIPS_XLATE 0x70000024 |
| 1250 | #define SHT_MIPS_XLATE_DEBUG 0x70000025 |
| 1251 | #define SHT_MIPS_WHIRL 0x70000026 |
| 1252 | #define SHT_MIPS_EH_REGION 0x70000027 |
| 1253 | #define SHT_MIPS_XLATE_OLD 0x70000028 |
| 1254 | #define SHT_MIPS_PDR_EXCEPTION 0x70000029 |
| 1255 | |
| 1256 | |
| 1257 | |
| 1258 | #define SHF_MIPS_GPREL 0x10000000 |
| 1259 | #define SHF_MIPS_MERGE 0x20000000 |
| 1260 | #define SHF_MIPS_ADDR 0x40000000 |
| 1261 | #define SHF_MIPS_STRINGS 0x80000000 |
| 1262 | #define SHF_MIPS_NOSTRIP 0x08000000 |
| 1263 | #define SHF_MIPS_LOCAL 0x04000000 |
| 1264 | #define SHF_MIPS_NAMES 0x02000000 |
| 1265 | #define SHF_MIPS_NODUPE 0x01000000 |
| 1266 | |
| 1267 | |
| 1268 | |
| 1269 | |
| 1270 | |
| 1271 | #define STO_MIPS_DEFAULT 0x0 |
| 1272 | #define STO_MIPS_INTERNAL 0x1 |
| 1273 | #define STO_MIPS_HIDDEN 0x2 |
| 1274 | #define STO_MIPS_PROTECTED 0x3 |
| 1275 | #define STO_MIPS_PLT 0x8 |
| 1276 | #define STO_MIPS_SC_ALIGN_UNUSED 0xff |
| 1277 | |
| 1278 | |
| 1279 | #define STB_MIPS_SPLIT_COMMON 13 |
| 1280 | |
| 1281 | |
| 1282 | |
| 1283 | typedef union { |
| 1284 | struct { |
| 1285 | Elf32_Word gt_current_g_value; |
| 1286 | Elf32_Word gt_unused; |
| 1287 | } gt_header; |
| 1288 | struct { |
| 1289 | Elf32_Word gt_g_value; |
| 1290 | Elf32_Word gt_bytes; |
| 1291 | } gt_entry; |
| 1292 | } Elf32_gptab; |
| 1293 | |
| 1294 | |
| 1295 | |
| 1296 | typedef struct { |
| 1297 | Elf32_Word ri_gprmask; |
| 1298 | Elf32_Word ri_cprmask[4]; |
| 1299 | Elf32_Sword ri_gp_value; |
| 1300 | } Elf32_RegInfo; |
| 1301 | |
| 1302 | |
| 1303 | |
| 1304 | typedef struct { |
| 1305 | unsigned char kind; |
| 1306 | |
| 1307 | unsigned char size; |
| 1308 | Elf32_Section section; |
| 1309 | |
| 1310 | Elf32_Word info; |
| 1311 | } Elf_Options; |
| 1312 | |
| 1313 | |
| 1314 | |
| 1315 | #define ODK_NULL 0 |
| 1316 | #define ODK_REGINFO 1 |
| 1317 | #define ODK_EXCEPTIONS 2 |
| 1318 | #define ODK_PAD 3 |
| 1319 | #define ODK_HWPATCH 4 |
| 1320 | #define ODK_FILL 5 |
| 1321 | #define ODK_TAGS 6 |
| 1322 | #define ODK_HWAND 7 |
| 1323 | #define ODK_HWOR 8 |
| 1324 | |
| 1325 | |
| 1326 | |
| 1327 | #define OEX_FPU_MIN 0x1f |
| 1328 | #define OEX_FPU_MAX 0x1f00 |
| 1329 | #define OEX_PAGE0 0x10000 |
| 1330 | #define OEX_SMM 0x20000 |
| 1331 | #define OEX_FPDBUG 0x40000 |
| 1332 | #define OEX_PRECISEFP OEX_FPDBUG |
| 1333 | #define OEX_DISMISS 0x80000 |
| 1334 | |
| 1335 | #define OEX_FPU_INVAL 0x10 |
| 1336 | #define OEX_FPU_DIV0 0x08 |
| 1337 | #define OEX_FPU_OFLO 0x04 |
| 1338 | #define OEX_FPU_UFLO 0x02 |
| 1339 | #define OEX_FPU_INEX 0x01 |
| 1340 | |
| 1341 | |
| 1342 | |
| 1343 | #define OHW_R4KEOP 0x1 |
| 1344 | #define OHW_R8KPFETCH 0x2 |
| 1345 | #define OHW_R5KEOP 0x4 |
| 1346 | #define OHW_R5KCVTL 0x8 |
| 1347 | |
| 1348 | #define OPAD_PREFIX 0x1 |
| 1349 | #define OPAD_POSTFIX 0x2 |
| 1350 | #define OPAD_SYMBOL 0x4 |
| 1351 | |
| 1352 | |
| 1353 | |
| 1354 | typedef struct { |
| 1355 | Elf32_Word hwp_flags1; |
| 1356 | Elf32_Word hwp_flags2; |
| 1357 | } Elf_Options_Hw; |
| 1358 | |
| 1359 | |
| 1360 | |
| 1361 | #define OHWA0_R4KEOP_CHECKED 0x00000001 |
| 1362 | #define OHWA1_R4KEOP_CLEAN 0x00000002 |
| 1363 | |
| 1364 | |
| 1365 | |
| 1366 | #define R_MIPS_NONE 0 |
| 1367 | #define R_MIPS_16 1 |
| 1368 | #define R_MIPS_32 2 |
| 1369 | #define R_MIPS_REL32 3 |
| 1370 | #define R_MIPS_26 4 |
| 1371 | #define R_MIPS_HI16 5 |
| 1372 | #define R_MIPS_LO16 6 |
| 1373 | #define R_MIPS_GPREL16 7 |
| 1374 | #define R_MIPS_LITERAL 8 |
| 1375 | #define R_MIPS_GOT16 9 |
| 1376 | #define R_MIPS_PC16 10 |
| 1377 | #define R_MIPS_CALL16 11 |
| 1378 | #define R_MIPS_GPREL32 12 |
| 1379 | |
| 1380 | #define R_MIPS_SHIFT5 16 |
| 1381 | #define R_MIPS_SHIFT6 17 |
| 1382 | #define R_MIPS_64 18 |
| 1383 | #define R_MIPS_GOT_DISP 19 |
| 1384 | #define R_MIPS_GOT_PAGE 20 |
| 1385 | #define R_MIPS_GOT_OFST 21 |
| 1386 | #define R_MIPS_GOT_HI16 22 |
| 1387 | #define R_MIPS_GOT_LO16 23 |
| 1388 | #define R_MIPS_SUB 24 |
| 1389 | #define R_MIPS_INSERT_A 25 |
| 1390 | #define R_MIPS_INSERT_B 26 |
| 1391 | #define R_MIPS_DELETE 27 |
| 1392 | #define R_MIPS_HIGHER 28 |
| 1393 | #define R_MIPS_HIGHEST 29 |
| 1394 | #define R_MIPS_CALL_HI16 30 |
| 1395 | #define R_MIPS_CALL_LO16 31 |
| 1396 | #define R_MIPS_SCN_DISP 32 |
| 1397 | #define R_MIPS_REL16 33 |
| 1398 | #define R_MIPS_ADD_IMMEDIATE 34 |
| 1399 | #define R_MIPS_PJUMP 35 |
| 1400 | #define R_MIPS_RELGOT 36 |
| 1401 | #define R_MIPS_JALR 37 |
| 1402 | #define R_MIPS_TLS_DTPMOD32 38 |
| 1403 | #define R_MIPS_TLS_DTPREL32 39 |
| 1404 | #define R_MIPS_TLS_DTPMOD64 40 |
| 1405 | #define R_MIPS_TLS_DTPREL64 41 |
| 1406 | #define R_MIPS_TLS_GD 42 |
| 1407 | #define R_MIPS_TLS_LDM 43 |
| 1408 | #define R_MIPS_TLS_DTPREL_HI16 44 |
| 1409 | #define R_MIPS_TLS_DTPREL_LO16 45 |
| 1410 | #define R_MIPS_TLS_GOTTPREL 46 |
| 1411 | #define R_MIPS_TLS_TPREL32 47 |
| 1412 | #define R_MIPS_TLS_TPREL64 48 |
| 1413 | #define R_MIPS_TLS_TPREL_HI16 49 |
| 1414 | #define R_MIPS_TLS_TPREL_LO16 50 |
| 1415 | #define R_MIPS_GLOB_DAT 51 |
| 1416 | #define R_MIPS_COPY 126 |
| 1417 | #define R_MIPS_JUMP_SLOT 127 |
| 1418 | |
| 1419 | #define R_MIPS_NUM 128 |
| 1420 | |
| 1421 | |
| 1422 | |
| 1423 | #define PT_MIPS_REGINFO 0x70000000 |
| 1424 | #define PT_MIPS_RTPROC 0x70000001 |
| 1425 | #define PT_MIPS_OPTIONS 0x70000002 |
Szabolcs Nagy | abbdf0f | 2016-04-20 13:17:11 +0200 | [diff] [blame] | 1426 | #define PT_MIPS_ABIFLAGS 0x70000003 |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 1427 | |
| 1428 | |
| 1429 | |
| 1430 | #define PF_MIPS_LOCAL 0x10000000 |
| 1431 | |
| 1432 | |
| 1433 | |
| 1434 | #define DT_MIPS_RLD_VERSION 0x70000001 |
| 1435 | #define DT_MIPS_TIME_STAMP 0x70000002 |
| 1436 | #define DT_MIPS_ICHECKSUM 0x70000003 |
| 1437 | #define DT_MIPS_IVERSION 0x70000004 |
| 1438 | #define DT_MIPS_FLAGS 0x70000005 |
| 1439 | #define DT_MIPS_BASE_ADDRESS 0x70000006 |
| 1440 | #define DT_MIPS_MSYM 0x70000007 |
| 1441 | #define DT_MIPS_CONFLICT 0x70000008 |
| 1442 | #define DT_MIPS_LIBLIST 0x70000009 |
| 1443 | #define DT_MIPS_LOCAL_GOTNO 0x7000000a |
| 1444 | #define DT_MIPS_CONFLICTNO 0x7000000b |
| 1445 | #define DT_MIPS_LIBLISTNO 0x70000010 |
| 1446 | #define DT_MIPS_SYMTABNO 0x70000011 |
| 1447 | #define DT_MIPS_UNREFEXTNO 0x70000012 |
| 1448 | #define DT_MIPS_GOTSYM 0x70000013 |
| 1449 | #define DT_MIPS_HIPAGENO 0x70000014 |
| 1450 | #define DT_MIPS_RLD_MAP 0x70000016 |
| 1451 | #define DT_MIPS_DELTA_CLASS 0x70000017 |
| 1452 | #define DT_MIPS_DELTA_CLASS_NO 0x70000018 |
| 1453 | |
| 1454 | #define DT_MIPS_DELTA_INSTANCE 0x70000019 |
| 1455 | #define DT_MIPS_DELTA_INSTANCE_NO 0x7000001a |
| 1456 | |
| 1457 | #define DT_MIPS_DELTA_RELOC 0x7000001b |
| 1458 | #define DT_MIPS_DELTA_RELOC_NO 0x7000001c |
| 1459 | |
| 1460 | #define DT_MIPS_DELTA_SYM 0x7000001d |
| 1461 | |
| 1462 | #define DT_MIPS_DELTA_SYM_NO 0x7000001e |
| 1463 | |
| 1464 | #define DT_MIPS_DELTA_CLASSSYM 0x70000020 |
| 1465 | |
| 1466 | #define DT_MIPS_DELTA_CLASSSYM_NO 0x70000021 |
| 1467 | |
| 1468 | #define DT_MIPS_CXX_FLAGS 0x70000022 |
| 1469 | #define DT_MIPS_PIXIE_INIT 0x70000023 |
| 1470 | #define DT_MIPS_SYMBOL_LIB 0x70000024 |
| 1471 | #define DT_MIPS_LOCALPAGE_GOTIDX 0x70000025 |
| 1472 | #define DT_MIPS_LOCAL_GOTIDX 0x70000026 |
| 1473 | #define DT_MIPS_HIDDEN_GOTIDX 0x70000027 |
| 1474 | #define DT_MIPS_PROTECTED_GOTIDX 0x70000028 |
| 1475 | #define DT_MIPS_OPTIONS 0x70000029 |
| 1476 | #define DT_MIPS_INTERFACE 0x7000002a |
| 1477 | #define DT_MIPS_DYNSTR_ALIGN 0x7000002b |
| 1478 | #define DT_MIPS_INTERFACE_SIZE 0x7000002c |
| 1479 | #define DT_MIPS_RLD_TEXT_RESOLVE_ADDR 0x7000002d |
| 1480 | |
| 1481 | #define DT_MIPS_PERF_SUFFIX 0x7000002e |
| 1482 | |
| 1483 | #define DT_MIPS_COMPACT_SIZE 0x7000002f |
| 1484 | #define DT_MIPS_GP_VALUE 0x70000030 |
| 1485 | #define DT_MIPS_AUX_DYNAMIC 0x70000031 |
| 1486 | |
| 1487 | #define DT_MIPS_PLTGOT 0x70000032 |
| 1488 | |
| 1489 | #define DT_MIPS_RWPLT 0x70000034 |
| 1490 | #define DT_MIPS_NUM 0x35 |
| 1491 | |
| 1492 | |
| 1493 | |
| 1494 | #define RHF_NONE 0 |
| 1495 | #define RHF_QUICKSTART (1 << 0) |
| 1496 | #define RHF_NOTPOT (1 << 1) |
| 1497 | #define RHF_NO_LIBRARY_REPLACEMENT (1 << 2) |
| 1498 | #define RHF_NO_MOVE (1 << 3) |
| 1499 | #define RHF_SGI_ONLY (1 << 4) |
| 1500 | #define RHF_GUARANTEE_INIT (1 << 5) |
| 1501 | #define RHF_DELTA_C_PLUS_PLUS (1 << 6) |
| 1502 | #define RHF_GUARANTEE_START_INIT (1 << 7) |
| 1503 | #define RHF_PIXIE (1 << 8) |
| 1504 | #define RHF_DEFAULT_DELAY_LOAD (1 << 9) |
| 1505 | #define RHF_REQUICKSTART (1 << 10) |
| 1506 | #define RHF_REQUICKSTARTED (1 << 11) |
| 1507 | #define RHF_CORD (1 << 12) |
| 1508 | #define RHF_NO_UNRES_UNDEF (1 << 13) |
| 1509 | #define RHF_RLD_ORDER_SAFE (1 << 14) |
| 1510 | |
| 1511 | |
| 1512 | |
| 1513 | typedef struct |
| 1514 | { |
| 1515 | Elf32_Word l_name; |
| 1516 | Elf32_Word l_time_stamp; |
| 1517 | Elf32_Word l_checksum; |
| 1518 | Elf32_Word l_version; |
| 1519 | Elf32_Word l_flags; |
| 1520 | } Elf32_Lib; |
| 1521 | |
| 1522 | typedef struct |
| 1523 | { |
| 1524 | Elf64_Word l_name; |
| 1525 | Elf64_Word l_time_stamp; |
| 1526 | Elf64_Word l_checksum; |
| 1527 | Elf64_Word l_version; |
| 1528 | Elf64_Word l_flags; |
| 1529 | } Elf64_Lib; |
| 1530 | |
| 1531 | |
| 1532 | |
| 1533 | |
| 1534 | #define LL_NONE 0 |
| 1535 | #define LL_EXACT_MATCH (1 << 0) |
| 1536 | #define LL_IGNORE_INT_VER (1 << 1) |
| 1537 | #define LL_REQUIRE_MINOR (1 << 2) |
| 1538 | #define LL_EXPORTS (1 << 3) |
| 1539 | #define LL_DELAY_LOAD (1 << 4) |
| 1540 | #define LL_DELTA (1 << 5) |
| 1541 | |
| 1542 | |
| 1543 | |
| 1544 | typedef Elf32_Addr Elf32_Conflict; |
| 1545 | |
Szabolcs Nagy | abbdf0f | 2016-04-20 13:17:11 +0200 | [diff] [blame] | 1546 | typedef struct |
| 1547 | { |
| 1548 | Elf32_Half version; |
| 1549 | unsigned char isa_level; |
| 1550 | unsigned char isa_rev; |
| 1551 | unsigned char gpr_size; |
| 1552 | unsigned char cpr1_size; |
| 1553 | unsigned char cpr2_size; |
| 1554 | unsigned char fp_abi; |
| 1555 | Elf32_Word isa_ext; |
| 1556 | Elf32_Word ases; |
| 1557 | Elf32_Word flags1; |
| 1558 | Elf32_Word flags2; |
| 1559 | } Elf_MIPS_ABIFlags_v0; |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 1560 | |
Szabolcs Nagy | abbdf0f | 2016-04-20 13:17:11 +0200 | [diff] [blame] | 1561 | #define MIPS_AFL_REG_NONE 0x00 |
| 1562 | #define MIPS_AFL_REG_32 0x01 |
| 1563 | #define MIPS_AFL_REG_64 0x02 |
| 1564 | #define MIPS_AFL_REG_128 0x03 |
| 1565 | |
| 1566 | #define MIPS_AFL_ASE_DSP 0x00000001 |
| 1567 | #define MIPS_AFL_ASE_DSPR2 0x00000002 |
| 1568 | #define MIPS_AFL_ASE_EVA 0x00000004 |
| 1569 | #define MIPS_AFL_ASE_MCU 0x00000008 |
| 1570 | #define MIPS_AFL_ASE_MDMX 0x00000010 |
| 1571 | #define MIPS_AFL_ASE_MIPS3D 0x00000020 |
| 1572 | #define MIPS_AFL_ASE_MT 0x00000040 |
| 1573 | #define MIPS_AFL_ASE_SMARTMIPS 0x00000080 |
| 1574 | #define MIPS_AFL_ASE_VIRT 0x00000100 |
| 1575 | #define MIPS_AFL_ASE_MSA 0x00000200 |
| 1576 | #define MIPS_AFL_ASE_MIPS16 0x00000400 |
| 1577 | #define MIPS_AFL_ASE_MICROMIPS 0x00000800 |
| 1578 | #define MIPS_AFL_ASE_XPA 0x00001000 |
| 1579 | #define MIPS_AFL_ASE_MASK 0x00001fff |
| 1580 | |
| 1581 | #define MIPS_AFL_EXT_XLR 1 |
| 1582 | #define MIPS_AFL_EXT_OCTEON2 2 |
| 1583 | #define MIPS_AFL_EXT_OCTEONP 3 |
| 1584 | #define MIPS_AFL_EXT_LOONGSON_3A 4 |
| 1585 | #define MIPS_AFL_EXT_OCTEON 5 |
| 1586 | #define MIPS_AFL_EXT_5900 6 |
| 1587 | #define MIPS_AFL_EXT_4650 7 |
| 1588 | #define MIPS_AFL_EXT_4010 8 |
| 1589 | #define MIPS_AFL_EXT_4100 9 |
| 1590 | #define MIPS_AFL_EXT_3900 10 |
| 1591 | #define MIPS_AFL_EXT_10000 11 |
| 1592 | #define MIPS_AFL_EXT_SB1 12 |
| 1593 | #define MIPS_AFL_EXT_4111 13 |
| 1594 | #define MIPS_AFL_EXT_4120 14 |
| 1595 | #define MIPS_AFL_EXT_5400 15 |
| 1596 | #define MIPS_AFL_EXT_5500 16 |
| 1597 | #define MIPS_AFL_EXT_LOONGSON_2E 17 |
| 1598 | #define MIPS_AFL_EXT_LOONGSON_2F 18 |
| 1599 | |
| 1600 | #define MIPS_AFL_FLAGS1_ODDSPREG 1 |
| 1601 | |
| 1602 | enum |
| 1603 | { |
| 1604 | Val_GNU_MIPS_ABI_FP_ANY = 0, |
| 1605 | Val_GNU_MIPS_ABI_FP_DOUBLE = 1, |
| 1606 | Val_GNU_MIPS_ABI_FP_SINGLE = 2, |
| 1607 | Val_GNU_MIPS_ABI_FP_SOFT = 3, |
| 1608 | Val_GNU_MIPS_ABI_FP_OLD_64 = 4, |
| 1609 | Val_GNU_MIPS_ABI_FP_XX = 5, |
| 1610 | Val_GNU_MIPS_ABI_FP_64 = 6, |
| 1611 | Val_GNU_MIPS_ABI_FP_64A = 7, |
| 1612 | Val_GNU_MIPS_ABI_FP_MAX = 7 |
| 1613 | }; |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 1614 | |
| 1615 | |
| 1616 | |
| 1617 | |
| 1618 | #define EF_PARISC_TRAPNIL 0x00010000 |
| 1619 | #define EF_PARISC_EXT 0x00020000 |
| 1620 | #define EF_PARISC_LSB 0x00040000 |
| 1621 | #define EF_PARISC_WIDE 0x00080000 |
| 1622 | #define EF_PARISC_NO_KABP 0x00100000 |
| 1623 | |
| 1624 | #define EF_PARISC_LAZYSWAP 0x00400000 |
| 1625 | #define EF_PARISC_ARCH 0x0000ffff |
| 1626 | |
| 1627 | |
| 1628 | |
| 1629 | #define EFA_PARISC_1_0 0x020b |
| 1630 | #define EFA_PARISC_1_1 0x0210 |
| 1631 | #define EFA_PARISC_2_0 0x0214 |
| 1632 | |
| 1633 | |
| 1634 | |
| 1635 | #define SHN_PARISC_ANSI_COMMON 0xff00 |
| 1636 | |
| 1637 | #define SHN_PARISC_HUGE_COMMON 0xff01 |
| 1638 | |
| 1639 | |
| 1640 | |
| 1641 | #define SHT_PARISC_EXT 0x70000000 |
| 1642 | #define SHT_PARISC_UNWIND 0x70000001 |
| 1643 | #define SHT_PARISC_DOC 0x70000002 |
| 1644 | |
| 1645 | |
| 1646 | |
| 1647 | #define SHF_PARISC_SHORT 0x20000000 |
| 1648 | #define SHF_PARISC_HUGE 0x40000000 |
| 1649 | #define SHF_PARISC_SBP 0x80000000 |
| 1650 | |
| 1651 | |
| 1652 | |
| 1653 | #define STT_PARISC_MILLICODE 13 |
| 1654 | |
| 1655 | #define STT_HP_OPAQUE (STT_LOOS + 0x1) |
| 1656 | #define STT_HP_STUB (STT_LOOS + 0x2) |
| 1657 | |
| 1658 | |
| 1659 | |
| 1660 | #define R_PARISC_NONE 0 |
| 1661 | #define R_PARISC_DIR32 1 |
| 1662 | #define R_PARISC_DIR21L 2 |
| 1663 | #define R_PARISC_DIR17R 3 |
| 1664 | #define R_PARISC_DIR17F 4 |
| 1665 | #define R_PARISC_DIR14R 6 |
| 1666 | #define R_PARISC_PCREL32 9 |
| 1667 | #define R_PARISC_PCREL21L 10 |
| 1668 | #define R_PARISC_PCREL17R 11 |
| 1669 | #define R_PARISC_PCREL17F 12 |
| 1670 | #define R_PARISC_PCREL14R 14 |
| 1671 | #define R_PARISC_DPREL21L 18 |
| 1672 | #define R_PARISC_DPREL14R 22 |
| 1673 | #define R_PARISC_GPREL21L 26 |
| 1674 | #define R_PARISC_GPREL14R 30 |
| 1675 | #define R_PARISC_LTOFF21L 34 |
| 1676 | #define R_PARISC_LTOFF14R 38 |
| 1677 | #define R_PARISC_SECREL32 41 |
| 1678 | #define R_PARISC_SEGBASE 48 |
| 1679 | #define R_PARISC_SEGREL32 49 |
| 1680 | #define R_PARISC_PLTOFF21L 50 |
| 1681 | #define R_PARISC_PLTOFF14R 54 |
| 1682 | #define R_PARISC_LTOFF_FPTR32 57 |
| 1683 | #define R_PARISC_LTOFF_FPTR21L 58 |
| 1684 | #define R_PARISC_LTOFF_FPTR14R 62 |
| 1685 | #define R_PARISC_FPTR64 64 |
| 1686 | #define R_PARISC_PLABEL32 65 |
| 1687 | #define R_PARISC_PLABEL21L 66 |
| 1688 | #define R_PARISC_PLABEL14R 70 |
| 1689 | #define R_PARISC_PCREL64 72 |
| 1690 | #define R_PARISC_PCREL22F 74 |
| 1691 | #define R_PARISC_PCREL14WR 75 |
| 1692 | #define R_PARISC_PCREL14DR 76 |
| 1693 | #define R_PARISC_PCREL16F 77 |
| 1694 | #define R_PARISC_PCREL16WF 78 |
| 1695 | #define R_PARISC_PCREL16DF 79 |
| 1696 | #define R_PARISC_DIR64 80 |
| 1697 | #define R_PARISC_DIR14WR 83 |
| 1698 | #define R_PARISC_DIR14DR 84 |
| 1699 | #define R_PARISC_DIR16F 85 |
| 1700 | #define R_PARISC_DIR16WF 86 |
| 1701 | #define R_PARISC_DIR16DF 87 |
| 1702 | #define R_PARISC_GPREL64 88 |
| 1703 | #define R_PARISC_GPREL14WR 91 |
| 1704 | #define R_PARISC_GPREL14DR 92 |
| 1705 | #define R_PARISC_GPREL16F 93 |
| 1706 | #define R_PARISC_GPREL16WF 94 |
| 1707 | #define R_PARISC_GPREL16DF 95 |
| 1708 | #define R_PARISC_LTOFF64 96 |
| 1709 | #define R_PARISC_LTOFF14WR 99 |
| 1710 | #define R_PARISC_LTOFF14DR 100 |
| 1711 | #define R_PARISC_LTOFF16F 101 |
| 1712 | #define R_PARISC_LTOFF16WF 102 |
| 1713 | #define R_PARISC_LTOFF16DF 103 |
| 1714 | #define R_PARISC_SECREL64 104 |
| 1715 | #define R_PARISC_SEGREL64 112 |
| 1716 | #define R_PARISC_PLTOFF14WR 115 |
| 1717 | #define R_PARISC_PLTOFF14DR 116 |
| 1718 | #define R_PARISC_PLTOFF16F 117 |
| 1719 | #define R_PARISC_PLTOFF16WF 118 |
| 1720 | #define R_PARISC_PLTOFF16DF 119 |
| 1721 | #define R_PARISC_LTOFF_FPTR64 120 |
| 1722 | #define R_PARISC_LTOFF_FPTR14WR 123 |
| 1723 | #define R_PARISC_LTOFF_FPTR14DR 124 |
| 1724 | #define R_PARISC_LTOFF_FPTR16F 125 |
| 1725 | #define R_PARISC_LTOFF_FPTR16WF 126 |
| 1726 | #define R_PARISC_LTOFF_FPTR16DF 127 |
| 1727 | #define R_PARISC_LORESERVE 128 |
| 1728 | #define R_PARISC_COPY 128 |
| 1729 | #define R_PARISC_IPLT 129 |
| 1730 | #define R_PARISC_EPLT 130 |
| 1731 | #define R_PARISC_TPREL32 153 |
| 1732 | #define R_PARISC_TPREL21L 154 |
| 1733 | #define R_PARISC_TPREL14R 158 |
| 1734 | #define R_PARISC_LTOFF_TP21L 162 |
| 1735 | #define R_PARISC_LTOFF_TP14R 166 |
| 1736 | #define R_PARISC_LTOFF_TP14F 167 |
| 1737 | #define R_PARISC_TPREL64 216 |
| 1738 | #define R_PARISC_TPREL14WR 219 |
| 1739 | #define R_PARISC_TPREL14DR 220 |
| 1740 | #define R_PARISC_TPREL16F 221 |
| 1741 | #define R_PARISC_TPREL16WF 222 |
| 1742 | #define R_PARISC_TPREL16DF 223 |
| 1743 | #define R_PARISC_LTOFF_TP64 224 |
| 1744 | #define R_PARISC_LTOFF_TP14WR 227 |
| 1745 | #define R_PARISC_LTOFF_TP14DR 228 |
| 1746 | #define R_PARISC_LTOFF_TP16F 229 |
| 1747 | #define R_PARISC_LTOFF_TP16WF 230 |
| 1748 | #define R_PARISC_LTOFF_TP16DF 231 |
| 1749 | #define R_PARISC_GNU_VTENTRY 232 |
| 1750 | #define R_PARISC_GNU_VTINHERIT 233 |
| 1751 | #define R_PARISC_TLS_GD21L 234 |
| 1752 | #define R_PARISC_TLS_GD14R 235 |
| 1753 | #define R_PARISC_TLS_GDCALL 236 |
| 1754 | #define R_PARISC_TLS_LDM21L 237 |
| 1755 | #define R_PARISC_TLS_LDM14R 238 |
| 1756 | #define R_PARISC_TLS_LDMCALL 239 |
| 1757 | #define R_PARISC_TLS_LDO21L 240 |
| 1758 | #define R_PARISC_TLS_LDO14R 241 |
| 1759 | #define R_PARISC_TLS_DTPMOD32 242 |
| 1760 | #define R_PARISC_TLS_DTPMOD64 243 |
| 1761 | #define R_PARISC_TLS_DTPOFF32 244 |
| 1762 | #define R_PARISC_TLS_DTPOFF64 245 |
| 1763 | #define R_PARISC_TLS_LE21L R_PARISC_TPREL21L |
| 1764 | #define R_PARISC_TLS_LE14R R_PARISC_TPREL14R |
| 1765 | #define R_PARISC_TLS_IE21L R_PARISC_LTOFF_TP21L |
| 1766 | #define R_PARISC_TLS_IE14R R_PARISC_LTOFF_TP14R |
| 1767 | #define R_PARISC_TLS_TPREL32 R_PARISC_TPREL32 |
| 1768 | #define R_PARISC_TLS_TPREL64 R_PARISC_TPREL64 |
| 1769 | #define R_PARISC_HIRESERVE 255 |
| 1770 | |
| 1771 | |
| 1772 | |
| 1773 | #define PT_HP_TLS (PT_LOOS + 0x0) |
| 1774 | #define PT_HP_CORE_NONE (PT_LOOS + 0x1) |
| 1775 | #define PT_HP_CORE_VERSION (PT_LOOS + 0x2) |
| 1776 | #define PT_HP_CORE_KERNEL (PT_LOOS + 0x3) |
| 1777 | #define PT_HP_CORE_COMM (PT_LOOS + 0x4) |
| 1778 | #define PT_HP_CORE_PROC (PT_LOOS + 0x5) |
| 1779 | #define PT_HP_CORE_LOADABLE (PT_LOOS + 0x6) |
| 1780 | #define PT_HP_CORE_STACK (PT_LOOS + 0x7) |
| 1781 | #define PT_HP_CORE_SHM (PT_LOOS + 0x8) |
| 1782 | #define PT_HP_CORE_MMF (PT_LOOS + 0x9) |
| 1783 | #define PT_HP_PARALLEL (PT_LOOS + 0x10) |
| 1784 | #define PT_HP_FASTBIND (PT_LOOS + 0x11) |
| 1785 | #define PT_HP_OPT_ANNOT (PT_LOOS + 0x12) |
| 1786 | #define PT_HP_HSL_ANNOT (PT_LOOS + 0x13) |
| 1787 | #define PT_HP_STACK (PT_LOOS + 0x14) |
| 1788 | |
| 1789 | #define PT_PARISC_ARCHEXT 0x70000000 |
| 1790 | #define PT_PARISC_UNWIND 0x70000001 |
| 1791 | |
| 1792 | |
| 1793 | |
| 1794 | #define PF_PARISC_SBP 0x08000000 |
| 1795 | |
| 1796 | #define PF_HP_PAGE_SIZE 0x00100000 |
| 1797 | #define PF_HP_FAR_SHARED 0x00200000 |
| 1798 | #define PF_HP_NEAR_SHARED 0x00400000 |
| 1799 | #define PF_HP_CODE 0x01000000 |
| 1800 | #define PF_HP_MODIFY 0x02000000 |
| 1801 | #define PF_HP_LAZYSWAP 0x04000000 |
| 1802 | #define PF_HP_SBP 0x08000000 |
| 1803 | |
| 1804 | |
| 1805 | |
| 1806 | |
| 1807 | |
| 1808 | |
| 1809 | #define EF_ALPHA_32BIT 1 |
| 1810 | #define EF_ALPHA_CANRELAX 2 |
| 1811 | |
| 1812 | |
| 1813 | |
| 1814 | |
| 1815 | #define SHT_ALPHA_DEBUG 0x70000001 |
| 1816 | #define SHT_ALPHA_REGINFO 0x70000002 |
| 1817 | |
| 1818 | |
| 1819 | |
| 1820 | #define SHF_ALPHA_GPREL 0x10000000 |
| 1821 | |
| 1822 | |
| 1823 | #define STO_ALPHA_NOPV 0x80 |
| 1824 | #define STO_ALPHA_STD_GPLOAD 0x88 |
| 1825 | |
| 1826 | |
| 1827 | |
| 1828 | #define R_ALPHA_NONE 0 |
| 1829 | #define R_ALPHA_REFLONG 1 |
| 1830 | #define R_ALPHA_REFQUAD 2 |
| 1831 | #define R_ALPHA_GPREL32 3 |
| 1832 | #define R_ALPHA_LITERAL 4 |
| 1833 | #define R_ALPHA_LITUSE 5 |
| 1834 | #define R_ALPHA_GPDISP 6 |
| 1835 | #define R_ALPHA_BRADDR 7 |
| 1836 | #define R_ALPHA_HINT 8 |
| 1837 | #define R_ALPHA_SREL16 9 |
| 1838 | #define R_ALPHA_SREL32 10 |
| 1839 | #define R_ALPHA_SREL64 11 |
| 1840 | #define R_ALPHA_GPRELHIGH 17 |
| 1841 | #define R_ALPHA_GPRELLOW 18 |
| 1842 | #define R_ALPHA_GPREL16 19 |
| 1843 | #define R_ALPHA_COPY 24 |
| 1844 | #define R_ALPHA_GLOB_DAT 25 |
| 1845 | #define R_ALPHA_JMP_SLOT 26 |
| 1846 | #define R_ALPHA_RELATIVE 27 |
| 1847 | #define R_ALPHA_TLS_GD_HI 28 |
| 1848 | #define R_ALPHA_TLSGD 29 |
| 1849 | #define R_ALPHA_TLS_LDM 30 |
| 1850 | #define R_ALPHA_DTPMOD64 31 |
| 1851 | #define R_ALPHA_GOTDTPREL 32 |
| 1852 | #define R_ALPHA_DTPREL64 33 |
| 1853 | #define R_ALPHA_DTPRELHI 34 |
| 1854 | #define R_ALPHA_DTPRELLO 35 |
| 1855 | #define R_ALPHA_DTPREL16 36 |
| 1856 | #define R_ALPHA_GOTTPREL 37 |
| 1857 | #define R_ALPHA_TPREL64 38 |
| 1858 | #define R_ALPHA_TPRELHI 39 |
| 1859 | #define R_ALPHA_TPRELLO 40 |
| 1860 | #define R_ALPHA_TPREL16 41 |
| 1861 | |
| 1862 | #define R_ALPHA_NUM 46 |
| 1863 | |
| 1864 | |
| 1865 | #define LITUSE_ALPHA_ADDR 0 |
| 1866 | #define LITUSE_ALPHA_BASE 1 |
| 1867 | #define LITUSE_ALPHA_BYTOFF 2 |
| 1868 | #define LITUSE_ALPHA_JSR 3 |
| 1869 | #define LITUSE_ALPHA_TLS_GD 4 |
| 1870 | #define LITUSE_ALPHA_TLS_LDM 5 |
| 1871 | |
| 1872 | |
| 1873 | #define DT_ALPHA_PLTRO (DT_LOPROC + 0) |
| 1874 | #define DT_ALPHA_NUM 1 |
| 1875 | |
| 1876 | |
| 1877 | |
| 1878 | |
| 1879 | #define EF_PPC_EMB 0x80000000 |
| 1880 | |
| 1881 | |
| 1882 | #define EF_PPC_RELOCATABLE 0x00010000 |
| 1883 | #define EF_PPC_RELOCATABLE_LIB 0x00008000 |
| 1884 | |
| 1885 | |
| 1886 | |
| 1887 | #define R_PPC_NONE 0 |
| 1888 | #define R_PPC_ADDR32 1 |
| 1889 | #define R_PPC_ADDR24 2 |
| 1890 | #define R_PPC_ADDR16 3 |
| 1891 | #define R_PPC_ADDR16_LO 4 |
| 1892 | #define R_PPC_ADDR16_HI 5 |
| 1893 | #define R_PPC_ADDR16_HA 6 |
| 1894 | #define R_PPC_ADDR14 7 |
| 1895 | #define R_PPC_ADDR14_BRTAKEN 8 |
| 1896 | #define R_PPC_ADDR14_BRNTAKEN 9 |
| 1897 | #define R_PPC_REL24 10 |
| 1898 | #define R_PPC_REL14 11 |
| 1899 | #define R_PPC_REL14_BRTAKEN 12 |
| 1900 | #define R_PPC_REL14_BRNTAKEN 13 |
| 1901 | #define R_PPC_GOT16 14 |
| 1902 | #define R_PPC_GOT16_LO 15 |
| 1903 | #define R_PPC_GOT16_HI 16 |
| 1904 | #define R_PPC_GOT16_HA 17 |
| 1905 | #define R_PPC_PLTREL24 18 |
| 1906 | #define R_PPC_COPY 19 |
| 1907 | #define R_PPC_GLOB_DAT 20 |
| 1908 | #define R_PPC_JMP_SLOT 21 |
| 1909 | #define R_PPC_RELATIVE 22 |
| 1910 | #define R_PPC_LOCAL24PC 23 |
| 1911 | #define R_PPC_UADDR32 24 |
| 1912 | #define R_PPC_UADDR16 25 |
| 1913 | #define R_PPC_REL32 26 |
| 1914 | #define R_PPC_PLT32 27 |
| 1915 | #define R_PPC_PLTREL32 28 |
| 1916 | #define R_PPC_PLT16_LO 29 |
| 1917 | #define R_PPC_PLT16_HI 30 |
| 1918 | #define R_PPC_PLT16_HA 31 |
| 1919 | #define R_PPC_SDAREL16 32 |
| 1920 | #define R_PPC_SECTOFF 33 |
| 1921 | #define R_PPC_SECTOFF_LO 34 |
| 1922 | #define R_PPC_SECTOFF_HI 35 |
| 1923 | #define R_PPC_SECTOFF_HA 36 |
| 1924 | |
| 1925 | |
| 1926 | #define R_PPC_TLS 67 |
| 1927 | #define R_PPC_DTPMOD32 68 |
| 1928 | #define R_PPC_TPREL16 69 |
| 1929 | #define R_PPC_TPREL16_LO 70 |
| 1930 | #define R_PPC_TPREL16_HI 71 |
| 1931 | #define R_PPC_TPREL16_HA 72 |
| 1932 | #define R_PPC_TPREL32 73 |
| 1933 | #define R_PPC_DTPREL16 74 |
| 1934 | #define R_PPC_DTPREL16_LO 75 |
| 1935 | #define R_PPC_DTPREL16_HI 76 |
| 1936 | #define R_PPC_DTPREL16_HA 77 |
| 1937 | #define R_PPC_DTPREL32 78 |
| 1938 | #define R_PPC_GOT_TLSGD16 79 |
| 1939 | #define R_PPC_GOT_TLSGD16_LO 80 |
| 1940 | #define R_PPC_GOT_TLSGD16_HI 81 |
| 1941 | #define R_PPC_GOT_TLSGD16_HA 82 |
| 1942 | #define R_PPC_GOT_TLSLD16 83 |
| 1943 | #define R_PPC_GOT_TLSLD16_LO 84 |
| 1944 | #define R_PPC_GOT_TLSLD16_HI 85 |
| 1945 | #define R_PPC_GOT_TLSLD16_HA 86 |
| 1946 | #define R_PPC_GOT_TPREL16 87 |
| 1947 | #define R_PPC_GOT_TPREL16_LO 88 |
| 1948 | #define R_PPC_GOT_TPREL16_HI 89 |
| 1949 | #define R_PPC_GOT_TPREL16_HA 90 |
| 1950 | #define R_PPC_GOT_DTPREL16 91 |
| 1951 | #define R_PPC_GOT_DTPREL16_LO 92 |
| 1952 | #define R_PPC_GOT_DTPREL16_HI 93 |
| 1953 | #define R_PPC_GOT_DTPREL16_HA 94 |
Szabolcs Nagy | 29a96c1 | 2016-04-20 13:17:54 +0200 | [diff] [blame] | 1954 | #define R_PPC_TLSGD 95 |
| 1955 | #define R_PPC_TLSLD 96 |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 1956 | |
| 1957 | |
| 1958 | #define R_PPC_EMB_NADDR32 101 |
| 1959 | #define R_PPC_EMB_NADDR16 102 |
| 1960 | #define R_PPC_EMB_NADDR16_LO 103 |
| 1961 | #define R_PPC_EMB_NADDR16_HI 104 |
| 1962 | #define R_PPC_EMB_NADDR16_HA 105 |
| 1963 | #define R_PPC_EMB_SDAI16 106 |
| 1964 | #define R_PPC_EMB_SDA2I16 107 |
| 1965 | #define R_PPC_EMB_SDA2REL 108 |
| 1966 | #define R_PPC_EMB_SDA21 109 |
| 1967 | #define R_PPC_EMB_MRKREF 110 |
| 1968 | #define R_PPC_EMB_RELSEC16 111 |
| 1969 | #define R_PPC_EMB_RELST_LO 112 |
| 1970 | #define R_PPC_EMB_RELST_HI 113 |
| 1971 | #define R_PPC_EMB_RELST_HA 114 |
| 1972 | #define R_PPC_EMB_BIT_FLD 115 |
| 1973 | #define R_PPC_EMB_RELSDA 116 |
| 1974 | |
| 1975 | |
| 1976 | #define R_PPC_DIAB_SDA21_LO 180 |
| 1977 | #define R_PPC_DIAB_SDA21_HI 181 |
| 1978 | #define R_PPC_DIAB_SDA21_HA 182 |
| 1979 | #define R_PPC_DIAB_RELSDA_LO 183 |
| 1980 | #define R_PPC_DIAB_RELSDA_HI 184 |
| 1981 | #define R_PPC_DIAB_RELSDA_HA 185 |
| 1982 | |
| 1983 | |
| 1984 | #define R_PPC_IRELATIVE 248 |
| 1985 | |
| 1986 | |
| 1987 | #define R_PPC_REL16 249 |
| 1988 | #define R_PPC_REL16_LO 250 |
| 1989 | #define R_PPC_REL16_HI 251 |
| 1990 | #define R_PPC_REL16_HA 252 |
| 1991 | |
| 1992 | |
| 1993 | |
| 1994 | #define R_PPC_TOC16 255 |
| 1995 | |
| 1996 | |
| 1997 | #define DT_PPC_GOT (DT_LOPROC + 0) |
Szabolcs Nagy | 29a96c1 | 2016-04-20 13:17:54 +0200 | [diff] [blame] | 1998 | #define DT_PPC_OPT (DT_LOPROC + 1) |
| 1999 | #define DT_PPC_NUM 2 |
| 2000 | |
| 2001 | #define PPC_OPT_TLS 1 |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 2002 | |
| 2003 | |
| 2004 | #define R_PPC64_NONE R_PPC_NONE |
| 2005 | #define R_PPC64_ADDR32 R_PPC_ADDR32 |
| 2006 | #define R_PPC64_ADDR24 R_PPC_ADDR24 |
| 2007 | #define R_PPC64_ADDR16 R_PPC_ADDR16 |
| 2008 | #define R_PPC64_ADDR16_LO R_PPC_ADDR16_LO |
| 2009 | #define R_PPC64_ADDR16_HI R_PPC_ADDR16_HI |
| 2010 | #define R_PPC64_ADDR16_HA R_PPC_ADDR16_HA |
| 2011 | #define R_PPC64_ADDR14 R_PPC_ADDR14 |
| 2012 | #define R_PPC64_ADDR14_BRTAKEN R_PPC_ADDR14_BRTAKEN |
| 2013 | #define R_PPC64_ADDR14_BRNTAKEN R_PPC_ADDR14_BRNTAKEN |
| 2014 | #define R_PPC64_REL24 R_PPC_REL24 |
| 2015 | #define R_PPC64_REL14 R_PPC_REL14 |
| 2016 | #define R_PPC64_REL14_BRTAKEN R_PPC_REL14_BRTAKEN |
| 2017 | #define R_PPC64_REL14_BRNTAKEN R_PPC_REL14_BRNTAKEN |
| 2018 | #define R_PPC64_GOT16 R_PPC_GOT16 |
| 2019 | #define R_PPC64_GOT16_LO R_PPC_GOT16_LO |
| 2020 | #define R_PPC64_GOT16_HI R_PPC_GOT16_HI |
| 2021 | #define R_PPC64_GOT16_HA R_PPC_GOT16_HA |
| 2022 | |
| 2023 | #define R_PPC64_COPY R_PPC_COPY |
| 2024 | #define R_PPC64_GLOB_DAT R_PPC_GLOB_DAT |
| 2025 | #define R_PPC64_JMP_SLOT R_PPC_JMP_SLOT |
| 2026 | #define R_PPC64_RELATIVE R_PPC_RELATIVE |
| 2027 | |
| 2028 | #define R_PPC64_UADDR32 R_PPC_UADDR32 |
| 2029 | #define R_PPC64_UADDR16 R_PPC_UADDR16 |
| 2030 | #define R_PPC64_REL32 R_PPC_REL32 |
| 2031 | #define R_PPC64_PLT32 R_PPC_PLT32 |
| 2032 | #define R_PPC64_PLTREL32 R_PPC_PLTREL32 |
| 2033 | #define R_PPC64_PLT16_LO R_PPC_PLT16_LO |
| 2034 | #define R_PPC64_PLT16_HI R_PPC_PLT16_HI |
| 2035 | #define R_PPC64_PLT16_HA R_PPC_PLT16_HA |
| 2036 | |
| 2037 | #define R_PPC64_SECTOFF R_PPC_SECTOFF |
| 2038 | #define R_PPC64_SECTOFF_LO R_PPC_SECTOFF_LO |
| 2039 | #define R_PPC64_SECTOFF_HI R_PPC_SECTOFF_HI |
| 2040 | #define R_PPC64_SECTOFF_HA R_PPC_SECTOFF_HA |
| 2041 | #define R_PPC64_ADDR30 37 |
| 2042 | #define R_PPC64_ADDR64 38 |
| 2043 | #define R_PPC64_ADDR16_HIGHER 39 |
| 2044 | #define R_PPC64_ADDR16_HIGHERA 40 |
| 2045 | #define R_PPC64_ADDR16_HIGHEST 41 |
| 2046 | #define R_PPC64_ADDR16_HIGHESTA 42 |
| 2047 | #define R_PPC64_UADDR64 43 |
| 2048 | #define R_PPC64_REL64 44 |
| 2049 | #define R_PPC64_PLT64 45 |
| 2050 | #define R_PPC64_PLTREL64 46 |
| 2051 | #define R_PPC64_TOC16 47 |
| 2052 | #define R_PPC64_TOC16_LO 48 |
| 2053 | #define R_PPC64_TOC16_HI 49 |
| 2054 | #define R_PPC64_TOC16_HA 50 |
| 2055 | #define R_PPC64_TOC 51 |
| 2056 | #define R_PPC64_PLTGOT16 52 |
| 2057 | #define R_PPC64_PLTGOT16_LO 53 |
| 2058 | #define R_PPC64_PLTGOT16_HI 54 |
| 2059 | #define R_PPC64_PLTGOT16_HA 55 |
| 2060 | |
| 2061 | #define R_PPC64_ADDR16_DS 56 |
| 2062 | #define R_PPC64_ADDR16_LO_DS 57 |
| 2063 | #define R_PPC64_GOT16_DS 58 |
| 2064 | #define R_PPC64_GOT16_LO_DS 59 |
| 2065 | #define R_PPC64_PLT16_LO_DS 60 |
| 2066 | #define R_PPC64_SECTOFF_DS 61 |
| 2067 | #define R_PPC64_SECTOFF_LO_DS 62 |
| 2068 | #define R_PPC64_TOC16_DS 63 |
| 2069 | #define R_PPC64_TOC16_LO_DS 64 |
| 2070 | #define R_PPC64_PLTGOT16_DS 65 |
| 2071 | #define R_PPC64_PLTGOT16_LO_DS 66 |
| 2072 | |
| 2073 | |
| 2074 | #define R_PPC64_TLS 67 |
| 2075 | #define R_PPC64_DTPMOD64 68 |
| 2076 | #define R_PPC64_TPREL16 69 |
| 2077 | #define R_PPC64_TPREL16_LO 70 |
| 2078 | #define R_PPC64_TPREL16_HI 71 |
| 2079 | #define R_PPC64_TPREL16_HA 72 |
| 2080 | #define R_PPC64_TPREL64 73 |
| 2081 | #define R_PPC64_DTPREL16 74 |
| 2082 | #define R_PPC64_DTPREL16_LO 75 |
| 2083 | #define R_PPC64_DTPREL16_HI 76 |
| 2084 | #define R_PPC64_DTPREL16_HA 77 |
| 2085 | #define R_PPC64_DTPREL64 78 |
| 2086 | #define R_PPC64_GOT_TLSGD16 79 |
| 2087 | #define R_PPC64_GOT_TLSGD16_LO 80 |
| 2088 | #define R_PPC64_GOT_TLSGD16_HI 81 |
| 2089 | #define R_PPC64_GOT_TLSGD16_HA 82 |
| 2090 | #define R_PPC64_GOT_TLSLD16 83 |
| 2091 | #define R_PPC64_GOT_TLSLD16_LO 84 |
| 2092 | #define R_PPC64_GOT_TLSLD16_HI 85 |
| 2093 | #define R_PPC64_GOT_TLSLD16_HA 86 |
| 2094 | #define R_PPC64_GOT_TPREL16_DS 87 |
| 2095 | #define R_PPC64_GOT_TPREL16_LO_DS 88 |
| 2096 | #define R_PPC64_GOT_TPREL16_HI 89 |
| 2097 | #define R_PPC64_GOT_TPREL16_HA 90 |
| 2098 | #define R_PPC64_GOT_DTPREL16_DS 91 |
| 2099 | #define R_PPC64_GOT_DTPREL16_LO_DS 92 |
| 2100 | #define R_PPC64_GOT_DTPREL16_HI 93 |
| 2101 | #define R_PPC64_GOT_DTPREL16_HA 94 |
| 2102 | #define R_PPC64_TPREL16_DS 95 |
| 2103 | #define R_PPC64_TPREL16_LO_DS 96 |
| 2104 | #define R_PPC64_TPREL16_HIGHER 97 |
| 2105 | #define R_PPC64_TPREL16_HIGHERA 98 |
| 2106 | #define R_PPC64_TPREL16_HIGHEST 99 |
| 2107 | #define R_PPC64_TPREL16_HIGHESTA 100 |
| 2108 | #define R_PPC64_DTPREL16_DS 101 |
| 2109 | #define R_PPC64_DTPREL16_LO_DS 102 |
| 2110 | #define R_PPC64_DTPREL16_HIGHER 103 |
| 2111 | #define R_PPC64_DTPREL16_HIGHERA 104 |
| 2112 | #define R_PPC64_DTPREL16_HIGHEST 105 |
| 2113 | #define R_PPC64_DTPREL16_HIGHESTA 106 |
Szabolcs Nagy | 35b5819 | 2016-04-20 13:14:53 +0200 | [diff] [blame] | 2114 | #define R_PPC64_TLSGD 107 |
| 2115 | #define R_PPC64_TLSLD 108 |
| 2116 | #define R_PPC64_TOCSAVE 109 |
| 2117 | #define R_PPC64_ADDR16_HIGH 110 |
| 2118 | #define R_PPC64_ADDR16_HIGHA 111 |
| 2119 | #define R_PPC64_TPREL16_HIGH 112 |
| 2120 | #define R_PPC64_TPREL16_HIGHA 113 |
| 2121 | #define R_PPC64_DTPREL16_HIGH 114 |
| 2122 | #define R_PPC64_DTPREL16_HIGHA 115 |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 2123 | |
| 2124 | |
| 2125 | #define R_PPC64_JMP_IREL 247 |
| 2126 | #define R_PPC64_IRELATIVE 248 |
| 2127 | #define R_PPC64_REL16 249 |
| 2128 | #define R_PPC64_REL16_LO 250 |
| 2129 | #define R_PPC64_REL16_HI 251 |
| 2130 | #define R_PPC64_REL16_HA 252 |
| 2131 | |
Szabolcs Nagy | b921e0f | 2016-04-20 13:15:16 +0200 | [diff] [blame] | 2132 | #define EF_PPC64_ABI 3 |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 2133 | |
| 2134 | #define DT_PPC64_GLINK (DT_LOPROC + 0) |
| 2135 | #define DT_PPC64_OPD (DT_LOPROC + 1) |
| 2136 | #define DT_PPC64_OPDSZ (DT_LOPROC + 2) |
Szabolcs Nagy | b921e0f | 2016-04-20 13:15:16 +0200 | [diff] [blame] | 2137 | #define DT_PPC64_OPT (DT_LOPROC + 3) |
| 2138 | #define DT_PPC64_NUM 4 |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 2139 | |
Szabolcs Nagy | b921e0f | 2016-04-20 13:15:16 +0200 | [diff] [blame] | 2140 | #define PPC64_OPT_TLS 1 |
| 2141 | #define PPC64_OPT_MULTI_TOC 2 |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 2142 | |
Szabolcs Nagy | b921e0f | 2016-04-20 13:15:16 +0200 | [diff] [blame] | 2143 | #define STO_PPC64_LOCAL_BIT 5 |
| 2144 | #define STO_PPC64_LOCAL_MASK 0xe0 |
| 2145 | #define PPC64_LOCAL_ENTRY_OFFSET(x) (1 << (((x)&0xe0)>>5) & 0xfc) |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 2146 | |
| 2147 | |
| 2148 | #define EF_ARM_RELEXEC 0x01 |
| 2149 | #define EF_ARM_HASENTRY 0x02 |
| 2150 | #define EF_ARM_INTERWORK 0x04 |
| 2151 | #define EF_ARM_APCS_26 0x08 |
| 2152 | #define EF_ARM_APCS_FLOAT 0x10 |
| 2153 | #define EF_ARM_PIC 0x20 |
| 2154 | #define EF_ARM_ALIGN8 0x40 |
| 2155 | #define EF_ARM_NEW_ABI 0x80 |
| 2156 | #define EF_ARM_OLD_ABI 0x100 |
| 2157 | #define EF_ARM_SOFT_FLOAT 0x200 |
| 2158 | #define EF_ARM_VFP_FLOAT 0x400 |
| 2159 | #define EF_ARM_MAVERICK_FLOAT 0x800 |
| 2160 | |
Szabolcs Nagy | 268375c | 2013-09-15 14:53:34 +0000 | [diff] [blame] | 2161 | #define EF_ARM_ABI_FLOAT_SOFT 0x200 |
| 2162 | #define EF_ARM_ABI_FLOAT_HARD 0x400 |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 2163 | |
| 2164 | |
| 2165 | #define EF_ARM_SYMSARESORTED 0x04 |
| 2166 | #define EF_ARM_DYNSYMSUSESEGIDX 0x08 |
| 2167 | #define EF_ARM_MAPSYMSFIRST 0x10 |
| 2168 | #define EF_ARM_EABIMASK 0XFF000000 |
| 2169 | |
| 2170 | |
| 2171 | #define EF_ARM_BE8 0x00800000 |
| 2172 | #define EF_ARM_LE8 0x00400000 |
| 2173 | |
| 2174 | #define EF_ARM_EABI_VERSION(flags) ((flags) & EF_ARM_EABIMASK) |
| 2175 | #define EF_ARM_EABI_UNKNOWN 0x00000000 |
| 2176 | #define EF_ARM_EABI_VER1 0x01000000 |
| 2177 | #define EF_ARM_EABI_VER2 0x02000000 |
| 2178 | #define EF_ARM_EABI_VER3 0x03000000 |
| 2179 | #define EF_ARM_EABI_VER4 0x04000000 |
| 2180 | #define EF_ARM_EABI_VER5 0x05000000 |
| 2181 | |
| 2182 | |
| 2183 | #define STT_ARM_TFUNC STT_LOPROC |
| 2184 | #define STT_ARM_16BIT STT_HIPROC |
| 2185 | |
| 2186 | |
| 2187 | #define SHF_ARM_ENTRYSECT 0x10000000 |
| 2188 | #define SHF_ARM_COMDEF 0x80000000 |
| 2189 | |
| 2190 | |
| 2191 | |
| 2192 | #define PF_ARM_SB 0x10000000 |
| 2193 | |
| 2194 | #define PF_ARM_PI 0x20000000 |
| 2195 | #define PF_ARM_ABS 0x40000000 |
| 2196 | |
| 2197 | |
| 2198 | #define PT_ARM_EXIDX (PT_LOPROC + 1) |
| 2199 | |
| 2200 | |
| 2201 | #define SHT_ARM_EXIDX (SHT_LOPROC + 1) |
| 2202 | #define SHT_ARM_PREEMPTMAP (SHT_LOPROC + 2) |
| 2203 | #define SHT_ARM_ATTRIBUTES (SHT_LOPROC + 3) |
| 2204 | |
Szabolcs Nagy | 268375c | 2013-09-15 14:53:34 +0000 | [diff] [blame] | 2205 | #define R_AARCH64_NONE 0 |
Szabolcs Nagy | 49eb322 | 2016-07-03 22:13:44 +0200 | [diff] [blame] | 2206 | #define R_AARCH64_P32_ABS32 1 |
| 2207 | #define R_AARCH64_P32_COPY 180 |
| 2208 | #define R_AARCH64_P32_GLOB_DAT 181 |
| 2209 | #define R_AARCH64_P32_JUMP_SLOT 182 |
| 2210 | #define R_AARCH64_P32_RELATIVE 183 |
| 2211 | #define R_AARCH64_P32_TLS_DTPMOD 184 |
| 2212 | #define R_AARCH64_P32_TLS_DTPREL 185 |
| 2213 | #define R_AARCH64_P32_TLS_TPREL 186 |
| 2214 | #define R_AARCH64_P32_TLSDESC 187 |
| 2215 | #define R_AARCH64_P32_IRELATIVE 188 |
Szabolcs Nagy | 268375c | 2013-09-15 14:53:34 +0000 | [diff] [blame] | 2216 | #define R_AARCH64_ABS64 257 |
| 2217 | #define R_AARCH64_ABS32 258 |
Szabolcs Nagy | a8a4e5c | 2014-02-25 00:17:29 +0100 | [diff] [blame] | 2218 | #define R_AARCH64_ABS16 259 |
| 2219 | #define R_AARCH64_PREL64 260 |
| 2220 | #define R_AARCH64_PREL32 261 |
| 2221 | #define R_AARCH64_PREL16 262 |
| 2222 | #define R_AARCH64_MOVW_UABS_G0 263 |
| 2223 | #define R_AARCH64_MOVW_UABS_G0_NC 264 |
| 2224 | #define R_AARCH64_MOVW_UABS_G1 265 |
| 2225 | #define R_AARCH64_MOVW_UABS_G1_NC 266 |
| 2226 | #define R_AARCH64_MOVW_UABS_G2 267 |
| 2227 | #define R_AARCH64_MOVW_UABS_G2_NC 268 |
| 2228 | #define R_AARCH64_MOVW_UABS_G3 269 |
| 2229 | #define R_AARCH64_MOVW_SABS_G0 270 |
| 2230 | #define R_AARCH64_MOVW_SABS_G1 271 |
| 2231 | #define R_AARCH64_MOVW_SABS_G2 272 |
| 2232 | #define R_AARCH64_LD_PREL_LO19 273 |
| 2233 | #define R_AARCH64_ADR_PREL_LO21 274 |
| 2234 | #define R_AARCH64_ADR_PREL_PG_HI21 275 |
| 2235 | #define R_AARCH64_ADR_PREL_PG_HI21_NC 276 |
| 2236 | #define R_AARCH64_ADD_ABS_LO12_NC 277 |
| 2237 | #define R_AARCH64_LDST8_ABS_LO12_NC 278 |
| 2238 | #define R_AARCH64_TSTBR14 279 |
| 2239 | #define R_AARCH64_CONDBR19 280 |
| 2240 | #define R_AARCH64_JUMP26 282 |
| 2241 | #define R_AARCH64_CALL26 283 |
| 2242 | #define R_AARCH64_LDST16_ABS_LO12_NC 284 |
| 2243 | #define R_AARCH64_LDST32_ABS_LO12_NC 285 |
| 2244 | #define R_AARCH64_LDST64_ABS_LO12_NC 286 |
| 2245 | #define R_AARCH64_MOVW_PREL_G0 287 |
| 2246 | #define R_AARCH64_MOVW_PREL_G0_NC 288 |
| 2247 | #define R_AARCH64_MOVW_PREL_G1 289 |
| 2248 | #define R_AARCH64_MOVW_PREL_G1_NC 290 |
| 2249 | #define R_AARCH64_MOVW_PREL_G2 291 |
| 2250 | #define R_AARCH64_MOVW_PREL_G2_NC 292 |
| 2251 | #define R_AARCH64_MOVW_PREL_G3 293 |
| 2252 | #define R_AARCH64_LDST128_ABS_LO12_NC 299 |
| 2253 | #define R_AARCH64_MOVW_GOTOFF_G0 300 |
| 2254 | #define R_AARCH64_MOVW_GOTOFF_G0_NC 301 |
| 2255 | #define R_AARCH64_MOVW_GOTOFF_G1 302 |
| 2256 | #define R_AARCH64_MOVW_GOTOFF_G1_NC 303 |
| 2257 | #define R_AARCH64_MOVW_GOTOFF_G2 304 |
| 2258 | #define R_AARCH64_MOVW_GOTOFF_G2_NC 305 |
| 2259 | #define R_AARCH64_MOVW_GOTOFF_G3 306 |
| 2260 | #define R_AARCH64_GOTREL64 307 |
| 2261 | #define R_AARCH64_GOTREL32 308 |
| 2262 | #define R_AARCH64_GOT_LD_PREL19 309 |
| 2263 | #define R_AARCH64_LD64_GOTOFF_LO15 310 |
| 2264 | #define R_AARCH64_ADR_GOT_PAGE 311 |
| 2265 | #define R_AARCH64_LD64_GOT_LO12_NC 312 |
| 2266 | #define R_AARCH64_LD64_GOTPAGE_LO15 313 |
| 2267 | #define R_AARCH64_TLSGD_ADR_PREL21 512 |
| 2268 | #define R_AARCH64_TLSGD_ADR_PAGE21 513 |
| 2269 | #define R_AARCH64_TLSGD_ADD_LO12_NC 514 |
| 2270 | #define R_AARCH64_TLSGD_MOVW_G1 515 |
| 2271 | #define R_AARCH64_TLSGD_MOVW_G0_NC 516 |
| 2272 | #define R_AARCH64_TLSLD_ADR_PREL21 517 |
| 2273 | #define R_AARCH64_TLSLD_ADR_PAGE21 518 |
| 2274 | #define R_AARCH64_TLSLD_ADD_LO12_NC 519 |
| 2275 | #define R_AARCH64_TLSLD_MOVW_G1 520 |
| 2276 | #define R_AARCH64_TLSLD_MOVW_G0_NC 521 |
| 2277 | #define R_AARCH64_TLSLD_LD_PREL19 522 |
| 2278 | #define R_AARCH64_TLSLD_MOVW_DTPREL_G2 523 |
| 2279 | #define R_AARCH64_TLSLD_MOVW_DTPREL_G1 524 |
| 2280 | #define R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC 525 |
| 2281 | #define R_AARCH64_TLSLD_MOVW_DTPREL_G0 526 |
| 2282 | #define R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC 527 |
| 2283 | #define R_AARCH64_TLSLD_ADD_DTPREL_HI12 528 |
| 2284 | #define R_AARCH64_TLSLD_ADD_DTPREL_LO12 529 |
| 2285 | #define R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC 530 |
| 2286 | #define R_AARCH64_TLSLD_LDST8_DTPREL_LO12 531 |
| 2287 | #define R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC 532 |
| 2288 | #define R_AARCH64_TLSLD_LDST16_DTPREL_LO12 533 |
| 2289 | #define R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC 534 |
| 2290 | #define R_AARCH64_TLSLD_LDST32_DTPREL_LO12 535 |
| 2291 | #define R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC 536 |
| 2292 | #define R_AARCH64_TLSLD_LDST64_DTPREL_LO12 537 |
| 2293 | #define R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC 538 |
| 2294 | #define R_AARCH64_TLSIE_MOVW_GOTTPREL_G1 539 |
| 2295 | #define R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC 540 |
| 2296 | #define R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21 541 |
| 2297 | #define R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC 542 |
| 2298 | #define R_AARCH64_TLSIE_LD_GOTTPREL_PREL19 543 |
| 2299 | #define R_AARCH64_TLSLE_MOVW_TPREL_G2 544 |
| 2300 | #define R_AARCH64_TLSLE_MOVW_TPREL_G1 545 |
| 2301 | #define R_AARCH64_TLSLE_MOVW_TPREL_G1_NC 546 |
| 2302 | #define R_AARCH64_TLSLE_MOVW_TPREL_G0 547 |
| 2303 | #define R_AARCH64_TLSLE_MOVW_TPREL_G0_NC 548 |
| 2304 | #define R_AARCH64_TLSLE_ADD_TPREL_HI12 549 |
| 2305 | #define R_AARCH64_TLSLE_ADD_TPREL_LO12 550 |
| 2306 | #define R_AARCH64_TLSLE_ADD_TPREL_LO12_NC 551 |
| 2307 | #define R_AARCH64_TLSLE_LDST8_TPREL_LO12 552 |
| 2308 | #define R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC 553 |
| 2309 | #define R_AARCH64_TLSLE_LDST16_TPREL_LO12 554 |
| 2310 | #define R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC 555 |
| 2311 | #define R_AARCH64_TLSLE_LDST32_TPREL_LO12 556 |
| 2312 | #define R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC 557 |
| 2313 | #define R_AARCH64_TLSLE_LDST64_TPREL_LO12 558 |
| 2314 | #define R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC 559 |
| 2315 | #define R_AARCH64_TLSDESC_LD_PREL19 560 |
| 2316 | #define R_AARCH64_TLSDESC_ADR_PREL21 561 |
| 2317 | #define R_AARCH64_TLSDESC_ADR_PAGE21 562 |
| 2318 | #define R_AARCH64_TLSDESC_LD64_LO12 563 |
| 2319 | #define R_AARCH64_TLSDESC_ADD_LO12 564 |
| 2320 | #define R_AARCH64_TLSDESC_OFF_G1 565 |
| 2321 | #define R_AARCH64_TLSDESC_OFF_G0_NC 566 |
| 2322 | #define R_AARCH64_TLSDESC_LDR 567 |
| 2323 | #define R_AARCH64_TLSDESC_ADD 568 |
| 2324 | #define R_AARCH64_TLSDESC_CALL 569 |
| 2325 | #define R_AARCH64_TLSLE_LDST128_TPREL_LO12 570 |
| 2326 | #define R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC 571 |
| 2327 | #define R_AARCH64_TLSLD_LDST128_DTPREL_LO12 572 |
| 2328 | #define R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC 573 |
Szabolcs Nagy | 268375c | 2013-09-15 14:53:34 +0000 | [diff] [blame] | 2329 | #define R_AARCH64_COPY 1024 |
| 2330 | #define R_AARCH64_GLOB_DAT 1025 |
| 2331 | #define R_AARCH64_JUMP_SLOT 1026 |
| 2332 | #define R_AARCH64_RELATIVE 1027 |
Szabolcs Nagy | 49eb322 | 2016-07-03 22:13:44 +0200 | [diff] [blame] | 2333 | #define R_AARCH64_TLS_DTPMOD 1028 |
Szabolcs Nagy | 268375c | 2013-09-15 14:53:34 +0000 | [diff] [blame] | 2334 | #define R_AARCH64_TLS_DTPMOD64 1028 |
Szabolcs Nagy | 49eb322 | 2016-07-03 22:13:44 +0200 | [diff] [blame] | 2335 | #define R_AARCH64_TLS_DTPREL 1029 |
Szabolcs Nagy | 268375c | 2013-09-15 14:53:34 +0000 | [diff] [blame] | 2336 | #define R_AARCH64_TLS_DTPREL64 1029 |
Szabolcs Nagy | 49eb322 | 2016-07-03 22:13:44 +0200 | [diff] [blame] | 2337 | #define R_AARCH64_TLS_TPREL 1030 |
Szabolcs Nagy | 268375c | 2013-09-15 14:53:34 +0000 | [diff] [blame] | 2338 | #define R_AARCH64_TLS_TPREL64 1030 |
| 2339 | #define R_AARCH64_TLSDESC 1031 |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 2340 | |
| 2341 | |
| 2342 | #define R_ARM_NONE 0 |
| 2343 | #define R_ARM_PC24 1 |
| 2344 | #define R_ARM_ABS32 2 |
| 2345 | #define R_ARM_REL32 3 |
| 2346 | #define R_ARM_PC13 4 |
| 2347 | #define R_ARM_ABS16 5 |
| 2348 | #define R_ARM_ABS12 6 |
| 2349 | #define R_ARM_THM_ABS5 7 |
| 2350 | #define R_ARM_ABS8 8 |
| 2351 | #define R_ARM_SBREL32 9 |
| 2352 | #define R_ARM_THM_PC22 10 |
| 2353 | #define R_ARM_THM_PC8 11 |
| 2354 | #define R_ARM_AMP_VCALL9 12 |
Szabolcs Nagy | 268375c | 2013-09-15 14:53:34 +0000 | [diff] [blame] | 2355 | #define R_ARM_TLS_DESC 13 |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 2356 | #define R_ARM_THM_SWI8 14 |
| 2357 | #define R_ARM_XPC25 15 |
| 2358 | #define R_ARM_THM_XPC22 16 |
| 2359 | #define R_ARM_TLS_DTPMOD32 17 |
| 2360 | #define R_ARM_TLS_DTPOFF32 18 |
| 2361 | #define R_ARM_TLS_TPOFF32 19 |
| 2362 | #define R_ARM_COPY 20 |
| 2363 | #define R_ARM_GLOB_DAT 21 |
| 2364 | #define R_ARM_JUMP_SLOT 22 |
| 2365 | #define R_ARM_RELATIVE 23 |
| 2366 | #define R_ARM_GOTOFF 24 |
| 2367 | #define R_ARM_GOTPC 25 |
| 2368 | #define R_ARM_GOT32 26 |
| 2369 | #define R_ARM_PLT32 27 |
Szabolcs Nagy | 268375c | 2013-09-15 14:53:34 +0000 | [diff] [blame] | 2370 | #define R_ARM_CALL 28 |
| 2371 | #define R_ARM_JUMP24 29 |
| 2372 | #define R_ARM_THM_JUMP24 30 |
| 2373 | #define R_ARM_BASE_ABS 31 |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 2374 | #define R_ARM_ALU_PCREL_7_0 32 |
| 2375 | #define R_ARM_ALU_PCREL_15_8 33 |
| 2376 | #define R_ARM_ALU_PCREL_23_15 34 |
| 2377 | #define R_ARM_LDR_SBREL_11_0 35 |
| 2378 | #define R_ARM_ALU_SBREL_19_12 36 |
| 2379 | #define R_ARM_ALU_SBREL_27_20 37 |
Szabolcs Nagy | 268375c | 2013-09-15 14:53:34 +0000 | [diff] [blame] | 2380 | #define R_ARM_TARGET1 38 |
| 2381 | #define R_ARM_SBREL31 39 |
| 2382 | #define R_ARM_V4BX 40 |
| 2383 | #define R_ARM_TARGET2 41 |
| 2384 | #define R_ARM_PREL31 42 |
| 2385 | #define R_ARM_MOVW_ABS_NC 43 |
| 2386 | #define R_ARM_MOVT_ABS 44 |
| 2387 | #define R_ARM_MOVW_PREL_NC 45 |
| 2388 | #define R_ARM_MOVT_PREL 46 |
| 2389 | #define R_ARM_THM_MOVW_ABS_NC 47 |
| 2390 | #define R_ARM_THM_MOVT_ABS 48 |
| 2391 | #define R_ARM_THM_MOVW_PREL_NC 49 |
| 2392 | #define R_ARM_THM_MOVT_PREL 50 |
| 2393 | #define R_ARM_THM_JUMP19 51 |
| 2394 | #define R_ARM_THM_JUMP6 52 |
| 2395 | #define R_ARM_THM_ALU_PREL_11_0 53 |
| 2396 | #define R_ARM_THM_PC12 54 |
| 2397 | #define R_ARM_ABS32_NOI 55 |
| 2398 | #define R_ARM_REL32_NOI 56 |
| 2399 | #define R_ARM_ALU_PC_G0_NC 57 |
| 2400 | #define R_ARM_ALU_PC_G0 58 |
| 2401 | #define R_ARM_ALU_PC_G1_NC 59 |
| 2402 | #define R_ARM_ALU_PC_G1 60 |
| 2403 | #define R_ARM_ALU_PC_G2 61 |
| 2404 | #define R_ARM_LDR_PC_G1 62 |
| 2405 | #define R_ARM_LDR_PC_G2 63 |
| 2406 | #define R_ARM_LDRS_PC_G0 64 |
| 2407 | #define R_ARM_LDRS_PC_G1 65 |
| 2408 | #define R_ARM_LDRS_PC_G2 66 |
| 2409 | #define R_ARM_LDC_PC_G0 67 |
| 2410 | #define R_ARM_LDC_PC_G1 68 |
| 2411 | #define R_ARM_LDC_PC_G2 69 |
| 2412 | #define R_ARM_ALU_SB_G0_NC 70 |
| 2413 | #define R_ARM_ALU_SB_G0 71 |
| 2414 | #define R_ARM_ALU_SB_G1_NC 72 |
| 2415 | #define R_ARM_ALU_SB_G1 73 |
| 2416 | #define R_ARM_ALU_SB_G2 74 |
| 2417 | #define R_ARM_LDR_SB_G0 75 |
| 2418 | #define R_ARM_LDR_SB_G1 76 |
| 2419 | #define R_ARM_LDR_SB_G2 77 |
| 2420 | #define R_ARM_LDRS_SB_G0 78 |
| 2421 | #define R_ARM_LDRS_SB_G1 79 |
| 2422 | #define R_ARM_LDRS_SB_G2 80 |
| 2423 | #define R_ARM_LDC_SB_G0 81 |
| 2424 | #define R_ARM_LDC_SB_G1 82 |
| 2425 | #define R_ARM_LDC_SB_G2 83 |
| 2426 | #define R_ARM_MOVW_BREL_NC 84 |
| 2427 | #define R_ARM_MOVT_BREL 85 |
| 2428 | #define R_ARM_MOVW_BREL 86 |
| 2429 | #define R_ARM_THM_MOVW_BREL_NC 87 |
| 2430 | #define R_ARM_THM_MOVT_BREL 88 |
| 2431 | #define R_ARM_THM_MOVW_BREL 89 |
| 2432 | #define R_ARM_TLS_GOTDESC 90 |
| 2433 | #define R_ARM_TLS_CALL 91 |
| 2434 | #define R_ARM_TLS_DESCSEQ 92 |
| 2435 | #define R_ARM_THM_TLS_CALL 93 |
| 2436 | #define R_ARM_PLT32_ABS 94 |
| 2437 | #define R_ARM_GOT_ABS 95 |
| 2438 | #define R_ARM_GOT_PREL 96 |
| 2439 | #define R_ARM_GOT_BREL12 97 |
| 2440 | #define R_ARM_GOTOFF12 98 |
| 2441 | #define R_ARM_GOTRELAX 99 |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 2442 | #define R_ARM_GNU_VTENTRY 100 |
| 2443 | #define R_ARM_GNU_VTINHERIT 101 |
| 2444 | #define R_ARM_THM_PC11 102 |
| 2445 | #define R_ARM_THM_PC9 103 |
| 2446 | #define R_ARM_TLS_GD32 104 |
| 2447 | |
| 2448 | #define R_ARM_TLS_LDM32 105 |
| 2449 | |
| 2450 | #define R_ARM_TLS_LDO32 106 |
| 2451 | |
| 2452 | #define R_ARM_TLS_IE32 107 |
| 2453 | |
| 2454 | #define R_ARM_TLS_LE32 108 |
Szabolcs Nagy | 268375c | 2013-09-15 14:53:34 +0000 | [diff] [blame] | 2455 | #define R_ARM_TLS_LDO12 109 |
| 2456 | #define R_ARM_TLS_LE12 110 |
| 2457 | #define R_ARM_TLS_IE12GP 111 |
| 2458 | #define R_ARM_ME_TOO 128 |
| 2459 | #define R_ARM_THM_TLS_DESCSEQ 129 |
| 2460 | #define R_ARM_THM_TLS_DESCSEQ16 129 |
| 2461 | #define R_ARM_THM_TLS_DESCSEQ32 130 |
| 2462 | #define R_ARM_THM_GOT_BREL12 131 |
| 2463 | #define R_ARM_IRELATIVE 160 |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 2464 | #define R_ARM_RXPC25 249 |
| 2465 | #define R_ARM_RSBREL32 250 |
| 2466 | #define R_ARM_THM_RPC22 251 |
| 2467 | #define R_ARM_RREL32 252 |
| 2468 | #define R_ARM_RABS22 253 |
| 2469 | #define R_ARM_RPC24 254 |
| 2470 | #define R_ARM_RBASE 255 |
| 2471 | |
| 2472 | #define R_ARM_NUM 256 |
| 2473 | |
| 2474 | |
| 2475 | |
| 2476 | |
| 2477 | #define EF_IA_64_MASKOS 0x0000000f |
| 2478 | #define EF_IA_64_ABI64 0x00000010 |
| 2479 | #define EF_IA_64_ARCH 0xff000000 |
| 2480 | |
| 2481 | |
| 2482 | #define PT_IA_64_ARCHEXT (PT_LOPROC + 0) |
| 2483 | #define PT_IA_64_UNWIND (PT_LOPROC + 1) |
| 2484 | #define PT_IA_64_HP_OPT_ANOT (PT_LOOS + 0x12) |
| 2485 | #define PT_IA_64_HP_HSL_ANOT (PT_LOOS + 0x13) |
| 2486 | #define PT_IA_64_HP_STACK (PT_LOOS + 0x14) |
| 2487 | |
| 2488 | |
| 2489 | #define PF_IA_64_NORECOV 0x80000000 |
| 2490 | |
| 2491 | |
| 2492 | #define SHT_IA_64_EXT (SHT_LOPROC + 0) |
| 2493 | #define SHT_IA_64_UNWIND (SHT_LOPROC + 1) |
| 2494 | |
| 2495 | |
| 2496 | #define SHF_IA_64_SHORT 0x10000000 |
| 2497 | #define SHF_IA_64_NORECOV 0x20000000 |
| 2498 | |
| 2499 | |
| 2500 | #define DT_IA_64_PLT_RESERVE (DT_LOPROC + 0) |
| 2501 | #define DT_IA_64_NUM 1 |
| 2502 | |
| 2503 | |
| 2504 | #define R_IA64_NONE 0x00 |
| 2505 | #define R_IA64_IMM14 0x21 |
| 2506 | #define R_IA64_IMM22 0x22 |
| 2507 | #define R_IA64_IMM64 0x23 |
| 2508 | #define R_IA64_DIR32MSB 0x24 |
| 2509 | #define R_IA64_DIR32LSB 0x25 |
| 2510 | #define R_IA64_DIR64MSB 0x26 |
| 2511 | #define R_IA64_DIR64LSB 0x27 |
| 2512 | #define R_IA64_GPREL22 0x2a |
| 2513 | #define R_IA64_GPREL64I 0x2b |
| 2514 | #define R_IA64_GPREL32MSB 0x2c |
| 2515 | #define R_IA64_GPREL32LSB 0x2d |
| 2516 | #define R_IA64_GPREL64MSB 0x2e |
| 2517 | #define R_IA64_GPREL64LSB 0x2f |
| 2518 | #define R_IA64_LTOFF22 0x32 |
| 2519 | #define R_IA64_LTOFF64I 0x33 |
| 2520 | #define R_IA64_PLTOFF22 0x3a |
| 2521 | #define R_IA64_PLTOFF64I 0x3b |
| 2522 | #define R_IA64_PLTOFF64MSB 0x3e |
| 2523 | #define R_IA64_PLTOFF64LSB 0x3f |
| 2524 | #define R_IA64_FPTR64I 0x43 |
| 2525 | #define R_IA64_FPTR32MSB 0x44 |
| 2526 | #define R_IA64_FPTR32LSB 0x45 |
| 2527 | #define R_IA64_FPTR64MSB 0x46 |
| 2528 | #define R_IA64_FPTR64LSB 0x47 |
| 2529 | #define R_IA64_PCREL60B 0x48 |
| 2530 | #define R_IA64_PCREL21B 0x49 |
| 2531 | #define R_IA64_PCREL21M 0x4a |
| 2532 | #define R_IA64_PCREL21F 0x4b |
| 2533 | #define R_IA64_PCREL32MSB 0x4c |
| 2534 | #define R_IA64_PCREL32LSB 0x4d |
| 2535 | #define R_IA64_PCREL64MSB 0x4e |
| 2536 | #define R_IA64_PCREL64LSB 0x4f |
| 2537 | #define R_IA64_LTOFF_FPTR22 0x52 |
| 2538 | #define R_IA64_LTOFF_FPTR64I 0x53 |
| 2539 | #define R_IA64_LTOFF_FPTR32MSB 0x54 |
| 2540 | #define R_IA64_LTOFF_FPTR32LSB 0x55 |
| 2541 | #define R_IA64_LTOFF_FPTR64MSB 0x56 |
| 2542 | #define R_IA64_LTOFF_FPTR64LSB 0x57 |
| 2543 | #define R_IA64_SEGREL32MSB 0x5c |
| 2544 | #define R_IA64_SEGREL32LSB 0x5d |
| 2545 | #define R_IA64_SEGREL64MSB 0x5e |
| 2546 | #define R_IA64_SEGREL64LSB 0x5f |
| 2547 | #define R_IA64_SECREL32MSB 0x64 |
| 2548 | #define R_IA64_SECREL32LSB 0x65 |
| 2549 | #define R_IA64_SECREL64MSB 0x66 |
| 2550 | #define R_IA64_SECREL64LSB 0x67 |
| 2551 | #define R_IA64_REL32MSB 0x6c |
| 2552 | #define R_IA64_REL32LSB 0x6d |
| 2553 | #define R_IA64_REL64MSB 0x6e |
| 2554 | #define R_IA64_REL64LSB 0x6f |
| 2555 | #define R_IA64_LTV32MSB 0x74 |
| 2556 | #define R_IA64_LTV32LSB 0x75 |
| 2557 | #define R_IA64_LTV64MSB 0x76 |
| 2558 | #define R_IA64_LTV64LSB 0x77 |
| 2559 | #define R_IA64_PCREL21BI 0x79 |
| 2560 | #define R_IA64_PCREL22 0x7a |
| 2561 | #define R_IA64_PCREL64I 0x7b |
| 2562 | #define R_IA64_IPLTMSB 0x80 |
| 2563 | #define R_IA64_IPLTLSB 0x81 |
| 2564 | #define R_IA64_COPY 0x84 |
| 2565 | #define R_IA64_SUB 0x85 |
| 2566 | #define R_IA64_LTOFF22X 0x86 |
| 2567 | #define R_IA64_LDXMOV 0x87 |
| 2568 | #define R_IA64_TPREL14 0x91 |
| 2569 | #define R_IA64_TPREL22 0x92 |
| 2570 | #define R_IA64_TPREL64I 0x93 |
| 2571 | #define R_IA64_TPREL64MSB 0x96 |
| 2572 | #define R_IA64_TPREL64LSB 0x97 |
| 2573 | #define R_IA64_LTOFF_TPREL22 0x9a |
| 2574 | #define R_IA64_DTPMOD64MSB 0xa6 |
| 2575 | #define R_IA64_DTPMOD64LSB 0xa7 |
| 2576 | #define R_IA64_LTOFF_DTPMOD22 0xaa |
| 2577 | #define R_IA64_DTPREL14 0xb1 |
| 2578 | #define R_IA64_DTPREL22 0xb2 |
| 2579 | #define R_IA64_DTPREL64I 0xb3 |
| 2580 | #define R_IA64_DTPREL32MSB 0xb4 |
| 2581 | #define R_IA64_DTPREL32LSB 0xb5 |
| 2582 | #define R_IA64_DTPREL64MSB 0xb6 |
| 2583 | #define R_IA64_DTPREL64LSB 0xb7 |
| 2584 | #define R_IA64_LTOFF_DTPREL22 0xba |
| 2585 | |
| 2586 | |
| 2587 | |
| 2588 | |
| 2589 | #define R_SH_NONE 0 |
| 2590 | #define R_SH_DIR32 1 |
| 2591 | #define R_SH_REL32 2 |
| 2592 | #define R_SH_DIR8WPN 3 |
| 2593 | #define R_SH_IND12W 4 |
| 2594 | #define R_SH_DIR8WPL 5 |
| 2595 | #define R_SH_DIR8WPZ 6 |
| 2596 | #define R_SH_DIR8BP 7 |
| 2597 | #define R_SH_DIR8W 8 |
| 2598 | #define R_SH_DIR8L 9 |
| 2599 | #define R_SH_SWITCH16 25 |
| 2600 | #define R_SH_SWITCH32 26 |
| 2601 | #define R_SH_USES 27 |
| 2602 | #define R_SH_COUNT 28 |
| 2603 | #define R_SH_ALIGN 29 |
| 2604 | #define R_SH_CODE 30 |
| 2605 | #define R_SH_DATA 31 |
| 2606 | #define R_SH_LABEL 32 |
| 2607 | #define R_SH_SWITCH8 33 |
| 2608 | #define R_SH_GNU_VTINHERIT 34 |
| 2609 | #define R_SH_GNU_VTENTRY 35 |
| 2610 | #define R_SH_TLS_GD_32 144 |
| 2611 | #define R_SH_TLS_LD_32 145 |
| 2612 | #define R_SH_TLS_LDO_32 146 |
| 2613 | #define R_SH_TLS_IE_32 147 |
| 2614 | #define R_SH_TLS_LE_32 148 |
| 2615 | #define R_SH_TLS_DTPMOD32 149 |
| 2616 | #define R_SH_TLS_DTPOFF32 150 |
| 2617 | #define R_SH_TLS_TPOFF32 151 |
| 2618 | #define R_SH_GOT32 160 |
| 2619 | #define R_SH_PLT32 161 |
| 2620 | #define R_SH_COPY 162 |
| 2621 | #define R_SH_GLOB_DAT 163 |
| 2622 | #define R_SH_JMP_SLOT 164 |
| 2623 | #define R_SH_RELATIVE 165 |
| 2624 | #define R_SH_GOTOFF 166 |
| 2625 | #define R_SH_GOTPC 167 |
Rich Felker | 17cdbc4 | 2015-09-12 02:49:02 +0000 | [diff] [blame] | 2626 | #define R_SH_GOT20 201 |
| 2627 | #define R_SH_GOTOFF20 202 |
| 2628 | #define R_SH_GOTFUNCDESC 203 |
| 2629 | #define R_SH_GOTFUNCDEST20 204 |
| 2630 | #define R_SH_GOTOFFFUNCDESC 205 |
| 2631 | #define R_SH_GOTOFFFUNCDEST20 206 |
| 2632 | #define R_SH_FUNCDESC 207 |
| 2633 | #define R_SH_FUNCDESC_VALUE 208 |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 2634 | |
| 2635 | #define R_SH_NUM 256 |
| 2636 | |
| 2637 | |
| 2638 | |
| 2639 | #define R_390_NONE 0 |
| 2640 | #define R_390_8 1 |
| 2641 | #define R_390_12 2 |
| 2642 | #define R_390_16 3 |
| 2643 | #define R_390_32 4 |
| 2644 | #define R_390_PC32 5 |
| 2645 | #define R_390_GOT12 6 |
| 2646 | #define R_390_GOT32 7 |
| 2647 | #define R_390_PLT32 8 |
| 2648 | #define R_390_COPY 9 |
| 2649 | #define R_390_GLOB_DAT 10 |
| 2650 | #define R_390_JMP_SLOT 11 |
| 2651 | #define R_390_RELATIVE 12 |
| 2652 | #define R_390_GOTOFF32 13 |
| 2653 | #define R_390_GOTPC 14 |
| 2654 | #define R_390_GOT16 15 |
| 2655 | #define R_390_PC16 16 |
| 2656 | #define R_390_PC16DBL 17 |
| 2657 | #define R_390_PLT16DBL 18 |
| 2658 | #define R_390_PC32DBL 19 |
| 2659 | #define R_390_PLT32DBL 20 |
| 2660 | #define R_390_GOTPCDBL 21 |
| 2661 | #define R_390_64 22 |
| 2662 | #define R_390_PC64 23 |
| 2663 | #define R_390_GOT64 24 |
| 2664 | #define R_390_PLT64 25 |
| 2665 | #define R_390_GOTENT 26 |
| 2666 | #define R_390_GOTOFF16 27 |
| 2667 | #define R_390_GOTOFF64 28 |
| 2668 | #define R_390_GOTPLT12 29 |
| 2669 | #define R_390_GOTPLT16 30 |
| 2670 | #define R_390_GOTPLT32 31 |
| 2671 | #define R_390_GOTPLT64 32 |
| 2672 | #define R_390_GOTPLTENT 33 |
| 2673 | #define R_390_PLTOFF16 34 |
| 2674 | #define R_390_PLTOFF32 35 |
| 2675 | #define R_390_PLTOFF64 36 |
| 2676 | #define R_390_TLS_LOAD 37 |
| 2677 | #define R_390_TLS_GDCALL 38 |
| 2678 | |
| 2679 | #define R_390_TLS_LDCALL 39 |
| 2680 | |
| 2681 | #define R_390_TLS_GD32 40 |
| 2682 | |
| 2683 | #define R_390_TLS_GD64 41 |
| 2684 | |
| 2685 | #define R_390_TLS_GOTIE12 42 |
| 2686 | |
| 2687 | #define R_390_TLS_GOTIE32 43 |
| 2688 | |
| 2689 | #define R_390_TLS_GOTIE64 44 |
| 2690 | |
| 2691 | #define R_390_TLS_LDM32 45 |
| 2692 | |
| 2693 | #define R_390_TLS_LDM64 46 |
| 2694 | |
| 2695 | #define R_390_TLS_IE32 47 |
| 2696 | |
| 2697 | #define R_390_TLS_IE64 48 |
| 2698 | |
| 2699 | #define R_390_TLS_IEENT 49 |
| 2700 | |
| 2701 | #define R_390_TLS_LE32 50 |
| 2702 | |
| 2703 | #define R_390_TLS_LE64 51 |
| 2704 | |
| 2705 | #define R_390_TLS_LDO32 52 |
| 2706 | |
| 2707 | #define R_390_TLS_LDO64 53 |
| 2708 | |
| 2709 | #define R_390_TLS_DTPMOD 54 |
| 2710 | #define R_390_TLS_DTPOFF 55 |
| 2711 | #define R_390_TLS_TPOFF 56 |
| 2712 | |
| 2713 | #define R_390_20 57 |
| 2714 | #define R_390_GOT20 58 |
| 2715 | #define R_390_GOTPLT20 59 |
| 2716 | #define R_390_TLS_GOTIE20 60 |
| 2717 | |
| 2718 | |
| 2719 | #define R_390_NUM 61 |
| 2720 | |
| 2721 | |
| 2722 | |
| 2723 | #define R_CRIS_NONE 0 |
| 2724 | #define R_CRIS_8 1 |
| 2725 | #define R_CRIS_16 2 |
| 2726 | #define R_CRIS_32 3 |
| 2727 | #define R_CRIS_8_PCREL 4 |
| 2728 | #define R_CRIS_16_PCREL 5 |
| 2729 | #define R_CRIS_32_PCREL 6 |
| 2730 | #define R_CRIS_GNU_VTINHERIT 7 |
| 2731 | #define R_CRIS_GNU_VTENTRY 8 |
| 2732 | #define R_CRIS_COPY 9 |
| 2733 | #define R_CRIS_GLOB_DAT 10 |
| 2734 | #define R_CRIS_JUMP_SLOT 11 |
| 2735 | #define R_CRIS_RELATIVE 12 |
| 2736 | #define R_CRIS_16_GOT 13 |
| 2737 | #define R_CRIS_32_GOT 14 |
| 2738 | #define R_CRIS_16_GOTPLT 15 |
| 2739 | #define R_CRIS_32_GOTPLT 16 |
| 2740 | #define R_CRIS_32_GOTREL 17 |
| 2741 | #define R_CRIS_32_PLT_GOTREL 18 |
| 2742 | #define R_CRIS_32_PLT_PCREL 19 |
| 2743 | |
| 2744 | #define R_CRIS_NUM 20 |
| 2745 | |
| 2746 | |
| 2747 | |
| 2748 | #define R_X86_64_NONE 0 |
| 2749 | #define R_X86_64_64 1 |
| 2750 | #define R_X86_64_PC32 2 |
| 2751 | #define R_X86_64_GOT32 3 |
| 2752 | #define R_X86_64_PLT32 4 |
| 2753 | #define R_X86_64_COPY 5 |
| 2754 | #define R_X86_64_GLOB_DAT 6 |
| 2755 | #define R_X86_64_JUMP_SLOT 7 |
| 2756 | #define R_X86_64_RELATIVE 8 |
| 2757 | #define R_X86_64_GOTPCREL 9 |
| 2758 | |
| 2759 | #define R_X86_64_32 10 |
| 2760 | #define R_X86_64_32S 11 |
| 2761 | #define R_X86_64_16 12 |
| 2762 | #define R_X86_64_PC16 13 |
| 2763 | #define R_X86_64_8 14 |
| 2764 | #define R_X86_64_PC8 15 |
| 2765 | #define R_X86_64_DTPMOD64 16 |
| 2766 | #define R_X86_64_DTPOFF64 17 |
| 2767 | #define R_X86_64_TPOFF64 18 |
| 2768 | #define R_X86_64_TLSGD 19 |
| 2769 | |
| 2770 | #define R_X86_64_TLSLD 20 |
| 2771 | |
| 2772 | #define R_X86_64_DTPOFF32 21 |
| 2773 | #define R_X86_64_GOTTPOFF 22 |
| 2774 | |
| 2775 | #define R_X86_64_TPOFF32 23 |
| 2776 | #define R_X86_64_PC64 24 |
| 2777 | #define R_X86_64_GOTOFF64 25 |
| 2778 | #define R_X86_64_GOTPC32 26 |
Szabolcs Nagy | 268375c | 2013-09-15 14:53:34 +0000 | [diff] [blame] | 2779 | #define R_X86_64_GOT64 27 |
| 2780 | #define R_X86_64_GOTPCREL64 28 |
| 2781 | #define R_X86_64_GOTPC64 29 |
| 2782 | #define R_X86_64_GOTPLT64 30 |
| 2783 | #define R_X86_64_PLTOFF64 31 |
| 2784 | #define R_X86_64_SIZE32 32 |
| 2785 | #define R_X86_64_SIZE64 33 |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 2786 | |
| 2787 | #define R_X86_64_GOTPC32_TLSDESC 34 |
| 2788 | #define R_X86_64_TLSDESC_CALL 35 |
| 2789 | |
| 2790 | #define R_X86_64_TLSDESC 36 |
| 2791 | #define R_X86_64_IRELATIVE 37 |
Szabolcs Nagy | 268375c | 2013-09-15 14:53:34 +0000 | [diff] [blame] | 2792 | #define R_X86_64_RELATIVE64 38 |
| 2793 | #define R_X86_64_NUM 39 |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 2794 | |
| 2795 | |
| 2796 | |
| 2797 | #define R_MN10300_NONE 0 |
| 2798 | #define R_MN10300_32 1 |
| 2799 | #define R_MN10300_16 2 |
| 2800 | #define R_MN10300_8 3 |
| 2801 | #define R_MN10300_PCREL32 4 |
| 2802 | #define R_MN10300_PCREL16 5 |
| 2803 | #define R_MN10300_PCREL8 6 |
| 2804 | #define R_MN10300_GNU_VTINHERIT 7 |
| 2805 | #define R_MN10300_GNU_VTENTRY 8 |
| 2806 | #define R_MN10300_24 9 |
| 2807 | #define R_MN10300_GOTPC32 10 |
| 2808 | #define R_MN10300_GOTPC16 11 |
| 2809 | #define R_MN10300_GOTOFF32 12 |
| 2810 | #define R_MN10300_GOTOFF24 13 |
| 2811 | #define R_MN10300_GOTOFF16 14 |
| 2812 | #define R_MN10300_PLT32 15 |
| 2813 | #define R_MN10300_PLT16 16 |
| 2814 | #define R_MN10300_GOT32 17 |
| 2815 | #define R_MN10300_GOT24 18 |
| 2816 | #define R_MN10300_GOT16 19 |
| 2817 | #define R_MN10300_COPY 20 |
| 2818 | #define R_MN10300_GLOB_DAT 21 |
| 2819 | #define R_MN10300_JMP_SLOT 22 |
| 2820 | #define R_MN10300_RELATIVE 23 |
| 2821 | |
| 2822 | #define R_MN10300_NUM 24 |
| 2823 | |
| 2824 | |
| 2825 | |
| 2826 | #define R_M32R_NONE 0 |
| 2827 | #define R_M32R_16 1 |
| 2828 | #define R_M32R_32 2 |
| 2829 | #define R_M32R_24 3 |
| 2830 | #define R_M32R_10_PCREL 4 |
| 2831 | #define R_M32R_18_PCREL 5 |
| 2832 | #define R_M32R_26_PCREL 6 |
| 2833 | #define R_M32R_HI16_ULO 7 |
| 2834 | #define R_M32R_HI16_SLO 8 |
| 2835 | #define R_M32R_LO16 9 |
| 2836 | #define R_M32R_SDA16 10 |
| 2837 | #define R_M32R_GNU_VTINHERIT 11 |
| 2838 | #define R_M32R_GNU_VTENTRY 12 |
| 2839 | |
| 2840 | #define R_M32R_16_RELA 33 |
| 2841 | #define R_M32R_32_RELA 34 |
| 2842 | #define R_M32R_24_RELA 35 |
| 2843 | #define R_M32R_10_PCREL_RELA 36 |
| 2844 | #define R_M32R_18_PCREL_RELA 37 |
| 2845 | #define R_M32R_26_PCREL_RELA 38 |
| 2846 | #define R_M32R_HI16_ULO_RELA 39 |
| 2847 | #define R_M32R_HI16_SLO_RELA 40 |
| 2848 | #define R_M32R_LO16_RELA 41 |
| 2849 | #define R_M32R_SDA16_RELA 42 |
| 2850 | #define R_M32R_RELA_GNU_VTINHERIT 43 |
| 2851 | #define R_M32R_RELA_GNU_VTENTRY 44 |
| 2852 | #define R_M32R_REL32 45 |
| 2853 | |
| 2854 | #define R_M32R_GOT24 48 |
| 2855 | #define R_M32R_26_PLTREL 49 |
| 2856 | #define R_M32R_COPY 50 |
| 2857 | #define R_M32R_GLOB_DAT 51 |
| 2858 | #define R_M32R_JMP_SLOT 52 |
| 2859 | #define R_M32R_RELATIVE 53 |
| 2860 | #define R_M32R_GOTOFF 54 |
| 2861 | #define R_M32R_GOTPC24 55 |
| 2862 | #define R_M32R_GOT16_HI_ULO 56 |
| 2863 | |
| 2864 | #define R_M32R_GOT16_HI_SLO 57 |
| 2865 | |
| 2866 | #define R_M32R_GOT16_LO 58 |
| 2867 | #define R_M32R_GOTPC_HI_ULO 59 |
| 2868 | |
| 2869 | #define R_M32R_GOTPC_HI_SLO 60 |
| 2870 | |
| 2871 | #define R_M32R_GOTPC_LO 61 |
| 2872 | |
| 2873 | #define R_M32R_GOTOFF_HI_ULO 62 |
| 2874 | |
| 2875 | #define R_M32R_GOTOFF_HI_SLO 63 |
| 2876 | |
| 2877 | #define R_M32R_GOTOFF_LO 64 |
| 2878 | #define R_M32R_NUM 256 |
| 2879 | |
Rich Felker | 8c0a3d9 | 2012-09-29 01:05:31 -0400 | [diff] [blame] | 2880 | #define R_MICROBLAZE_NONE 0 |
| 2881 | #define R_MICROBLAZE_32 1 |
| 2882 | #define R_MICROBLAZE_32_PCREL 2 |
| 2883 | #define R_MICROBLAZE_64_PCREL 3 |
| 2884 | #define R_MICROBLAZE_32_PCREL_LO 4 |
| 2885 | #define R_MICROBLAZE_64 5 |
| 2886 | #define R_MICROBLAZE_32_LO 6 |
| 2887 | #define R_MICROBLAZE_SRO32 7 |
| 2888 | #define R_MICROBLAZE_SRW32 8 |
| 2889 | #define R_MICROBLAZE_64_NONE 9 |
| 2890 | #define R_MICROBLAZE_32_SYM_OP_SYM 10 |
| 2891 | #define R_MICROBLAZE_GNU_VTINHERIT 11 |
| 2892 | #define R_MICROBLAZE_GNU_VTENTRY 12 |
| 2893 | #define R_MICROBLAZE_GOTPC_64 13 |
| 2894 | #define R_MICROBLAZE_GOT_64 14 |
| 2895 | #define R_MICROBLAZE_PLT_64 15 |
| 2896 | #define R_MICROBLAZE_REL 16 |
| 2897 | #define R_MICROBLAZE_JUMP_SLOT 17 |
| 2898 | #define R_MICROBLAZE_GLOB_DAT 18 |
| 2899 | #define R_MICROBLAZE_GOTOFF_64 19 |
| 2900 | #define R_MICROBLAZE_GOTOFF_32 20 |
| 2901 | #define R_MICROBLAZE_COPY 21 |
Rich Felker | 21284ec | 2012-10-15 21:01:48 -0400 | [diff] [blame] | 2902 | #define R_MICROBLAZE_TLS 22 |
| 2903 | #define R_MICROBLAZE_TLSGD 23 |
| 2904 | #define R_MICROBLAZE_TLSLD 24 |
| 2905 | #define R_MICROBLAZE_TLSDTPMOD32 25 |
| 2906 | #define R_MICROBLAZE_TLSDTPREL32 26 |
| 2907 | #define R_MICROBLAZE_TLSDTPREL64 27 |
| 2908 | #define R_MICROBLAZE_TLSGOTTPREL32 28 |
| 2909 | #define R_MICROBLAZE_TLSTPREL32 29 |
Rich Felker | 8c0a3d9 | 2012-09-29 01:05:31 -0400 | [diff] [blame] | 2910 | |
Szabolcs Nagy | 347d061 | 2016-04-20 13:17:31 +0200 | [diff] [blame] | 2911 | #define DT_NIOS2_GP 0x70000002 |
| 2912 | |
| 2913 | #define R_NIOS2_NONE 0 |
| 2914 | #define R_NIOS2_S16 1 |
| 2915 | #define R_NIOS2_U16 2 |
| 2916 | #define R_NIOS2_PCREL16 3 |
| 2917 | #define R_NIOS2_CALL26 4 |
| 2918 | #define R_NIOS2_IMM5 5 |
| 2919 | #define R_NIOS2_CACHE_OPX 6 |
| 2920 | #define R_NIOS2_IMM6 7 |
| 2921 | #define R_NIOS2_IMM8 8 |
| 2922 | #define R_NIOS2_HI16 9 |
| 2923 | #define R_NIOS2_LO16 10 |
| 2924 | #define R_NIOS2_HIADJ16 11 |
| 2925 | #define R_NIOS2_BFD_RELOC_32 12 |
| 2926 | #define R_NIOS2_BFD_RELOC_16 13 |
| 2927 | #define R_NIOS2_BFD_RELOC_8 14 |
| 2928 | #define R_NIOS2_GPREL 15 |
| 2929 | #define R_NIOS2_GNU_VTINHERIT 16 |
| 2930 | #define R_NIOS2_GNU_VTENTRY 17 |
| 2931 | #define R_NIOS2_UJMP 18 |
| 2932 | #define R_NIOS2_CJMP 19 |
| 2933 | #define R_NIOS2_CALLR 20 |
| 2934 | #define R_NIOS2_ALIGN 21 |
| 2935 | #define R_NIOS2_GOT16 22 |
| 2936 | #define R_NIOS2_CALL16 23 |
| 2937 | #define R_NIOS2_GOTOFF_LO 24 |
| 2938 | #define R_NIOS2_GOTOFF_HA 25 |
| 2939 | #define R_NIOS2_PCREL_LO 26 |
| 2940 | #define R_NIOS2_PCREL_HA 27 |
| 2941 | #define R_NIOS2_TLS_GD16 28 |
| 2942 | #define R_NIOS2_TLS_LDM16 29 |
| 2943 | #define R_NIOS2_TLS_LDO16 30 |
| 2944 | #define R_NIOS2_TLS_IE16 31 |
| 2945 | #define R_NIOS2_TLS_LE16 32 |
| 2946 | #define R_NIOS2_TLS_DTPMOD 33 |
| 2947 | #define R_NIOS2_TLS_DTPREL 34 |
| 2948 | #define R_NIOS2_TLS_TPREL 35 |
| 2949 | #define R_NIOS2_COPY 36 |
| 2950 | #define R_NIOS2_GLOB_DAT 37 |
| 2951 | #define R_NIOS2_JUMP_SLOT 38 |
| 2952 | #define R_NIOS2_RELATIVE 39 |
| 2953 | #define R_NIOS2_GOTOFF 40 |
| 2954 | #define R_NIOS2_CALL26_NOAT 41 |
| 2955 | #define R_NIOS2_GOT_LO 42 |
| 2956 | #define R_NIOS2_GOT_HA 43 |
| 2957 | #define R_NIOS2_CALL_LO 44 |
| 2958 | #define R_NIOS2_CALL_HA 45 |
| 2959 | |
Stefan Kristiansson | 200d154 | 2014-07-17 22:09:10 +0300 | [diff] [blame] | 2960 | #define R_OR1K_NONE 0 |
| 2961 | #define R_OR1K_32 1 |
| 2962 | #define R_OR1K_16 2 |
| 2963 | #define R_OR1K_8 3 |
| 2964 | #define R_OR1K_LO_16_IN_INSN 4 |
| 2965 | #define R_OR1K_HI_16_IN_INSN 5 |
| 2966 | #define R_OR1K_INSN_REL_26 6 |
| 2967 | #define R_OR1K_GNU_VTENTRY 7 |
| 2968 | #define R_OR1K_GNU_VTINHERIT 8 |
| 2969 | #define R_OR1K_32_PCREL 9 |
| 2970 | #define R_OR1K_16_PCREL 10 |
| 2971 | #define R_OR1K_8_PCREL 11 |
| 2972 | #define R_OR1K_GOTPC_HI16 12 |
| 2973 | #define R_OR1K_GOTPC_LO16 13 |
| 2974 | #define R_OR1K_GOT16 14 |
| 2975 | #define R_OR1K_PLT26 15 |
| 2976 | #define R_OR1K_GOTOFF_HI16 16 |
| 2977 | #define R_OR1K_GOTOFF_LO16 17 |
| 2978 | #define R_OR1K_COPY 18 |
| 2979 | #define R_OR1K_GLOB_DAT 19 |
| 2980 | #define R_OR1K_JMP_SLOT 20 |
| 2981 | #define R_OR1K_RELATIVE 21 |
| 2982 | #define R_OR1K_TLS_GD_HI16 22 |
| 2983 | #define R_OR1K_TLS_GD_LO16 23 |
| 2984 | #define R_OR1K_TLS_LDM_HI16 24 |
| 2985 | #define R_OR1K_TLS_LDM_LO16 25 |
| 2986 | #define R_OR1K_TLS_LDO_HI16 26 |
| 2987 | #define R_OR1K_TLS_LDO_LO16 27 |
| 2988 | #define R_OR1K_TLS_IE_HI16 28 |
| 2989 | #define R_OR1K_TLS_IE_LO16 29 |
| 2990 | #define R_OR1K_TLS_LE_HI16 30 |
| 2991 | #define R_OR1K_TLS_LE_LO16 31 |
| 2992 | #define R_OR1K_TLS_TPOFF 32 |
| 2993 | #define R_OR1K_TLS_DTPOFF 33 |
| 2994 | #define R_OR1K_TLS_DTPMOD 34 |
| 2995 | |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 2996 | #ifdef __cplusplus |
| 2997 | } |
| 2998 | #endif |
| 2999 | |
| 3000 | |
| 3001 | #endif |