/freebsd-11.0-release/contrib/binutils/bfd/ |
H A D | elf32-i386-fbsd.c | 47 i_ehdrp->e_ident[EI_OSABI] = ELFOSABI_FREEBSD; 50 memcpy (&i_ehdrp->e_ident[EI_ABIVERSION], "FreeBSD", 8);
|
H A D | elf64-alpha-fbsd.c | 47 i_ehdrp->e_ident[EI_OSABI] = ELFOSABI_FREEBSD; 50 memcpy (&i_ehdrp->e_ident[EI_ABIVERSION], "FreeBSD", 8);
|
H A D | elfcore.h | 101 if (x_ehdr.e_ident[EI_CLASS] != ELFCLASS) 105 switch (x_ehdr.e_ident[EI_DATA])
|
/freebsd-11.0-release/contrib/elftoolchain/libelf/ |
H A D | gelf_ehdr.c | 67 (void) memcpy(d->e_ident, eh32->e_ident, 68 sizeof(eh32->e_ident)); 150 (void) memcpy(eh32->e_ident, s->e_ident, sizeof(eh32->e_ident));
|
H A D | libelf_ehdr.c | 88 eh->e_ident[EI_MAG0] = ELFMAG0; \ 89 eh->e_ident[EI_MAG1] = ELFMAG1; \ 90 eh->e_ident[EI_MAG2] = ELFMAG2; \ 91 eh->e_ident[EI_MAG3] = ELFMAG3; \ 92 eh->e_ident[EI_CLASS] = ELFCLASS##SZ; \ 93 eh->e_ident[EI_DATA] = ELFDATANONE; \ 94 eh->e_ident[EI_VERSION] = LIBELF_PRIVATE(version) & 0xFFU; \
|
H A D | elf_update.c | 531 eh_byteorder = eh32->e_ident[EI_DATA]; 532 eh_class = eh32->e_ident[EI_CLASS]; 537 eh_byteorder = eh64->e_ident[EI_DATA]; 538 eh_class = eh64->e_ident[EI_CLASS]; 574 (E)->e_ident[EI_MAG0] = ELFMAG0; \ 575 (E)->e_ident[EI_MAG1] = ELFMAG1; \ 576 (E)->e_ident[EI_MAG2] = ELFMAG2; \ 577 (E)->e_ident[EI_MAG3] = ELFMAG3; \ 578 (E)->e_ident[EI_CLASS] = (unsigned char) (EC); \ 579 (E)->e_ident[EI_VERSIO [all...] |
/freebsd-11.0-release/lib/libkvm/ |
H A D | kvm_minidump_mips.c | 64 if (kd->nlehdr.e_ident[EI_CLASS] != ELFCLASS32 && 65 kd->nlehdr.e_ident[EI_CLASS] != ELFCLASS64) 99 if (kd->nlehdr.e_ident[EI_CLASS] == ELFCLASS64 || 198 if (kd->nlehdr.e_ident[EI_CLASS] == ELFCLASS64) { 264 if (kd->nlehdr.e_ident[EI_CLASS] != ELFCLASS64) 267 if (kd->nlehdr.e_ident[EI_CLASS] != ELFCLASS32) 278 return (kd->nlehdr.e_ident[EI_DATA] == ELFDATA2LSB); 280 return (kd->nlehdr.e_ident[EI_DATA] == ELFDATA2MSB);
|
H A D | kvm_powerpc.c | 59 if (eh->e_ident[EI_CLASS] != ELFCLASS32) 61 if (eh->e_ident[EI_DATA] != ELFDATA2MSB) 63 if (eh->e_ident[EI_VERSION] != EV_CURRENT) 65 if (eh->e_ident[EI_OSABI] != ELFOSABI_STANDALONE) 186 kd->nlehdr.e_ident[EI_DATA] == ELFDATA2MSB);
|
H A D | kvm_powerpc64.c | 59 if (eh->e_ident[EI_CLASS] != ELFCLASS64) 61 if (eh->e_ident[EI_DATA] != ELFDATA2MSB) 63 if (eh->e_ident[EI_VERSION] != EV_CURRENT) 65 if (eh->e_ident[EI_OSABI] != ELFOSABI_STANDALONE) 187 kd->nlehdr.e_ident[EI_DATA] == ELFDATA2MSB);
|
H A D | kvm_private.h | 125 if (kd->nlehdr.e_ident[EI_DATA] == ELFDATA2LSB) 135 if (kd->nlehdr.e_ident[EI_DATA] == ELFDATA2LSB)
|
/freebsd-11.0-release/sys/kern/ |
H A D | kern_dump.c | 296 ehdr.e_ident[EI_MAG0] = ELFMAG0; 297 ehdr.e_ident[EI_MAG1] = ELFMAG1; 298 ehdr.e_ident[EI_MAG2] = ELFMAG2; 299 ehdr.e_ident[EI_MAG3] = ELFMAG3; 300 ehdr.e_ident[EI_CLASS] = ELF_CLASS; 302 ehdr.e_ident[EI_DATA] = ELFDATA2LSB; 304 ehdr.e_ident[EI_DATA] = ELFDATA2MSB; 306 ehdr.e_ident[EI_VERSION] = EV_CURRENT; 307 ehdr.e_ident[EI_OSABI] = ELFOSABI_STANDALONE; /* XXX big picture? */
|
/freebsd-11.0-release/contrib/binutils/include/elf/ |
H A D | external.h | 41 unsigned char e_ident[16]; /* ELF "magic number" */ member in struct:__anon501 58 unsigned char e_ident[16]; /* ELF "magic number" */ member in struct:__anon502
|
/freebsd-11.0-release/contrib/llvm/tools/lldb/source/Plugins/ObjectFile/ELF/ |
H A D | ELFHeader.h | 61 unsigned char e_ident[llvm::ELF::EI_NIDENT]; ///< ELF file identification. member in struct:elf::ELFHeader 84 return e_ident[llvm::ELF::EI_CLASS] == llvm::ELF::ELFCLASS32; 93 return e_ident[llvm::ELF::EI_CLASS] == llvm::ELF::ELFCLASS64;
|
/freebsd-11.0-release/contrib/elftoolchain/brandelf/ |
H A D | brandelf.c | 194 argv[0], iselftype(ehdr.e_ident[EI_OSABI]), 195 ehdr.e_ident[EI_OSABI]); 216 ehdr.e_ident[EI_OSABI] = (unsigned char) type;
|
/freebsd-11.0-release/cddl/contrib/opensolaris/tools/ctf/cvt/ |
H A D | util.c | 106 if (ehdr.e_ident[EI_CLASS] == ELFCLASS32) 108 else if (ehdr.e_ident[EI_CLASS] == ELFCLASS64) 111 terminate("unknown ELF class %d\n", ehdr.e_ident[EI_CLASS]);
|
/freebsd-11.0-release/usr.bin/elf2aout/ |
H A D | elf2aout.c | 112 if (e->e_ident[EI_CLASS] != ELFCLASS64) 114 data = e->e_ident[EI_DATA]; 117 if (e->e_ident[EI_VERSION] != EV_CURRENT)
|
/freebsd-11.0-release/sys/compat/linux/ |
H A D | linux_vdso.c | 112 ehdr->e_ident[EI_CLASS] != ELF_TARG_CLASS || 113 ehdr->e_ident[EI_DATA] != ELF_TARG_DATA || 114 ehdr->e_ident[EI_VERSION] != EV_CURRENT || 138 ehdr->e_ident[EI_OSABI] = ELFOSABI_LINUX;
|
/freebsd-11.0-release/usr.bin/ldd/ |
H A D | ldd.c | 318 hdr.elf32.e_ident[EI_CLASS] == ELFCLASS32) { 347 if (hdr.elf32.e_ident[EI_OSABI] == ELFOSABI_FREEBSD) { 360 hdr.elf.e_ident[EI_CLASS] == ELF_TARG_CLASS) { 389 switch (hdr.elf.e_ident[EI_OSABI]) {
|
/freebsd-11.0-release/cddl/contrib/opensolaris/lib/libctf/common/ |
H A D | ctf_lib.c | 143 bcopy(src->e_ident, dst->e_ident, EI_NIDENT); 276 bcmp(&hdr.e32.e_ident[EI_MAG0], ELFMAG, SELFMAG) == 0) { 288 if (hdr.e32.e_ident[EI_DATA] != order) 293 if (hdr.e32.e_ident[EI_CLASS] == ELFCLASS64) { 306 if (hdr.e32.e_ident[EI_CLASS] == ELFCLASS32) { 341 if (hdr.e32.e_ident[EI_CLASS] == ELFCLASS32) {
|
/freebsd-11.0-release/sys/dev/ksyms/ |
H A D | ksyms.c | 253 hdr->kh_ehdr.e_ident[EI_PAD] = 0; 254 hdr->kh_ehdr.e_ident[EI_MAG0] = ELFMAG0; 255 hdr->kh_ehdr.e_ident[EI_MAG1] = ELFMAG1; 256 hdr->kh_ehdr.e_ident[EI_MAG2] = ELFMAG2; 257 hdr->kh_ehdr.e_ident[EI_MAG3] = ELFMAG3; 258 hdr->kh_ehdr.e_ident[EI_DATA] = ELF_DATA; 259 hdr->kh_ehdr.e_ident[EI_OSABI] = ELFOSABI_FREEBSD; 260 hdr->kh_ehdr.e_ident[EI_CLASS] = ELF_CLASS; 261 hdr->kh_ehdr.e_ident[EI_VERSION] = EV_CURRENT; 262 hdr->kh_ehdr.e_ident[EI_ABIVERSIO [all...] |
/freebsd-11.0-release/usr.bin/elfdump/ |
H A D | elfdump.c | 95 offsetof(Elf32_Ehdr, e_ident[EI_CLASS]), 96 offsetof(Elf32_Ehdr, e_ident[EI_DATA]), 97 offsetof(Elf32_Ehdr, e_ident[EI_OSABI]), 136 offsetof(Elf32_Ehdr, e_ident[EI_CLASS]), 137 offsetof(Elf32_Ehdr, e_ident[EI_DATA]), 138 offsetof(Elf32_Ehdr, e_ident[EI_OSABI]), 1076 switch (e->e_ident[EI_CLASS]) { 1096 switch (e->e_ident[EI_CLASS]) { 1099 switch (e->e_ident[EI_DATA]) { 1112 switch (e->e_ident[EI_DAT [all...] |
/freebsd-11.0-release/contrib/file/src/ |
H A D | elfclass.h | 32 swap = (u.c[sizeof(int32_t) - 1] + 1) != elfhdr.e_ident[EI_DATA];
|
/freebsd-11.0-release/contrib/elftoolchain/elfcopy/ |
H A D | binary.c | 175 /* Initialise e_ident fields. */ 176 oeh.e_ident[EI_CLASS] = ecp->oec; 177 oeh.e_ident[EI_DATA] = ecp->oed; 182 oeh.e_ident[EI_OSABI] = ELFOSABI_NONE;
|
/freebsd-11.0-release/usr.bin/gcore/ |
H A D | elfcore.c | 143 switch (hdr.e_ident[EI_DATA]) { 431 ehdr->e_ident[EI_MAG0] = ELFMAG0; 432 ehdr->e_ident[EI_MAG1] = ELFMAG1; 433 ehdr->e_ident[EI_MAG2] = ELFMAG2; 434 ehdr->e_ident[EI_MAG3] = ELFMAG3; 435 ehdr->e_ident[EI_CLASS] = ELF_CLASS; 436 ehdr->e_ident[EI_DATA] = ELF_DATA; 437 ehdr->e_ident[EI_VERSION] = EV_CURRENT; 438 ehdr->e_ident[EI_OSABI] = ELFOSABI_FREEBSD; 439 ehdr->e_ident[EI_ABIVERSIO [all...] |
/freebsd-11.0-release/cddl/contrib/opensolaris/lib/libdtrace/common/ |
H A D | dt_link.c | 541 elf_file.ehdr.e_ident[EI_MAG0] = ELFMAG0; 542 elf_file.ehdr.e_ident[EI_MAG1] = ELFMAG1; 543 elf_file.ehdr.e_ident[EI_MAG2] = ELFMAG2; 544 elf_file.ehdr.e_ident[EI_MAG3] = ELFMAG3; 545 elf_file.ehdr.e_ident[EI_VERSION] = EV_CURRENT; 546 elf_file.ehdr.e_ident[EI_CLASS] = ELFCLASS32; 548 elf_file.ehdr.e_ident[EI_DATA] = ELFDATA2MSB; 550 elf_file.ehdr.e_ident[EI_DATA] = ELFDATA2LSB; 553 elf_file.ehdr.e_ident[EI_OSABI] = ELFOSABI_FREEBSD; 687 elf_file.ehdr.e_ident[EI_MAG [all...] |