/freebsd-10.1-release/cddl/contrib/opensolaris/lib/libdtrace/common/ |
H A D | dt_link.c | 521 elf_file.ehdr.e_ident[EI_MAG0] = ELFMAG0; 522 elf_file.ehdr.e_ident[EI_MAG1] = ELFMAG1; 523 elf_file.ehdr.e_ident[EI_MAG2] = ELFMAG2; 524 elf_file.ehdr.e_ident[EI_MAG3] = ELFMAG3; 525 elf_file.ehdr.e_ident[EI_VERSION] = EV_CURRENT; 526 elf_file.ehdr.e_ident[EI_CLASS] = ELFCLASS32; 528 elf_file.ehdr.e_ident[EI_DATA] = ELFDATA2MSB; 530 elf_file.ehdr.e_ident[EI_DATA] = ELFDATA2LSB; 533 elf_file.ehdr.e_ident[EI_OSABI] = ELFOSABI_FREEBSD; 669 elf_file.ehdr.e_ident[EI_MAG [all...] |
/freebsd-10.1-release/lib/libelf/ |
H A D | elf_update.c | 428 eh_byteorder = eh32->e_ident[EI_DATA]; 429 eh_class = eh32->e_ident[EI_CLASS]; 435 eh_byteorder = eh64->e_ident[EI_DATA]; 436 eh_class = eh64->e_ident[EI_CLASS]; 467 (E)->e_ident[EI_MAG0] = ELFMAG0; \ 468 (E)->e_ident[EI_MAG1] = ELFMAG1; \ 469 (E)->e_ident[EI_MAG2] = ELFMAG2; \ 470 (E)->e_ident[EI_MAG3] = ELFMAG3; \ 471 (E)->e_ident[EI_CLASS] = (EC); \ 472 (E)->e_ident[EI_VERSIO [all...] |
H A D | elf_types.m4 | 108 ``e_ident, IDENT', 125 ``e_ident, IDENT',
|
/freebsd-10.1-release/contrib/llvm/tools/lldb/source/Plugins/ObjectFile/ELF/ |
H A D | ELFHeader.cpp | 100 if (e_ident[EI_DATA] == ELFDATA2MSB) 102 if (e_ident[EI_DATA] == ELFDATA2LSB) 110 // Read e_ident. This provides byte order and address size info. 111 if (data.GetU8(offset, &e_ident, EI_NIDENT) == NULL)
|
H A D | ObjectFileELF.cpp | 510 if (m_header.e_ident[EI_DATA] == ELFDATA2MSB) 512 if (m_header.e_ident[EI_DATA] == ELFDATA2LSB) 1687 s->Printf("e_ident[EI_MAG0 ] = 0x%2.2x\n", header.e_ident[EI_MAG0]); 1688 s->Printf("e_ident[EI_MAG1 ] = 0x%2.2x '%c'\n", 1689 header.e_ident[EI_MAG1], header.e_ident[EI_MAG1]); 1690 s->Printf("e_ident[EI_MAG2 ] = 0x%2.2x '%c'\n", 1691 header.e_ident[EI_MAG2], header.e_ident[EI_MAG [all...] |
/freebsd-10.1-release/lib/libc/gen/ |
H A D | nlist.c | 222 ehdr->e_ident[EI_CLASS] == ELF_TARG_CLASS && 223 ehdr->e_ident[EI_DATA] == ELF_TARG_DATA && 224 ehdr->e_ident[EI_VERSION] == ELF_TARG_VER) {
|
/freebsd-10.1-release/contrib/binutils/bfd/ |
H A D | elfcode.h | 235 memcpy (dst->e_ident, src->e_ident, EI_NIDENT); 264 memcpy (dst->e_ident, src->e_ident, EI_NIDENT); 460 return ((x_ehdrp->e_ident[EI_MAG0] == ELFMAG0) 461 && (x_ehdrp->e_ident[EI_MAG1] == ELFMAG1) 462 && (x_ehdrp->e_ident[EI_MAG2] == ELFMAG2) 463 && (x_ehdrp->e_ident[EI_MAG3] == ELFMAG3)); 528 || x_ehdr.e_ident[EI_VERSION] != EV_CURRENT 529 || x_ehdr.e_ident[EI_CLAS [all...] |
/freebsd-10.1-release/contrib/gdb/gdb/ |
H A D | fbsd-proc.c | 131 i_ehdrp->e_ident[EI_OSABI] = ELFOSABI_FREEBSD;
|
H A D | osabi.c | 522 elfosabi = elf_elfheader (abfd)->e_ident[EI_OSABI]; 564 "FreeBSD" in the padding of the e_ident field of the ELF 566 if (strcmp (&elf_elfheader (abfd)->e_ident[8], "FreeBSD") == 0)
|
/freebsd-10.1-release/contrib/file/src/ |
H A D | readelf.h | 57 Elf32_Char e_ident[EI_NIDENT]; member in struct:__anon962 74 Elf64_Char e_ident[EI_NIDENT]; member in struct:__anon963 111 #define ELFDATANONE 0 /* e_ident[EI_DATA] */ 121 #define EI_MAG0 0 /* e_ident[] indexes */
|
/freebsd-10.1-release/contrib/llvm/tools/llvm-readobj/ |
H A D | ELFDumper.cpp | 444 W.printBinary("Magic", makeArrayRef(Header->e_ident).slice(ELF::EI_MAG0, 446 W.printEnum ("Class", Header->e_ident[ELF::EI_CLASS], 448 W.printEnum ("DataEncoding", Header->e_ident[ELF::EI_DATA], 450 W.printNumber("FileVersion", Header->e_ident[ELF::EI_VERSION]); 451 W.printEnum ("OS/ABI", Header->e_ident[ELF::EI_OSABI], 453 W.printNumber("ABIVersion", Header->e_ident[ELF::EI_ABIVERSION]); 454 W.printBinary("Unused", makeArrayRef(Header->e_ident).slice(ELF::EI_PAD));
|
/freebsd-10.1-release/libexec/rtld-elf/ |
H A D | map_object.c | 322 if (hdr->e_ident[EI_CLASS] != ELF_TARG_CLASS || 323 hdr->e_ident[EI_DATA] != ELF_TARG_DATA) { 327 if (hdr->e_ident[EI_VERSION] != EV_CURRENT ||
|
/freebsd-10.1-release/contrib/binutils/include/elf/ |
H A D | internal.h | 42 #define EI_NIDENT 16 /* Size of e_ident[] */ 45 unsigned char e_ident[EI_NIDENT]; /* ELF "magic number" */ member in struct:elf_internal_ehdr
|
/freebsd-10.1-release/contrib/llvm/include/llvm/Object/ |
H A D | ELFTypes.h | 410 unsigned char e_ident[ELF::EI_NIDENT]; // ELF Identification bytes member in struct:llvm::object::Elf_Ehdr_Impl 426 return (memcmp(e_ident, ELF::ElfMagic, strlen(ELF::ElfMagic))) == 0; 428 unsigned char getFileClass() const { return e_ident[ELF::EI_CLASS]; } 429 unsigned char getDataEncoding() const { return e_ident[ELF::EI_DATA]; }
|
/freebsd-10.1-release/sys/kern/ |
H A D | imgact_elf.c | 293 (hdr->e_ident[EI_OSABI] == bi->brand || 294 strncmp((const char *)&hdr->e_ident[OLD_EI_BRAND], 333 hdr->e_ident[EI_CLASS] != ELF_TARG_CLASS || 334 hdr->e_ident[EI_DATA] != ELF_TARG_DATA || 335 hdr->e_ident[EI_VERSION] != EV_CURRENT || 786 hdr->e_ident[EI_OSABI]); 1512 ehdr->e_ident[EI_MAG0] = ELFMAG0; 1513 ehdr->e_ident[EI_MAG1] = ELFMAG1; 1514 ehdr->e_ident[EI_MAG2] = ELFMAG2; 1515 ehdr->e_ident[EI_MAG [all...] |
H A D | link_elf_obj.c | 240 if (hdr->e_ident[EI_CLASS] != ELF_TARG_CLASS || 241 hdr->e_ident[EI_DATA] != ELF_TARG_DATA || 242 hdr->e_ident[EI_VERSION] != EV_CURRENT || 493 if (hdr->e_ident[EI_CLASS] != ELF_TARG_CLASS 494 || hdr->e_ident[EI_DATA] != ELF_TARG_DATA) { 499 if (hdr->e_ident[EI_VERSION] != EV_CURRENT
|
/freebsd-10.1-release/sys/sys/ |
H A D | elf32.h | 56 unsigned char e_ident[EI_NIDENT]; /* File identification. */ member in struct:__anon11349
|
H A D | elf64.h | 65 unsigned char e_ident[EI_NIDENT]; /* File identification. */ member in struct:__anon11365
|
H A D | elf_common.h | 63 /* Indexes into the e_ident array. Keep synced with 76 #define EI_NIDENT 16 /* Size of e_ident array. */ 86 /* Values for e_ident[EI_VERSION] and e_version. */ 90 /* Values for e_ident[EI_CLASS]. */ 95 /* Values for e_ident[EI_DATA]. */ 100 /* Values for e_ident[EI_OSABI]. */ 123 /* e_ident */ 124 #define IS_ELF(ehdr) ((ehdr).e_ident[EI_MAG0] == ELFMAG0 && \ 125 (ehdr).e_ident[EI_MAG1] == ELFMAG1 && \ 126 (ehdr).e_ident[EI_MAG [all...] |
/freebsd-10.1-release/contrib/llvm/include/llvm/Support/ |
H A D | ELF.h | 48 // e_ident size and indices. 60 EI_NIDENT = 16 // Number of bytes in e_ident. 64 unsigned char e_ident[EI_NIDENT]; // ELF Identification bytes member in struct:llvm::ELF::Elf32_Ehdr 79 return (memcmp(e_ident, ElfMagic, strlen(ElfMagic))) == 0; 81 unsigned char getFileClass() const { return e_ident[EI_CLASS]; } 82 unsigned char getDataEncoding() const { return e_ident[EI_DATA]; } 88 unsigned char e_ident[EI_NIDENT]; member in struct:llvm::ELF::Elf64_Ehdr 103 return (memcmp(e_ident, ElfMagic, strlen(ElfMagic))) == 0; 105 unsigned char getFileClass() const { return e_ident[EI_CLASS]; } 106 unsigned char getDataEncoding() const { return e_ident[EI_DAT [all...] |
/freebsd-10.1-release/sys/boot/common/ |
H A D | load_elf_obj.c | 116 if (hdr->e_ident[EI_CLASS] != ELF_TARG_CLASS || /* Layout ? */ 117 hdr->e_ident[EI_DATA] != ELF_TARG_DATA || 118 hdr->e_ident[EI_VERSION] != EV_CURRENT || /* Version ? */
|
H A D | load_elf.c | 130 if (ehdr->e_ident[EI_CLASS] != ELF_TARG_CLASS || /* Layout ? */ 131 ehdr->e_ident[EI_DATA] != ELF_TARG_DATA || 132 ehdr->e_ident[EI_VERSION] != EV_CURRENT || /* Version ? */
|
/freebsd-10.1-release/usr.sbin/kldxref/ |
H A D | ef.c | 564 if (hdr->e_ident[EI_CLASS] != ELF_TARG_CLASS || 565 hdr->e_ident[EI_DATA] != ELF_TARG_DATA || 566 hdr->e_ident[EI_VERSION] != EV_CURRENT ||
|
H A D | ef_obj.c | 367 if (hdr->e_ident[EI_CLASS] != ELF_TARG_CLASS || 368 hdr->e_ident[EI_DATA] != ELF_TARG_DATA || 369 hdr->e_ident[EI_VERSION] != EV_CURRENT ||
|
/freebsd-10.1-release/usr.sbin/crunch/crunchide/ |
H A D | exec_elf32.c | 172 data = eh.e_ident[EI_DATA]; 257 data = ehdr.e_ident[EI_DATA];
|