57 #define EI_ABIVERSION 8 67 #define ELFMAG "\177ELF" 72 #define ELFCLASSNONE 0 85 #define ELFOSABI_NONE 0 86 #define ELFOSABI_HPUX 1 87 #define ELFOSABI_NETBSD 2 88 #define ELFOSABI_LINUX 3 89 #define ELFOSABI_SOLARIS 6 90 #define ELFOSABI_AIX 7 91 #define ELFOSABI_IRIX 8 92 #define ELFOSABI_FREEBSD 9 93 #define ELFOSABI_TRU64 10 94 #define ELFOSABI_MODESTO 11 95 #define ELFOSABI_OPENBSD 12 101 #define ELFABIVERSION 0 105 #define IS_ELF(ehdr) ((ehdr).e_ident[EI_MAG0] == ELFMAG0 && \ 106 (ehdr).e_ident[EI_MAG1] == ELFMAG1 && \ 107 (ehdr).e_ident[EI_MAG2] == ELFMAG2 && \ 108 (ehdr).e_ident[EI_MAG3] == ELFMAG3) 138 #define ET_LOOS 0xfe00 139 #define ET_HIOS 0xfeff 140 #define ET_LOPROC 0xff00 141 #define ET_HIPROC 0xffff 157 #define EM_MIPS_RS4_BE 10 159 #define EM_SPARC64 11 168 #define EM_SPARC32PLUS 18 181 #define EM_SPARCV9 43 182 #define EM_TRICORE 44 185 #define EM_H8_300H 47 190 #define EM_COLDFIRE 52 196 #define EM_STARCORE 58 204 #define EM_ST9PLUS 67 214 #define EM_JAVELIN 77 215 #define EM_FIREPATH 78 226 #define EM_MN10300 89 227 #define EM_MN10200 90 257 #define SHN_LORESERVE 0xff00 258 #define SHN_LOPROC 0xff00 259 #define SHN_HIPROC 0xff1f 260 #define SHN_LOOS 0xff20 261 #define SHN_HIOS 0xff3f 262 #define SHN_ABS 0xfff1 263 #define SHN_COMMON 0xfff2 264 #define SHN_XINDEX 0xffff 265 #define SHN_HIRESERVE 0xffff 270 #define SHT_PROGBITS 1 275 #define SHT_DYNAMIC 6 280 #define SHT_DYNSYM 11 281 #define SHT_INIT_ARRAY 14 282 #define SHT_FINI_ARRAY 15 283 #define SHT_PREINIT_ARRAY 16 285 #define SHT_SYMTAB_SHNDX 18 287 #define SHT_LOOS 0x60000000 288 #define SHT_HIOS 0x6fffffff 289 #define SHT_LOPROC 0x70000000 290 #define SHT_HIPROC 0x7fffffff 291 #define SHT_LOUSER 0x80000000 292 #define SHT_HIUSER 0xffffffff 295 #define ELF_BSS ".bss" 296 #define ELF_COMMENT ".comment" 297 #define ELF_DATA ".data" 298 #define ELF_DATA1 ".data1" 299 #define ELF_DEBUG ".debug" 300 #define ELF_DYNAMIC ".dynamic" 301 #define ELF_DYNSTR ".dynstr" 302 #define ELF_DYNSYM ".dynsym" 303 #define ELF_FINI ".fini" 304 #define ELF_FINI_ARRAY ".fini_array" 305 #define ELF_GOT ".got" 306 #define ELF_HASH ".hash" 307 #define ELF_INIT ".init" 308 #define ELF_INIT_ARRAY ".init_array" 309 #define ELF_INTERP ".interp" 310 #define ELF_LINE ".line" 311 #define ELF_NOTE ".note" 312 #define ELF_PLT ".plt" 313 #define ELF_PREINIT_ARRAY ".preinit_array" 314 #define ELF_REL_DATA ".rel.data" 315 #define ELF_REL_FINI ".rel.fini" 316 #define ELF_REL_INIT ".rel.init" 317 #define ELF_REL_DYN ".rel.dyn" 318 #define ELF_REL_RODATA ".rel.rodata" 319 #define ELF_REL_TEXT ".rel.text" 320 #define ELF_RODATA ".rodata" 321 #define ELF_RODATA1 ".rodata1" 322 #define ELF_SHSTRTAB ".shstrtab" 323 #define ELF_STRTAB ".strtab" 324 #define ELF_SYMTAB ".symtab" 325 #define ELF_SYMTAB_SHNDX ".symtab_shndx" 326 #define ELF_TBSS ".tbss" 327 #define ELF_TDATA ".tdata" 328 #define ELF_TDATA1 ".tdata1" 329 #define ELF_TEXT ".text" 333 #define SHF_WRITE 0x1 334 #define SHF_ALLOC 0x2 335 #define SHF_EXECINSTR 0x4 336 #define SHF_MERGE 0x10 337 #define SHF_STRINGS 0x20 338 #define SHF_INFO_LINK 0x40 339 #define SHF_LINK_ORDER 0x80 340 #define SHF_OS_NONCONFORMING 0x100 341 #define SHF_GROUP 0x200 342 #define SHF_TLS 0x400 343 #define SHF_MASKOS 0x0ff00000 344 #define SHF_MASKPROC 0xf0000000 349 #define GRP_COMDAT 0x1 350 #define GRP_MASKOS 0x0ff00000 351 #define GRP_MASKPROC 0xf0000000 371 #define ELF32_ST_BIND(x) ((x) >> 4) 372 #define ELF32_ST_TYPE(x) (((unsigned int) x) & 0xf) 373 #define ELF32_ST_INFO(b,t) (((b) << 4) + ((t) & 0xf)) 374 #define ELF32_ST_VISIBILITY(x) ((x) & 0x3) 384 #define STB_LOPROC 13 385 #define STB_HIPROC 15 391 #define STT_SECTION 3 397 #define STT_LOPROC 13 398 #define STT_HIPROC 15 402 #define STV_DEFAULT 0 403 #define STV_INTERNAL 1 405 #define STV_PROTECTED 3 427 #define ELF32_R_SYM(i) ((i) >> 8) 428 #define ELF32_R_TYPE(i) ((unsigned char) (i)) 429 #define ELF32_R_INFO(s,t) (((s) << 8) + (unsigned char)(t)) 455 #define PT_LOOS 0x60000000 456 #define PT_HIOS 0x6fffffff 457 #define PT_LOPROC 0x70000000 458 #define PT_HIPROC 0x7fffffff 464 #define PF_MASKOS 0x0ff00000 465 #define PF_MASKPROC 0xf0000000 485 #define DT_PLTRELSZ 2 499 #define DT_SYMBOLIC 16 505 #define DT_TEXTREL 22 507 #define DT_BIND_NOW 24 508 #define DT_INIT_ARRAY 25 509 #define DT_FINI_ARRAY 26 510 #define DT_INIT_ARRAYSZ 27 511 #define DT_FINI_ARRAYSZ 28 512 #define DT_RUNPATH 29 514 #define DT_ENCODING 32 515 #define DT_PREINIT_ARRAY 32 516 #define DT_PREINIT_ARRAYSZ 33 518 #define DT_LOOS 0x60000000 519 #define DT_HIOS 0x6fffffff 520 #define DT_LOPROC 0x70000000 521 #define DT_HIPROC 0x7fffffff 525 #define DF_ORIGIN 0x01 526 #define DF_SYMBOLIC 0x02 527 #define DF_TEXTRE 0x04 528 #define DF_BIND_NOW 0x08 529 #define DF_STATIC_TLS 0x10 535 #define ELF_TARG_VER 1 541 #define EF_PPC_EMB 0x80000000 544 #define EF_PPC_RELOCATABLE 0x00010000 545 #define EF_PPC_RELOCATABLE_LIB 0x00008000 551 #define R_PPC_ADDR32 1 552 #define R_PPC_ADDR24 2 553 #define R_PPC_ADDR16 3 554 #define R_PPC_ADDR16_LO 4 555 #define R_PPC_ADDR16_HI 5 556 #define R_PPC_ADDR16_HA 6 557 #define R_PPC_ADDR14 7 558 #define R_PPC_ADDR14_BRTAKEN 8 559 #define R_PPC_ADDR14_BRNTAKEN 9 560 #define R_PPC_REL24 10 561 #define R_PPC_REL14 11 562 #define R_PPC_REL14_BRTAKEN 12 563 #define R_PPC_REL14_BRNTAKEN 13 564 #define R_PPC_GOT16 14 565 #define R_PPC_GOT16_LO 15 566 #define R_PPC_GOT16_HI 16 567 #define R_PPC_GOT16_HA 17 568 #define R_PPC_PLTREL24 18 569 #define R_PPC_COPY 19 570 #define R_PPC_GLOB_DAT 20 571 #define R_PPC_JMP_SLOT 21 572 #define R_PPC_RELATIVE 22 573 #define R_PPC_LOCAL24PC 23 574 #define R_PPC_UADDR32 24 575 #define R_PPC_UADDR16 25 576 #define R_PPC_REL32 26 577 #define R_PPC_PLT32 27 578 #define R_PPC_PLTREL32 28 579 #define R_PPC_PLT16_LO 29 580 #define R_PPC_PLT16_HI 30 581 #define R_PPC_PLT16_HA 31 582 #define R_PPC_SDAREL16 32 583 #define R_PPC_SECTOFF 33 584 #define R_PPC_SECTOFF_LO 34 585 #define R_PPC_SECTOFF_HI 35 586 #define R_PPC_SECTOFF_HA 36 593 #define R_PPC_EMB_NADDR32 101 594 #define R_PPC_EMB_NADDR16 102 595 #define R_PPC_EMB_NADDR16_LO 103 596 #define R_PPC_EMB_NADDR16_HI 104 597 #define R_PPC_EMB_NADDR16_HA 105 598 #define R_PPC_EMB_SDAI16 106 599 #define R_PPC_EMB_SDA2I16 107 600 #define R_PPC_EMB_SDA2REL 108 601 #define R_PPC_EMB_SDA21 109 602 #define R_PPC_EMB_MRKREF 110 603 #define R_PPC_EMB_RELSEC16 111 604 #define R_PPC_EMB_RELST_LO 112 605 #define R_PPC_EMB_RELST_HI 113 606 #define R_PPC_EMB_RELST_HA 114 607 #define R_PPC_EMB_BIT_FLD 115 608 #define R_PPC_EMB_RELSDA 116 611 #define R_PPC_DIAB_SDA21_LO 180 612 #define R_PPC_DIAB_SDA21_HI 181 613 #define R_PPC_DIAB_SDA21_HA 182 614 #define R_PPC_DIAB_RELSDA_LO 183 615 #define R_PPC_DIAB_RELSDA_HI 184 616 #define R_PPC_DIAB_RELSDA_HA 185 620 #define R_PPC_TOC16 255 GLuint const GLchar * name
Definition: glext.h:6671
Elf32_Addr p_paddr
Definition: elf_abi.h:437
Elf32_Word sh_addralign
Definition: elf_abi.h:250
unsigned char st_info
Definition: elf_abi.h:360
Definition: elf_abi.h:410
Elf32_Word p_type
Definition: elf_abi.h:434
Definition: elf_abi.h:111
Elf32_Word p_align
Definition: elf_abi.h:441
Elf32_Off e_phoff
Definition: elf_abi.h:118
Elf32_Word sh_size
Definition: elf_abi.h:247
Elf32_Off sh_offset
Definition: elf_abi.h:246
struct elf32_sym Elf32_Sym
unsigned char st_other
Definition: elf_abi.h:361
Elf32_Word st_size
Definition: elf_abi.h:359
uint32_t Elf32_Word
Definition: elf_abi.h:44
Definition: elf_abi.h:432
Elf32_Addr r_offset
Definition: elf_abi.h:412
Elf32_Word sh_flags
Definition: elf_abi.h:244
Definition: elf_abi.h:355
uint16_t Elf32_Half
Definition: elf_abi.h:45
Elf32_Word sh_info
Definition: elf_abi.h:249
#define EI_NIDENT
Definition: elf_abi.h:59
uint32_t Elf32_Addr
Definition: elf_abi.h:41
Definition: elf_abi.h:418
Elf32_Word sh_link
Definition: elf_abi.h:248
Elf32_Word sh_name
Definition: elf_abi.h:241
Elf32_Word p_memsz
Definition: elf_abi.h:439
Elf32_Word p_filesz
Definition: elf_abi.h:438
Elf32_Half st_shndx
Definition: elf_abi.h:362
unsigned char e_ident[EI_NIDENT]
Definition: elf_abi.h:113
Elf32_Half e_shentsize
Definition: elf_abi.h:124
Elf32_Word sh_entsize
Definition: elf_abi.h:251
Elf32_Addr st_value
Definition: elf_abi.h:358
unsigned long elf_hash(const unsigned char *name)
Elf32_Off p_offset
Definition: elf_abi.h:435
int32_t Elf32_Sword
Definition: elf_abi.h:43
Elf32_Half e_machine
Definition: elf_abi.h:115
uint32_t Elf32_Off
Definition: elf_abi.h:42
Elf32_Word st_name
Definition: elf_abi.h:357
Elf32_Addr e_entry
Definition: elf_abi.h:117
Elf32_Word sh_type
Definition: elf_abi.h:243
signed int int32_t
Definition: stdint.h:123
Elf32_Word e_version
Definition: elf_abi.h:116
Elf32_Sword d_tag
Definition: elf_abi.h:471
Elf32_Half e_shnum
Definition: elf_abi.h:125
Elf32_Half e_ehsize
Definition: elf_abi.h:121
Elf32_Half e_phentsize
Definition: elf_abi.h:122
Elf32_Sword r_addend
Definition: elf_abi.h:422
Elf32_Word p_flags
Definition: elf_abi.h:440
Elf32_Word r_info
Definition: elf_abi.h:421
Elf32_Word d_val
Definition: elf_abi.h:474
Elf32_Off e_shoff
Definition: elf_abi.h:119
Elf32_Addr r_offset
Definition: elf_abi.h:420
Definition: elf_abi.h:239
Elf32_Addr sh_addr
Definition: elf_abi.h:245
Elf32_Addr d_ptr
Definition: elf_abi.h:475
Elf32_Addr p_vaddr
Definition: elf_abi.h:436
Elf32_Half e_shstrndx
Definition: elf_abi.h:126
Elf32_Word e_flags
Definition: elf_abi.h:120
Definition: elf_abi.h:469
unsigned short uint16_t
Definition: stdint.h:125
unsigned int uint32_t
Definition: stdint.h:126
Elf32_Half e_phnum
Definition: elf_abi.h:123
Elf32_Half e_type
Definition: elf_abi.h:114
Elf32_Word r_info
Definition: elf_abi.h:413