| 1 |
/* Copyright (c) 2019-2023, David Anderson |
| 2 |
All rights reserved. |
| 3 |
|
| 4 |
Redistribution and use in source and binary forms, with |
| 5 |
or without modification, are permitted provided that the |
| 6 |
following conditions are met: |
| 7 |
|
| 8 |
Redistributions of source code must retain the above |
| 9 |
copyright notice, this list of conditions and the following |
| 10 |
disclaimer. |
| 11 |
|
| 12 |
Redistributions in binary form must reproduce the above |
| 13 |
copyright notice, this list of conditions and the following |
| 14 |
disclaimer in the documentation and/or other materials |
| 15 |
provided with the distribution. |
| 16 |
|
| 17 |
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND |
| 18 |
CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, |
| 19 |
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
| 20 |
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 21 |
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR |
| 22 |
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 23 |
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT |
| 24 |
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 25 |
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| 26 |
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
| 27 |
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
| 28 |
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, |
| 29 |
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 30 |
|
| 31 |
*/ |
| 32 |
#ifndef DWARF_ELF_DEFINES_H |
| 33 |
#define DWARF_ELF_DEFINES_H |
| 34 |
|
| 35 |
#ifdef __cplusplus |
| 36 |
extern "C" { |
| 37 |
#endif /* __cplusplus */ |
| 38 |
|
| 39 |
#define DWARF_T_BYTE 1 |
| 40 |
|
| 41 |
#define SHF_STRINGS (1 << 5) |
| 42 |
|
| 43 |
/* Standard Elf section types. */ |
| 44 |
#ifndef SHT_NULL |
| 45 |
#define SHT_NULL 0 |
| 46 |
#endif |
| 47 |
#ifndef SHT_PROGBITS |
| 48 |
#define SHT_PROGBITS 1 |
| 49 |
#endif |
| 50 |
#ifndef SHT_SYMTAB |
| 51 |
#define SHT_SYMTAB 2 |
| 52 |
#endif |
| 53 |
#ifndef SHT_STRTAB |
| 54 |
#define SHT_STRTAB 3 |
| 55 |
#endif |
| 56 |
#ifndef SHT_RELA |
| 57 |
#define SHT_RELA 4 |
| 58 |
#endif |
| 59 |
#ifndef SHT_REL |
| 60 |
#define SHT_REL 9 |
| 61 |
#endif |
| 62 |
|
| 63 |
#ifndef DW_GROUPNUMBER_BASE |
| 64 |
#define DW_GROUPNUMBER_BASE 1 |
| 65 |
#endif |
| 66 |
#ifndef DW_GROUPNUMBER_DWO |
| 67 |
#define DW_GROUPNUMBER_DWO 2 |
| 68 |
#endif |
| 69 |
|
| 70 |
#ifndef SHF_GROUP |
| 71 |
#define SHF_GROUP (1 << 9) |
| 72 |
#endif /* SHF_GROUP */ |
| 73 |
|
| 74 |
#ifndef STN_UNDEF |
| 75 |
#define STN_UNDEF 0 |
| 76 |
#endif /* STN_UNDEF */ |
| 77 |
|
| 78 |
#ifndef SHT_HASH |
| 79 |
#define SHT_HASH 5 |
| 80 |
#endif |
| 81 |
#ifndef SHT_DYNAMIC |
| 82 |
#define SHT_DYNAMIC 6 |
| 83 |
#endif |
| 84 |
#ifndef SHT_NOTE |
| 85 |
#define SHT_NOTE 7 |
| 86 |
#endif |
| 87 |
#ifndef SHT_NOBITS |
| 88 |
#define SHT_NOBITS 8 |
| 89 |
#endif |
| 90 |
#ifndef SHT_REL |
| 91 |
#define SHT_REL 9 |
| 92 |
#endif |
| 93 |
#ifndef SHT_SHLIB |
| 94 |
#define SHT_SHLIB 10 |
| 95 |
#endif |
| 96 |
#ifndef SHT_DYNSYM |
| 97 |
#define SHT_DYNSYM 11 |
| 98 |
#endif |
| 99 |
#ifndef SHT_GROUP |
| 100 |
#define SHT_GROUP 17 |
| 101 |
#endif /* SHT_GROUP */ |
| 102 |
|
| 103 |
/* Symbol Types, Elf standard. */ |
| 104 |
#define STT_NOTYPE 0 |
| 105 |
#define STT_OBJECT 1 |
| 106 |
#define STT_FUNC 2 |
| 107 |
#define STT_SECTION 3 |
| 108 |
#define STT_FILE 4 |
| 109 |
|
| 110 |
#ifndef PT_NULL |
| 111 |
#define PT_NULL 0 |
| 112 |
#endif |
| 113 |
#ifndef PT_LOAD |
| 114 |
#define PT_LOAD 1 |
| 115 |
#endif |
| 116 |
#ifndef PT_DYNAMIC |
| 117 |
#define PT_DYNAMIC 2 |
| 118 |
#endif |
| 119 |
#ifndef PT_INTERP |
| 120 |
#define PT_INTERP 3 |
| 121 |
#endif |
| 122 |
#ifndef PT_NOTE |
| 123 |
#define PT_NOTE 4 |
| 124 |
#endif |
| 125 |
#ifndef PT_SHLIB |
| 126 |
#define PT_SHLIB 5 |
| 127 |
#endif |
| 128 |
#ifndef PT_PHDR |
| 129 |
#define PT_PHDR 6 |
| 130 |
#endif |
| 131 |
#ifndef PT_LOPROC |
| 132 |
#define PT_LOPROC 0x70000000 |
| 133 |
#endif |
| 134 |
#ifndef PT_HIPROC |
| 135 |
#define PT_HIPROC 0x7fffffff |
| 136 |
#endif |
| 137 |
|
| 138 |
#ifndef PF_X |
| 139 |
#define PF_X (1 << 0) |
| 140 |
#endif |
| 141 |
#ifndef PF_W |
| 142 |
#define PF_W (1 << 1) |
| 143 |
#endif |
| 144 |
#ifndef PF_R |
| 145 |
#define PF_R (1 << 2) |
| 146 |
#endif |
| 147 |
#ifndef PF_MASKOS |
| 148 |
#define PF_MASKOS 0x0ff00000 |
| 149 |
#endif |
| 150 |
#ifndef PF_MASKPROC |
| 151 |
#define PF_MASKPROC 0xf0000000 |
| 152 |
#endif |
| 153 |
|
| 154 |
#ifndef ET_NONE |
| 155 |
#define ET_NONE 0 |
| 156 |
#endif |
| 157 |
#ifndef ET_REL |
| 158 |
#define ET_REL 1 |
| 159 |
#endif |
| 160 |
#ifndef ET_EXEC |
| 161 |
#define ET_EXEC 2 |
| 162 |
#endif |
| 163 |
#ifndef ET_DYN |
| 164 |
#define ET_DYN 3 |
| 165 |
#endif |
| 166 |
#ifndef ET_CORE |
| 167 |
#define ET_CORE 4 |
| 168 |
#endif |
| 169 |
#ifndef ET_NUM |
| 170 |
#define ET_NUM 5 |
| 171 |
#endif |
| 172 |
#ifndef ET_LOOS |
| 173 |
#define ET_LOOS 0xfe00 |
| 174 |
#endif |
| 175 |
#ifndef ET_HIOS |
| 176 |
#define ET_HIOS 0xfeff |
| 177 |
#endif |
| 178 |
#ifndef ET_LOPROC |
| 179 |
#define ET_LOPROC 0xff00 |
| 180 |
#endif |
| 181 |
#ifndef ET_HIPROC |
| 182 |
#define ET_HIPROC 0xffff |
| 183 |
#endif |
| 184 |
|
| 185 |
#ifndef EM_NONE |
| 186 |
#define EM_NONE 0 |
| 187 |
#endif |
| 188 |
#ifndef EM_M32 |
| 189 |
#define EM_M32 1 |
| 190 |
#endif |
| 191 |
#ifndef EM_SPARC |
| 192 |
#define EM_SPARC 2 |
| 193 |
#endif |
| 194 |
#ifndef EM_386 |
| 195 |
#define EM_386 3 |
| 196 |
#endif |
| 197 |
#ifndef EM_68K |
| 198 |
#define EM_68K 4 |
| 199 |
#endif |
| 200 |
#ifndef EM_88K |
| 201 |
#define EM_88K 5 |
| 202 |
#endif |
| 203 |
#ifndef EM_IAMCU |
| 204 |
#define EM_IAMCU 6 |
| 205 |
#endif |
| 206 |
#ifndef EM_860 |
| 207 |
#define EM_860 7 |
| 208 |
#endif |
| 209 |
#ifndef EM_MIPS |
| 210 |
#define EM_MIPS 8 |
| 211 |
#endif |
| 212 |
#ifndef EM_S370 |
| 213 |
#define EM_S370 9 |
| 214 |
#endif |
| 215 |
#ifndef EM_MIPS_RS3_LE |
| 216 |
#define EM_MIPS_RS3_LE 10 |
| 217 |
#endif |
| 218 |
#ifndef EM_PARISC |
| 219 |
#define EM_PARISC 15 |
| 220 |
#endif |
| 221 |
#ifndef EM_VPP500 |
| 222 |
#define EM_VPP500 17 |
| 223 |
#endif |
| 224 |
#ifndef EM_SPARC32PLUS |
| 225 |
#define EM_SPARC32PLUS 18 |
| 226 |
#endif |
| 227 |
#ifndef EM_960 |
| 228 |
#define EM_960 19 |
| 229 |
#endif |
| 230 |
#ifndef EM_PPC |
| 231 |
#define EM_PPC 20 |
| 232 |
#endif |
| 233 |
#ifndef EM_PPC64 |
| 234 |
#define EM_PPC64 21 |
| 235 |
#endif |
| 236 |
#ifndef EM_S390 |
| 237 |
#define EM_S390 22 |
| 238 |
#endif |
| 239 |
#ifndef EM_SPU |
| 240 |
#define EM_SPU 23 |
| 241 |
#endif |
| 242 |
#ifndef EM_V800 |
| 243 |
#define EM_V800 36 |
| 244 |
#endif |
| 245 |
#ifndef EM_FR20 |
| 246 |
#define EM_FR20 37 |
| 247 |
#endif |
| 248 |
#ifndef EM_RH32 |
| 249 |
#define EM_RH32 38 |
| 250 |
#endif |
| 251 |
#ifndef EM_RCE |
| 252 |
#define EM_RCE 39 |
| 253 |
#endif |
| 254 |
#ifndef EM_ARM |
| 255 |
#define EM_ARM 40 |
| 256 |
#endif |
| 257 |
#ifndef EM_FAKE_ALPHA |
| 258 |
#define EM_FAKE_ALPHA 41 |
| 259 |
#endif |
| 260 |
#ifndef EM_SH |
| 261 |
#define EM_SH 42 |
| 262 |
#endif |
| 263 |
#ifndef EM_SPARCV9 |
| 264 |
#define EM_SPARCV9 43 |
| 265 |
#endif |
| 266 |
#ifndef EM_TRICORE |
| 267 |
#define EM_TRICORE 44 |
| 268 |
#endif |
| 269 |
#ifndef EM_ARC |
| 270 |
#define EM_ARC 45 |
| 271 |
#endif |
| 272 |
#ifndef EM_H8_300 |
| 273 |
#define EM_H8_300 46 |
| 274 |
#endif |
| 275 |
#ifndef EM_H8_300H |
| 276 |
#define EM_H8_300H 47 |
| 277 |
#endif |
| 278 |
#ifndef EM_H8S |
| 279 |
#define EM_H8S 48 |
| 280 |
#endif |
| 281 |
#ifndef EM_H8_500 |
| 282 |
#define EM_H8_500 49 |
| 283 |
#endif |
| 284 |
#ifndef EM_IA_64 |
| 285 |
#define EM_IA_64 50 |
| 286 |
#endif |
| 287 |
#ifndef EM_MIPS_X |
| 288 |
#define EM_MIPS_X 51 |
| 289 |
#endif |
| 290 |
#ifndef EM_COLDFIRE |
| 291 |
#define EM_COLDFIRE 52 |
| 292 |
#endif |
| 293 |
#ifndef EM_68HC12 |
| 294 |
#define EM_68HC12 53 |
| 295 |
#endif |
| 296 |
#ifndef EM_MMA |
| 297 |
#define EM_MMA 54 |
| 298 |
#endif |
| 299 |
#ifndef EM_PCP |
| 300 |
#define EM_PCP 55 |
| 301 |
#endif |
| 302 |
#ifndef EM_NCPU |
| 303 |
#define EM_NCPU 56 |
| 304 |
#endif |
| 305 |
#ifndef EM_NDR1 |
| 306 |
#define EM_NDR1 57 |
| 307 |
#endif |
| 308 |
#ifndef EM_STARCORE |
| 309 |
#define EM_STARCORE 58 |
| 310 |
#endif |
| 311 |
#ifndef EM_ME16 |
| 312 |
#define EM_ME16 59 |
| 313 |
#endif |
| 314 |
#ifndef EM_ST100 |
| 315 |
#define EM_ST100 60 |
| 316 |
#endif |
| 317 |
#ifndef EM_TINYJ |
| 318 |
#define EM_TINYJ 61 |
| 319 |
#endif |
| 320 |
#ifndef EM_X86_64 |
| 321 |
#define EM_X86_64 62 |
| 322 |
#endif |
| 323 |
#ifndef EM_PDSP |
| 324 |
#define EM_PDSP 63 |
| 325 |
#endif |
| 326 |
#ifndef EM_PDP10 |
| 327 |
#define EM_PDP10 64 |
| 328 |
#endif |
| 329 |
#ifndef EM_PDP11 |
| 330 |
#define EM_PDP11 65 |
| 331 |
#endif |
| 332 |
#ifndef EM_FX66 |
| 333 |
#define EM_FX66 66 |
| 334 |
#endif |
| 335 |
#ifndef EM_ST9PLUS |
| 336 |
#define EM_ST9PLUS 67 |
| 337 |
#endif |
| 338 |
#ifndef EM_ST7 |
| 339 |
#define EM_ST7 68 |
| 340 |
#endif |
| 341 |
#ifndef EM_68HC16 |
| 342 |
#define EM_68HC16 69 |
| 343 |
#endif |
| 344 |
#ifndef EM_68HC11 |
| 345 |
#define EM_68HC11 70 |
| 346 |
#endif |
| 347 |
#ifndef EM_68HC08 |
| 348 |
#define EM_68HC08 71 |
| 349 |
#endif |
| 350 |
#ifndef EM_68HC05 |
| 351 |
#define EM_68HC05 72 |
| 352 |
#endif |
| 353 |
#ifndef EM_SVX |
| 354 |
#define EM_SVX 73 |
| 355 |
#endif |
| 356 |
#ifndef EM_ST19 |
| 357 |
#define EM_ST19 74 |
| 358 |
#endif |
| 359 |
#ifndef EM_VAX |
| 360 |
#define EM_VAX 75 |
| 361 |
#endif |
| 362 |
#ifndef EM_CRIS |
| 363 |
#define EM_CRIS 76 |
| 364 |
#endif |
| 365 |
#ifndef EM_JAVELIN |
| 366 |
#define EM_JAVELIN 77 |
| 367 |
#endif |
| 368 |
#ifndef EM_FIREPATH |
| 369 |
#define EM_FIREPATH 78 |
| 370 |
#endif |
| 371 |
#ifndef EM_ZSP |
| 372 |
#define EM_ZSP 79 |
| 373 |
#endif |
| 374 |
#ifndef EM_MMIX |
| 375 |
#define EM_MMIX 80 |
| 376 |
#endif |
| 377 |
#ifndef EM_HUANY |
| 378 |
#define EM_HUANY 81 |
| 379 |
#endif |
| 380 |
#ifndef EM_PRISM |
| 381 |
#define EM_PRISM 82 |
| 382 |
#endif |
| 383 |
#ifndef EM_AVR |
| 384 |
#define EM_AVR 83 |
| 385 |
#endif |
| 386 |
#ifndef EM_FR30 |
| 387 |
#define EM_FR30 84 |
| 388 |
#endif |
| 389 |
#ifndef EM_D10V |
| 390 |
#define EM_D10V 85 |
| 391 |
#endif |
| 392 |
#ifndef EM_D30V |
| 393 |
#define EM_D30V 86 |
| 394 |
#endif |
| 395 |
#ifndef EM_V850 |
| 396 |
#define EM_V850 87 |
| 397 |
#endif |
| 398 |
#ifndef EM_M32R |
| 399 |
#define EM_M32R 88 |
| 400 |
#endif |
| 401 |
#ifndef EM_MN10300 |
| 402 |
#define EM_MN10300 89 |
| 403 |
#endif |
| 404 |
#ifndef EM_MN10200 |
| 405 |
#define EM_MN10200 90 |
| 406 |
#endif |
| 407 |
#ifndef EM_PJ |
| 408 |
#define EM_PJ 91 |
| 409 |
#endif |
| 410 |
#ifndef EM_OPENRISC |
| 411 |
#define EM_OPENRISC 92 |
| 412 |
#endif |
| 413 |
#ifndef EM_ARC_COMPACT |
| 414 |
#define EM_ARC_COMPACT 93 |
| 415 |
#endif |
| 416 |
#ifndef EM_XTENSA |
| 417 |
#define EM_XTENSA 94 |
| 418 |
#endif |
| 419 |
#ifndef EM_VIDEOCORE |
| 420 |
#define EM_VIDEOCORE 95 |
| 421 |
#endif |
| 422 |
#ifndef EM_TMM_GPP |
| 423 |
#define EM_TMM_GPP 96 |
| 424 |
#endif |
| 425 |
#ifndef EM_NS32K |
| 426 |
#define EM_NS32K 97 |
| 427 |
#endif |
| 428 |
#ifndef EM_TPC |
| 429 |
#define EM_TPC 98 |
| 430 |
#endif |
| 431 |
#ifndef EM_SNP1K |
| 432 |
#define EM_SNP1K 99 |
| 433 |
#endif |
| 434 |
#ifndef EM_ST200 |
| 435 |
#define EM_ST200 100 |
| 436 |
#endif |
| 437 |
#ifndef EM_IP2K |
| 438 |
#define EM_IP2K 101 |
| 439 |
#endif |
| 440 |
#ifndef EM_MAX |
| 441 |
#define EM_MAX 102 |
| 442 |
#endif |
| 443 |
#ifndef EM_CR |
| 444 |
#define EM_CR 103 |
| 445 |
#endif |
| 446 |
#ifndef EM_F2MC16 |
| 447 |
#define EM_F2MC16 104 |
| 448 |
#endif |
| 449 |
#ifndef EM_MSP430 |
| 450 |
#define EM_MSP430 105 |
| 451 |
#endif |
| 452 |
#ifndef EM_BLACKFIN |
| 453 |
#define EM_BLACKFIN 106 |
| 454 |
#endif |
| 455 |
#ifndef EM_SE_C33 |
| 456 |
#define EM_SE_C33 107 |
| 457 |
#endif |
| 458 |
#ifndef EM_SEP |
| 459 |
#define EM_SEP 108 |
| 460 |
#endif |
| 461 |
#ifndef EM_ARCA |
| 462 |
#define EM_ARCA 109 |
| 463 |
#endif |
| 464 |
#ifndef EM_UNICORE |
| 465 |
#define EM_UNICORE 110 |
| 466 |
#endif |
| 467 |
#ifndef EM_EXCESS |
| 468 |
#define EM_EXCESS 111 |
| 469 |
#endif |
| 470 |
#ifndef EM_DXP |
| 471 |
#define EM_DXP 112 |
| 472 |
#endif |
| 473 |
#ifndef EM_ALTERA_NIOS2 |
| 474 |
#define EM_ALTERA_NIOS2 113 |
| 475 |
#endif |
| 476 |
#ifndef EM_CRX |
| 477 |
#define EM_CRX 114 |
| 478 |
#endif |
| 479 |
#ifndef EM_XGATE |
| 480 |
#define EM_XGATE 115 |
| 481 |
#endif |
| 482 |
#ifndef EM_C166 |
| 483 |
#define EM_C166 116 |
| 484 |
#endif |
| 485 |
#ifndef EM_M16C |
| 486 |
#define EM_M16C 117 |
| 487 |
#endif |
| 488 |
#ifndef EM_DSPIC30F |
| 489 |
#define EM_DSPIC30F 118 |
| 490 |
#endif |
| 491 |
#ifndef EM_CE |
| 492 |
#define EM_CE 119 |
| 493 |
#endif |
| 494 |
#ifndef EM_M32C |
| 495 |
#define EM_M32C 120 |
| 496 |
#endif |
| 497 |
#ifndef EM_TSK3000 |
| 498 |
#define EM_TSK3000 131 |
| 499 |
#endif |
| 500 |
#ifndef EM_RS08 |
| 501 |
#define EM_RS08 132 |
| 502 |
#endif |
| 503 |
#ifndef EM_SHARC |
| 504 |
#define EM_SHARC 133 |
| 505 |
#endif |
| 506 |
#ifndef EM_ECOG2 |
| 507 |
#define EM_ECOG2 134 |
| 508 |
#endif |
| 509 |
#ifndef EM_SCORE7 |
| 510 |
#define EM_SCORE7 135 |
| 511 |
#endif |
| 512 |
#ifndef EM_DSP24 |
| 513 |
#define EM_DSP24 136 |
| 514 |
#endif |
| 515 |
#ifndef EM_VIDEOCORE3 |
| 516 |
#define EM_VIDEOCORE3 137 |
| 517 |
#endif |
| 518 |
#ifndef EM_LATTICEMICO32 |
| 519 |
#define EM_LATTICEMICO32 138 |
| 520 |
#endif |
| 521 |
#ifndef EM_SE_C17 |
| 522 |
#define EM_SE_C17 139 |
| 523 |
#endif |
| 524 |
#ifndef EM_TI_C6000 |
| 525 |
#define EM_TI_C6000 140 |
| 526 |
#endif |
| 527 |
#ifndef EM_TI_C2000 |
| 528 |
#define EM_TI_C2000 141 |
| 529 |
#endif |
| 530 |
#ifndef EM_TI_C5500 |
| 531 |
#define EM_TI_C5500 142 |
| 532 |
#endif |
| 533 |
#ifndef EM_TI_ARP32 |
| 534 |
#define EM_TI_ARP32 143 |
| 535 |
#endif |
| 536 |
#ifndef EM_TI_PRU |
| 537 |
#define EM_TI_PRU 144 |
| 538 |
#endif |
| 539 |
#ifndef EM_MMDSP_PLUS |
| 540 |
#define EM_MMDSP_PLUS 160 |
| 541 |
#endif |
| 542 |
#ifndef EM_CYPRESS_M8C |
| 543 |
#define EM_CYPRESS_M8C 161 |
| 544 |
#endif |
| 545 |
#ifndef EM_R32C |
| 546 |
#define EM_R32C 162 |
| 547 |
#endif |
| 548 |
#ifndef EM_TRIMEDIA |
| 549 |
#define EM_TRIMEDIA 163 |
| 550 |
#endif |
| 551 |
#ifndef EM_QDSP6 |
| 552 |
#define EM_QDSP6 164 |
| 553 |
#endif |
| 554 |
#ifndef EM_QUALCOMM_DSP6 |
| 555 |
#define EM_QUALCOMM_DSP6 164 |
| 556 |
#endif |
| 557 |
#ifndef EM_8051 |
| 558 |
#define EM_8051 165 |
| 559 |
#endif |
| 560 |
#ifndef EM_STXP7X |
| 561 |
#define EM_STXP7X 166 |
| 562 |
#endif |
| 563 |
#ifndef EM_NDS32 |
| 564 |
#define EM_NDS32 167 |
| 565 |
#endif |
| 566 |
#ifndef EM_ECOG1X |
| 567 |
#define EM_ECOG1X 168 |
| 568 |
#endif |
| 569 |
#ifndef EM_MAXQ30 |
| 570 |
#define EM_MAXQ30 169 |
| 571 |
#endif |
| 572 |
#ifndef EM_XIMO16 |
| 573 |
#define EM_XIMO16 170 |
| 574 |
#endif |
| 575 |
#ifndef EM_MANIK |
| 576 |
#define EM_MANIK 171 |
| 577 |
#endif |
| 578 |
#ifndef EM_CRAYNV2 |
| 579 |
#define EM_CRAYNV2 172 |
| 580 |
#endif |
| 581 |
#ifndef EM_RX |
| 582 |
#define EM_RX 173 |
| 583 |
#endif |
| 584 |
#ifndef EM_METAG |
| 585 |
#define EM_METAG 174 |
| 586 |
#endif |
| 587 |
#ifndef EM_MCST_ELBRUS |
| 588 |
#define EM_MCST_ELBRUS 175 |
| 589 |
#endif |
| 590 |
#ifndef EM_ECOG16 |
| 591 |
#define EM_ECOG16 176 |
| 592 |
#endif |
| 593 |
#ifndef EM_CR16 |
| 594 |
#define EM_CR16 177 |
| 595 |
#endif |
| 596 |
#ifndef EM_ETPU |
| 597 |
#define EM_ETPU 178 |
| 598 |
#endif |
| 599 |
#ifndef EM_SLE9X |
| 600 |
#define EM_SLE9X 179 |
| 601 |
#endif |
| 602 |
#ifndef EM_L10M |
| 603 |
#define EM_L10M 180 |
| 604 |
#endif |
| 605 |
#ifndef EM_K10M |
| 606 |
#define EM_K10M 181 |
| 607 |
#endif |
| 608 |
#ifndef EM_AARCH64 |
| 609 |
#define EM_AARCH64 183 |
| 610 |
#endif |
| 611 |
#ifndef EM_AVR32 |
| 612 |
#define EM_AVR32 185 |
| 613 |
#endif |
| 614 |
#ifndef EM_STM8 |
| 615 |
#define EM_STM8 186 |
| 616 |
#endif |
| 617 |
#ifndef EM_TILE64 |
| 618 |
#define EM_TILE64 187 |
| 619 |
#endif |
| 620 |
#ifndef EM_TILEPRO |
| 621 |
#define EM_TILEPRO 188 |
| 622 |
#endif |
| 623 |
#ifndef EM_MICROBLAZE |
| 624 |
#define EM_MICROBLAZE 189 |
| 625 |
#endif |
| 626 |
#ifndef EM_CUDA |
| 627 |
#define EM_CUDA 190 |
| 628 |
#endif |
| 629 |
#ifndef EM_TILEGX |
| 630 |
#define EM_TILEGX 191 |
| 631 |
#endif |
| 632 |
#ifndef EM_CLOUDSHIELD |
| 633 |
#define EM_CLOUDSHIELD 192 |
| 634 |
#endif |
| 635 |
#ifndef EM_COREA_1ST |
| 636 |
#define EM_COREA_1ST 193 |
| 637 |
#endif |
| 638 |
#ifndef EM_COREA_2ND |
| 639 |
#define EM_COREA_2ND 194 |
| 640 |
#endif |
| 641 |
#ifndef EM_ARC_COMPACT2 |
| 642 |
#define EM_ARC_COMPACT2 195 |
| 643 |
#endif |
| 644 |
#ifndef EM_OPEN8 |
| 645 |
#define EM_OPEN8 196 |
| 646 |
#endif |
| 647 |
#ifndef EM_RL78 |
| 648 |
#define EM_RL78 197 |
| 649 |
#endif |
| 650 |
#ifndef EM_VIDEOCORE5 |
| 651 |
#define EM_VIDEOCORE5 198 |
| 652 |
#endif |
| 653 |
#ifndef EM_78KOR |
| 654 |
#define EM_78KOR 199 |
| 655 |
#endif |
| 656 |
#ifndef EM_56800EX |
| 657 |
#define EM_56800EX 200 |
| 658 |
#endif |
| 659 |
#ifndef EM_BA1 |
| 660 |
#define EM_BA1 201 |
| 661 |
#endif |
| 662 |
#ifndef EM_BA2 |
| 663 |
#define EM_BA2 202 |
| 664 |
#endif |
| 665 |
#ifndef EM_XCORE |
| 666 |
#define EM_XCORE 203 |
| 667 |
#endif |
| 668 |
#ifndef EM_MCHP_PIC |
| 669 |
#define EM_MCHP_PIC 204 |
| 670 |
#endif |
| 671 |
#ifndef EM_KM32 |
| 672 |
#define EM_KM32 210 |
| 673 |
#endif |
| 674 |
#ifndef EM_KMX32 |
| 675 |
#define EM_KMX32 211 |
| 676 |
#endif |
| 677 |
#ifndef EM_EMX16 |
| 678 |
#define EM_EMX16 212 |
| 679 |
#endif |
| 680 |
#ifndef EM_EMX8 |
| 681 |
#define EM_EMX8 213 |
| 682 |
#endif |
| 683 |
#ifndef EM_KVARC |
| 684 |
#define EM_KVARC 214 |
| 685 |
#endif |
| 686 |
#ifndef EM_CDP |
| 687 |
#define EM_CDP 215 |
| 688 |
#endif |
| 689 |
#ifndef EM_COGE |
| 690 |
#define EM_COGE 216 |
| 691 |
#endif |
| 692 |
#ifndef EM_COOL |
| 693 |
#define EM_COOL 217 |
| 694 |
#endif |
| 695 |
#ifndef EM_NORC |
| 696 |
#define EM_NORC 218 |
| 697 |
#endif |
| 698 |
#ifndef EM_CSR_KALIMBA |
| 699 |
#define EM_CSR_KALIMBA 219 |
| 700 |
#endif |
| 701 |
#ifndef EM_Z80 |
| 702 |
#define EM_Z80 220 |
| 703 |
#endif |
| 704 |
#ifndef EM_VISIUM |
| 705 |
#define EM_VISIUM 221 |
| 706 |
#endif |
| 707 |
#ifndef EM_FT32 |
| 708 |
#define EM_FT32 222 |
| 709 |
#endif |
| 710 |
#ifndef EM_MOXIE |
| 711 |
#define EM_MOXIE 223 |
| 712 |
#endif |
| 713 |
#ifndef EM_AMDGPU |
| 714 |
#define EM_AMDGPU 224 |
| 715 |
#endif |
| 716 |
#ifndef EM_RISCV |
| 717 |
#define EM_RISCV 243 |
| 718 |
#endif |
| 719 |
#ifndef EM_BPF |
| 720 |
#define EM_BPF 247 |
| 721 |
#endif |
| 722 |
|
| 723 |
/* Standard Elf dynamic tags. */ |
| 724 |
#ifndef DT_NULL |
| 725 |
#define DT_NULL 0 |
| 726 |
#endif |
| 727 |
#ifndef DT_NEEDED |
| 728 |
#define DT_NEEDED 1 |
| 729 |
#endif |
| 730 |
#ifndef DT_PLTRELSZ |
| 731 |
#define DT_PLTRELSZ 2 |
| 732 |
#endif |
| 733 |
#ifndef DT_PLTGOT |
| 734 |
#define DT_PLTGOT 3 |
| 735 |
#endif |
| 736 |
#ifndef DT_HASH |
| 737 |
#define DT_HASH 4 |
| 738 |
#endif |
| 739 |
#ifndef DT_STRTAB |
| 740 |
#define DT_STRTAB 5 |
| 741 |
#endif |
| 742 |
#ifndef DT_SYMTAB |
| 743 |
#define DT_SYMTAB 6 |
| 744 |
#endif |
| 745 |
#ifndef DT_RELA |
| 746 |
#define DT_RELA 7 |
| 747 |
#endif |
| 748 |
#ifndef DT_REL |
| 749 |
#define DT_REL 17 |
| 750 |
#endif |
| 751 |
#ifndef DT_RELASZ |
| 752 |
#define DT_RELASZ 8 |
| 753 |
#endif |
| 754 |
#ifndef DT_RELAENT |
| 755 |
#define DT_RELAENT 9 |
| 756 |
#endif |
| 757 |
#ifndef DT_STRSZ |
| 758 |
#define DT_STRSZ 10 |
| 759 |
#endif |
| 760 |
|
| 761 |
#ifndef DT_SYMENT |
| 762 |
#define DT_SYMENT 11 |
| 763 |
#endif |
| 764 |
|
| 765 |
#ifndef DT_INIT |
| 766 |
#define DT_INIT 12 |
| 767 |
#endif |
| 768 |
|
| 769 |
#ifndef DT_FINI |
| 770 |
#define DT_FINI 13 |
| 771 |
#endif |
| 772 |
|
| 773 |
#ifndef DT_SONAME |
| 774 |
#define DT_SONAME 14 |
| 775 |
#endif |
| 776 |
|
| 777 |
#ifndef DT_RPATH |
| 778 |
#define DT_RPATH 15 |
| 779 |
#endif |
| 780 |
|
| 781 |
#ifndef DT_SYMBOLIC |
| 782 |
#define DT_SYMBOLIC 16 |
| 783 |
#endif |
| 784 |
|
| 785 |
#ifndef DT_REL |
| 786 |
#define DT_REL 17 |
| 787 |
#endif |
| 788 |
#ifndef DT_RELSZ |
| 789 |
#define DT_RELSZ 18 |
| 790 |
#endif |
| 791 |
|
| 792 |
#ifndef DT_RELENT |
| 793 |
#define DT_RELENT 19 |
| 794 |
#endif |
| 795 |
|
| 796 |
#ifndef DT_PLTREL |
| 797 |
#define DT_PLTREL 20 |
| 798 |
#endif |
| 799 |
|
| 800 |
#ifndef DT_DEBUG |
| 801 |
#define DT_DEBUG 21 |
| 802 |
#endif |
| 803 |
|
| 804 |
#ifndef DT_TEXTREL |
| 805 |
#define DT_TEXTREL 22 |
| 806 |
#endif |
| 807 |
|
| 808 |
#ifndef DT_JMPREL |
| 809 |
#define DT_JMPREL 23 |
| 810 |
#endif |
| 811 |
|
| 812 |
#ifndef SHN_UNDEF |
| 813 |
#define SHN_UNDEF 0 |
| 814 |
#endif |
| 815 |
#ifndef SHN_LORESERVE |
| 816 |
#define SHN_LORESERVE 0xff00 |
| 817 |
#endif |
| 818 |
#ifndef SHN_LOPROC |
| 819 |
#define SHN_LOPROC 0xff00 |
| 820 |
#endif |
| 821 |
#ifndef SHN_HIPROC |
| 822 |
#define SHN_HIPROC 0xff1f |
| 823 |
#endif |
| 824 |
#ifndef SHN_ABS |
| 825 |
#define SHN_ABS 0xfff1 |
| 826 |
#endif |
| 827 |
#ifndef SHN_COMMON |
| 828 |
#define SHN_COMMON 0xfff2 |
| 829 |
#endif |
| 830 |
#ifndef SHN_HIRESERVE |
| 831 |
#define SHN_HIRESERVE 0xffff |
| 832 |
#endif |
| 833 |
|
| 834 |
#ifndef EV_CURRENT |
| 835 |
#define EV_CURRENT 1 |
| 836 |
#endif |
| 837 |
#ifndef EV_NONE |
| 838 |
#define EV_NONE 0 |
| 839 |
#endif |
| 840 |
|
| 841 |
#ifndef EI_MAG0 |
| 842 |
#define EI_MAG0 0 |
| 843 |
#endif |
| 844 |
#ifndef EI_MAG1 |
| 845 |
#define EI_MAG1 1 |
| 846 |
#endif |
| 847 |
#ifndef EI_MAG2 |
| 848 |
#define EI_MAG2 2 |
| 849 |
#endif |
| 850 |
#ifndef EI_MAG3 |
| 851 |
#define EI_MAG3 3 |
| 852 |
#endif |
| 853 |
#ifndef EI_CLASS |
| 854 |
#define EI_CLASS 4 |
| 855 |
#endif |
| 856 |
#ifndef EI_DATA |
| 857 |
#define EI_DATA 5 |
| 858 |
#endif |
| 859 |
#ifndef EI_VERSION |
| 860 |
#define EI_VERSION 6 |
| 861 |
#endif |
| 862 |
#ifndef EI_PAD |
| 863 |
#define EI_PAD 7 |
| 864 |
#endif |
| 865 |
#ifndef EI_OSABI |
| 866 |
#define EI_OSABI 7 |
| 867 |
#endif |
| 868 |
#ifndef EI_NIDENT |
| 869 |
#define EI_NIDENT 16 |
| 870 |
#endif |
| 871 |
#ifndef EI_ABIVERSION |
| 872 |
#define EI_ABIVERSION 8 |
| 873 |
#endif |
| 874 |
|
| 875 |
#ifndef ELFMAG0 |
| 876 |
#define ELFMAG0 0x7f |
| 877 |
#endif |
| 878 |
#ifndef ELFMAG1 |
| 879 |
#define ELFMAG1 'E' |
| 880 |
#endif |
| 881 |
#ifndef ELFMAG2 |
| 882 |
#define ELFMAG2 'L' |
| 883 |
#endif |
| 884 |
#ifndef ELFMAG3 |
| 885 |
#define ELFMAG3 'F' |
| 886 |
#endif |
| 887 |
#ifndef ELFCLASSNONE |
| 888 |
#define ELFCLASSNONE 0 |
| 889 |
#endif |
| 890 |
#ifndef ELFCLASS32 |
| 891 |
#define ELFCLASS32 1 |
| 892 |
#endif |
| 893 |
#ifndef ELFCLASS64 |
| 894 |
#define ELFCLASS64 2 |
| 895 |
#endif |
| 896 |
#ifndef ELFDATANONE |
| 897 |
#define ELFDATANONE 0 |
| 898 |
#endif |
| 899 |
#ifndef ELFDATA2LSB |
| 900 |
#define ELFDATA2LSB 1 |
| 901 |
#endif |
| 902 |
#ifndef ELFDATA2MSB |
| 903 |
#define ELFDATA2MSB 2 |
| 904 |
#endif |
| 905 |
|
| 906 |
#ifndef ELFOSABI_NONE |
| 907 |
#define ELFOSABI_NONE 0 |
| 908 |
#endif |
| 909 |
#ifndef ELFOSABI_SYSV |
| 910 |
#define ELFOSABI_SYSV 0 |
| 911 |
#endif |
| 912 |
#ifndef ELFOSABI_HPUX |
| 913 |
#define ELFOSABI_HPUX 1 |
| 914 |
#endif |
| 915 |
#ifndef ELFOSABI_NETBSD |
| 916 |
#define ELFOSABI_NETBSD 2 |
| 917 |
#endif |
| 918 |
#ifndef ELFOSABI_GNU |
| 919 |
#define ELFOSABI_GNU 3 |
| 920 |
#endif |
| 921 |
#ifndef ELFOSABI_LINUX |
| 922 |
#define ELFOSABI_LINUX ELFOSABI_GNU |
| 923 |
#endif |
| 924 |
#ifndef ELFOSABI_SOLARIS |
| 925 |
#define ELFOSABI_SOLARIS 6 |
| 926 |
#endif |
| 927 |
#ifndef ELFOSABI_AIX |
| 928 |
#define ELFOSABI_AIX 7 |
| 929 |
#endif |
| 930 |
#ifndef ELFOSABI_IRIX |
| 931 |
#define ELFOSABI_IRIX 8 |
| 932 |
#endif |
| 933 |
#ifndef ELFOSABI_FREEBSD |
| 934 |
#define ELFOSABI_FREEBSD 9 |
| 935 |
#endif |
| 936 |
#ifndef ELFOSABI_TRU64 |
| 937 |
#define ELFOSABI_TRU64 10 |
| 938 |
#endif |
| 939 |
#ifndef ELFOSABI_MODESTO |
| 940 |
#define ELFOSABI_MODESTO 11 |
| 941 |
#endif |
| 942 |
#ifndef ELFOSABI_OPENBSD |
| 943 |
#define ELFOSABI_OPENBSD 12 |
| 944 |
#endif |
| 945 |
#ifndef ELFOSABI_ARM_AEABI |
| 946 |
#define ELFOSABI_ARM_AEABI 64 |
| 947 |
#endif |
| 948 |
#ifndef ELFOSABI_ARM |
| 949 |
#define ELFOSABI_ARM 97 |
| 950 |
#endif |
| 951 |
#ifndef ELFOSABI_STANDALONE |
| 952 |
#define ELFOSABI_STANDALONE 255 |
| 953 |
#endif |
| 954 |
|
| 955 |
/* for the producer code. */ |
| 956 |
#ifndef R_MIPS_NONE |
| 957 |
#define R_MIPS_NONE 0 |
| 958 |
#endif |
| 959 |
#ifndef R_QUALCOMM_REL32 |
| 960 |
#define R_QUALCOMM_REL32 6 |
| 961 |
#endif |
| 962 |
/* For Freebsd: */ |
| 963 |
#ifndef R_PPC64_ADDR32 |
| 964 |
#define R_PPC64_ADDR32 1 |
| 965 |
#endif |
| 966 |
#ifndef R_PPC64_DTPREL32 |
| 967 |
#define R_PPC64_DTPREL32 110 |
| 968 |
#endif |
| 969 |
#ifndef R_PPC64_DTPREL64 |
| 970 |
#define R_PPC64_DTPREL64 78 |
| 971 |
#endif |
| 972 |
#ifndef R_PPC_DTPREL32 |
| 973 |
#define R_PPC_DTPREL32 78 |
| 974 |
#endif |
| 975 |
/* The following two probably useless. */ |
| 976 |
#ifndef R_X86_64_PC32_BND |
| 977 |
#define R_X86_64_PC32_BND 39 |
| 978 |
#endif |
| 979 |
#ifndef R_X86_64_PLT32_BND |
| 980 |
#define R_X86_64_PLT32_BND 40 |
| 981 |
#endif |
| 982 |
|
| 983 |
/* Seen in a Linux Kernel. Means 'nothing to do' */ |
| 984 |
#ifndef R_X86_64_NONE |
| 985 |
#define R_X86_64_NONE 0 |
| 986 |
#endif /* R_X86_64_NONE */ |
| 987 |
|
| 988 |
#ifndef R_386_32 |
| 989 |
#define R_386_32 1 |
| 990 |
#endif /* R_386_32 */ |
| 991 |
#ifndef R_386_GOTPC |
| 992 |
#define R_386_GOTPC 10 |
| 993 |
#endif /* R_386_GOTPC */ |
| 994 |
#ifndef R_386_PC32 |
| 995 |
#define R_386_PC32 2 |
| 996 |
#endif /* R_386_PC32 */ |
| 997 |
#ifndef R_386_TLS_DTPOFF32 |
| 998 |
#define R_386_TLS_DTPOFF32 36 |
| 999 |
#endif /* R_386_TLS_DTPOFF32 */ |
| 1000 |
#ifndef R_386_TLS_LDO_32 |
| 1001 |
#define R_386_TLS_LDO_32 32 |
| 1002 |
#endif /* R_386_TLS_LDO_32 */ |
| 1003 |
#ifndef R_390_32 |
| 1004 |
#define R_390_32 4 |
| 1005 |
#endif /* R_390_32 */ |
| 1006 |
#ifndef R_390_64 |
| 1007 |
#define R_390_64 22 |
| 1008 |
#endif /* R_390_64 */ |
| 1009 |
#ifndef R_390_TLS_LDO32 |
| 1010 |
#define R_390_TLS_LDO32 52 |
| 1011 |
#endif /* R_390_TLS_LDO32 */ |
| 1012 |
#ifndef R_390_TLS_LDO64 |
| 1013 |
#define R_390_TLS_LDO64 53 |
| 1014 |
#endif /* R_390_TLS_LDO64 */ |
| 1015 |
#ifndef R_AARCH64_NONE |
| 1016 |
#define R_AARCH64_NONE 0 |
| 1017 |
#endif /* R_AARCH64_NONE */ |
| 1018 |
#ifndef R_AARCH64_ABS32 |
| 1019 |
#define R_AARCH64_ABS32 258 |
| 1020 |
#endif /* R_AARCH64_ABS32 */ |
| 1021 |
#ifndef R_AARCH64_ABS64 |
| 1022 |
#define R_AARCH64_ABS64 257 |
| 1023 |
#endif /* R_AARCH64_ABS64 */ |
| 1024 |
#ifndef R_ARM_ABS32 |
| 1025 |
#define R_ARM_ABS32 2 |
| 1026 |
#endif /* R_ARM_ABS32 */ |
| 1027 |
#ifndef R_ARM_TLS_LDO32 |
| 1028 |
#define R_ARM_TLS_LDO32 106 |
| 1029 |
#endif /* R_ARM_TLS_LDO32 */ |
| 1030 |
#ifndef R_IA64_DIR32LSB |
| 1031 |
#define R_IA64_DIR32LSB 0x25 |
| 1032 |
#endif /* R_IA64_DIR32LSB */ |
| 1033 |
#ifndef R_IA64_DIR64LSB |
| 1034 |
#define R_IA64_DIR64LSB 0x27 |
| 1035 |
#endif /* R_IA64_DIR64LSB */ |
| 1036 |
#ifndef R_IA64_DTPREL32LSB |
| 1037 |
#define R_IA64_DTPREL32LSB 0xb5 |
| 1038 |
#endif /* R_IA64_DTPREL32LSB */ |
| 1039 |
#ifndef R_IA64_DTPREL64LSB |
| 1040 |
#define R_IA64_DTPREL64LSB 0xb7 |
| 1041 |
#endif /* R_IA64_DTPREL64LSB */ |
| 1042 |
#ifndef R_IA64_REL32LSB |
| 1043 |
#define R_IA64_REL32LSB 0x6d |
| 1044 |
#endif /* R_IA64_REL32LSB */ |
| 1045 |
#ifndef R_IA64_SECREL32LSB |
| 1046 |
#define R_IA64_SECREL32LSB 0x65 |
| 1047 |
#endif /* R_IA64_SECREL32LSB */ |
| 1048 |
#ifndef R_IA64_SECREL64LSB |
| 1049 |
#define R_IA64_SECREL64LSB 0x67 |
| 1050 |
#endif /* R_IA64_SECREL64LSB */ |
| 1051 |
#ifndef R_MIPS_32 |
| 1052 |
#define R_MIPS_32 2 |
| 1053 |
#endif /* R_MIPS_32 */ |
| 1054 |
#ifndef R_MIPS_64 |
| 1055 |
#define R_MIPS_64 18 |
| 1056 |
#endif /* R_MIPS_64 */ |
| 1057 |
#ifndef R_MIPS_TLS_DTPREL32 |
| 1058 |
#define R_MIPS_TLS_DTPREL32 39 |
| 1059 |
#endif /* R_MIPS_TLS_DTPREL32 */ |
| 1060 |
#ifndef R_MIPS_TLS_DTPREL64 |
| 1061 |
#define R_MIPS_TLS_DTPREL64 41 |
| 1062 |
#endif /* R_MIPS_TLS_DTPREL64 */ |
| 1063 |
#ifndef R_PPC64_ADDR64 |
| 1064 |
#define R_PPC64_ADDR64 38 |
| 1065 |
#endif /* R_PPC64_ADDR64 */ |
| 1066 |
#ifndef R_PPC64_DTPREL32 |
| 1067 |
#define R_PPC64_DTPREL32 110 |
| 1068 |
#endif /* R_PPC64_DTPREL32 */ |
| 1069 |
#ifndef R_PPC64_DTPREL64 |
| 1070 |
#define R_PPC64_DTPREL64 78 |
| 1071 |
#endif /* R_PPC64_DTPREL64 */ |
| 1072 |
#ifndef R_PPC_ADDR32 |
| 1073 |
#define R_PPC_ADDR32 1 |
| 1074 |
#endif /* R_PPC_ADDR32 */ |
| 1075 |
#ifndef R_PPC_DTPREL32 |
| 1076 |
#define R_PPC_DTPREL32 78 |
| 1077 |
#endif /* R_PPC_DTPREL32 */ |
| 1078 |
#ifndef R_QUALCOMM_REL32 |
| 1079 |
#define R_QUALCOMM_REL32 6 |
| 1080 |
#endif /* R_QUALCOMM_REL32 */ |
| 1081 |
#ifndef R_SH_DIR32 |
| 1082 |
#define R_SH_DIR32 1 |
| 1083 |
#endif /* R_SH_DIR32 */ |
| 1084 |
#ifndef R_SH_TLS_DTPOFF32 |
| 1085 |
#define R_SH_TLS_DTPOFF32 150 |
| 1086 |
#endif /* R_SH_TLS_DTPOFF32 */ |
| 1087 |
#ifndef R_SPARC_TLS_DTPOFF32 |
| 1088 |
#define R_SPARC_TLS_DTPOFF32 76 |
| 1089 |
#endif /* R_SPARC_TLS_DTPOFF32 */ |
| 1090 |
#ifndef R_SPARC_TLS_DTPOFF64 |
| 1091 |
#define R_SPARC_TLS_DTPOFF64 77 |
| 1092 |
#endif /* R_SPARC_TLS_DTPOFF64 */ |
| 1093 |
#ifndef R_SPARC_UA32 |
| 1094 |
#define R_SPARC_UA32 23 |
| 1095 |
#endif /* R_SPARC_UA32 */ |
| 1096 |
#ifndef R_SPARC_UA64 |
| 1097 |
#define R_SPARC_UA64 54 |
| 1098 |
#endif /* R_SPARC_UA64 */ |
| 1099 |
#ifndef R_X86_64_32 |
| 1100 |
#define R_X86_64_32 10 |
| 1101 |
#endif /* R_X86_64_32 */ |
| 1102 |
#ifndef R_X86_64_64 |
| 1103 |
#define R_X86_64_64 1 |
| 1104 |
#endif /* R_X86_64_64 */ |
| 1105 |
#ifndef R_X86_64_PC64 |
| 1106 |
#define R_X86_64_PC64 24 |
| 1107 |
#endif /* R_X86_64_PC64 */ |
| 1108 |
#ifndef R_X86_64_DTPOFF32 |
| 1109 |
#define R_X86_64_DTPOFF32 21 |
| 1110 |
#endif /* R_X86_64_DTPOFF32 */ |
| 1111 |
#ifndef R_X86_64_DTPOFF64 |
| 1112 |
#define R_X86_64_DTPOFF64 17 |
| 1113 |
#endif /* R_X86_64_DTPOFF64 */ |
| 1114 |
#ifndef R_X86_64_PC32 |
| 1115 |
#define R_X86_64_PC32 2 |
| 1116 |
#endif /* R_X86_64_PC32 */ |
| 1117 |
|
| 1118 |
#ifdef __cplusplus |
| 1119 |
} |
| 1120 |
#endif /* __cplusplus */ |
| 1121 |
|
| 1122 |
#endif /* DWARF_ELF_DEFINES_H */ |