Searched refs:e_ident (Results 26 - 50 of 71) sorted by relevance

123

/freebsd-10.1-release/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_link.c521 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 Delf_update.c428 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 Delf_types.m4108 ``e_ident, IDENT',
125 ``e_ident, IDENT',
/freebsd-10.1-release/contrib/llvm/tools/lldb/source/Plugins/ObjectFile/ELF/
H A DELFHeader.cpp100 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 DObjectFileELF.cpp510 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 Dnlist.c222 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 Delfcode.h235 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 Dfbsd-proc.c131 i_ehdrp->e_ident[EI_OSABI] = ELFOSABI_FREEBSD;
H A Dosabi.c522 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 Dreadelf.h57 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 DELFDumper.cpp444 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 Dmap_object.c322 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 Dinternal.h42 #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 DELFTypes.h410 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 Dimgact_elf.c293 (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 Dlink_elf_obj.c240 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 Delf32.h56 unsigned char e_ident[EI_NIDENT]; /* File identification. */ member in struct:__anon11349
H A Delf64.h65 unsigned char e_ident[EI_NIDENT]; /* File identification. */ member in struct:__anon11365
H A Delf_common.h63 /* 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 DELF.h48 // 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 Dload_elf_obj.c116 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 Dload_elf.c130 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 Def.c564 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 Def_obj.c367 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 Dexec_elf32.c172 data = eh.e_ident[EI_DATA];
257 data = ehdr.e_ident[EI_DATA];

Completed in 189 milliseconds

123