/freebsd-13-stable/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 | 93 eh->e_ident[EI_MAG0] = ELFMAG0; \ 94 eh->e_ident[EI_MAG1] = ELFMAG1; \ 95 eh->e_ident[EI_MAG2] = ELFMAG2; \ 96 eh->e_ident[EI_MAG3] = ELFMAG3; \ 97 eh->e_ident[EI_CLASS] = ELFCLASS##SZ; \ 98 eh->e_ident[EI_DATA] = ELFDATANONE; \ 99 eh->e_ident[EI_VERSION] = LIBELF_PRIVATE(version) & 0xFFU; \
|
H A D | gelf_mips64el.c | 38 e->e_u.e_elf.e_ehdr.e_ehdr64->e_ident[EI_DATA] == ELFDATA2LSB);
|
H A D | elf_update.c | 537 eh_byteorder = eh32->e_ident[EI_DATA]; 538 eh_class = eh32->e_ident[EI_CLASS]; 543 eh_byteorder = eh64->e_ident[EI_DATA]; 544 eh_class = eh64->e_ident[EI_CLASS]; 580 (E)->e_ident[EI_MAG0] = ELFMAG0; \ 581 (E)->e_ident[EI_MAG1] = ELFMAG1; \ 582 (E)->e_ident[EI_MAG2] = ELFMAG2; \ 583 (E)->e_ident[EI_MAG3] = ELFMAG3; \ 584 (E)->e_ident[EI_CLASS] = (unsigned char) (EC); \ 585 (E)->e_ident[EI_VERSIO [all...] |
/freebsd-13-stable/lib/libkvm/ |
H A D | kvm_powerpc64.c | 61 if (eh->e_ident[EI_CLASS] != ELFCLASS64) 63 if (eh->e_ident[EI_DATA] != ELFDATA2MSB && 64 eh->e_ident[EI_DATA] != ELFDATA2LSB) 66 if (eh->e_ident[EI_VERSION] != EV_CURRENT) 68 if (eh->e_ident[EI_OSABI] != ELFOSABI_STANDALONE) 193 kd->nlehdr.e_ident[EI_DATA] == ELFDATA2MSB); 201 kd->nlehdr.e_ident[EI_DATA] == ELFDATA2LSB);
|
H A D | kvm_minidump_mips.c | 67 if (kd->nlehdr.e_ident[EI_CLASS] != ELFCLASS32 && 68 kd->nlehdr.e_ident[EI_CLASS] != ELFCLASS64) 98 if (kd->nlehdr.e_ident[EI_CLASS] == ELFCLASS64 || 173 if (kd->nlehdr.e_ident[EI_CLASS] == ELFCLASS64) { 252 if (kd->nlehdr.e_ident[EI_CLASS] != ELFCLASS64) 255 if (kd->nlehdr.e_ident[EI_CLASS] != ELFCLASS32) 266 return (kd->nlehdr.e_ident[EI_DATA] == ELFDATA2LSB); 268 return (kd->nlehdr.e_ident[EI_DATA] == ELFDATA2MSB); 344 if (kd->nlehdr.e_ident[EI_CLASS] == ELFCLASS64) {
|
H A D | kvm_powerpc.c | 61 if (eh->e_ident[EI_CLASS] != ELFCLASS32) 63 if (eh->e_ident[EI_DATA] != ELFDATA2MSB) 65 if (eh->e_ident[EI_VERSION] != EV_CURRENT) 67 if (eh->e_ident[EI_OSABI] != ELFOSABI_STANDALONE) 188 kd->nlehdr.e_ident[EI_DATA] == ELFDATA2MSB);
|
H A D | kvm_private.h | 140 if (kd->nlehdr.e_ident[EI_DATA] == ELFDATA2LSB) 150 if (kd->nlehdr.e_ident[EI_DATA] == ELFDATA2LSB) 160 if (kd->nlehdr.e_ident[EI_DATA] == ELFDATA2LSB)
|
H A D | kvm_arm.c | 263 return (kd->nlehdr.e_ident[EI_DATA] == ELFDATA2LSB); 265 return (kd->nlehdr.e_ident[EI_DATA] == ELFDATA2MSB);
|
/freebsd-13-stable/sys/kern/ |
H A D | kern_dump.c | 299 ehdr.e_ident[EI_MAG0] = ELFMAG0; 300 ehdr.e_ident[EI_MAG1] = ELFMAG1; 301 ehdr.e_ident[EI_MAG2] = ELFMAG2; 302 ehdr.e_ident[EI_MAG3] = ELFMAG3; 303 ehdr.e_ident[EI_CLASS] = ELF_CLASS; 305 ehdr.e_ident[EI_DATA] = ELFDATA2LSB; 307 ehdr.e_ident[EI_DATA] = ELFDATA2MSB; 309 ehdr.e_ident[EI_VERSION] = EV_CURRENT; 310 ehdr.e_ident[EI_OSABI] = ELFOSABI_STANDALONE; /* XXX big picture? */
|
/freebsd-13-stable/contrib/llvm-project/lldb/source/Plugins/ObjectFile/ELF/ |
H A D | ELFHeader.h | 57 unsigned char e_ident[llvm::ELF::EI_NIDENT]; ///< ELF file identification. member in struct:elf::ELFHeader 86 return e_ident[llvm::ELF::EI_CLASS] == llvm::ELF::ELFCLASS32; 94 return e_ident[llvm::ELF::EI_CLASS] == llvm::ELF::ELFCLASS64;
|
H A D | ELFHeader.cpp | 74 if (e_ident[EI_DATA] == ELFDATA2MSB) 76 if (e_ident[EI_DATA] == ELFDATA2LSB) 116 // Read e_ident. This provides byte order and address size info. 117 if (data.GetU8(offset, &e_ident, EI_NIDENT) == nullptr)
|
/freebsd-13-stable/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-13-stable/cddl/contrib/opensolaris/tools/ctf/cvt/ |
H A D | util.c | 107 if (ehdr.e_ident[EI_CLASS] == ELFCLASS32) 109 else if (ehdr.e_ident[EI_CLASS] == ELFCLASS64) 112 terminate("unknown ELF class %d\n", ehdr.e_ident[EI_CLASS]);
|
/freebsd-13-stable/sys/compat/linux/ |
H A D | linux_vdso.c | 116 ehdr->e_ident[EI_CLASS] != ELF_TARG_CLASS || 117 ehdr->e_ident[EI_DATA] != ELF_TARG_DATA || 118 ehdr->e_ident[EI_VERSION] != EV_CURRENT || 142 ehdr->e_ident[EI_OSABI] = ELFOSABI_LINUX;
|
/freebsd-13-stable/cddl/contrib/opensolaris/lib/libctf/common/ |
H A D | ctf_lib.c | 144 bcopy(src->e_ident, dst->e_ident, EI_NIDENT); 277 bcmp(&hdr.e32.e_ident[EI_MAG0], ELFMAG, SELFMAG) == 0) { 289 if (hdr.e32.e_ident[EI_DATA] != order) 294 if (hdr.e32.e_ident[EI_CLASS] == ELFCLASS64) { 307 if (hdr.e32.e_ident[EI_CLASS] == ELFCLASS32) { 342 if (hdr.e32.e_ident[EI_CLASS] == ELFCLASS32) {
|
/freebsd-13-stable/sys/dev/ksyms/ |
H A D | ksyms.c | 280 hdr->kh_ehdr.e_ident[EI_PAD] = 0; 281 hdr->kh_ehdr.e_ident[EI_MAG0] = ELFMAG0; 282 hdr->kh_ehdr.e_ident[EI_MAG1] = ELFMAG1; 283 hdr->kh_ehdr.e_ident[EI_MAG2] = ELFMAG2; 284 hdr->kh_ehdr.e_ident[EI_MAG3] = ELFMAG3; 285 hdr->kh_ehdr.e_ident[EI_DATA] = ELF_DATA; 286 hdr->kh_ehdr.e_ident[EI_OSABI] = ELFOSABI_FREEBSD; 287 hdr->kh_ehdr.e_ident[EI_CLASS] = ELF_CLASS; 288 hdr->kh_ehdr.e_ident[EI_VERSION] = EV_CURRENT; 289 hdr->kh_ehdr.e_ident[EI_ABIVERSIO [all...] |
/freebsd-13-stable/usr.bin/elfdump/ |
H A D | elfdump.c | 99 offsetof(Elf32_Ehdr, e_ident[EI_CLASS]), 100 offsetof(Elf32_Ehdr, e_ident[EI_DATA]), 101 offsetof(Elf32_Ehdr, e_ident[EI_OSABI]), 140 offsetof(Elf32_Ehdr, e_ident[EI_CLASS]), 141 offsetof(Elf32_Ehdr, e_ident[EI_DATA]), 142 offsetof(Elf32_Ehdr, e_ident[EI_OSABI]), 1103 switch (e->e_ident[EI_CLASS]) { 1123 switch (e->e_ident[EI_CLASS]) { 1126 switch (e->e_ident[EI_DATA]) { 1139 switch (e->e_ident[EI_DAT [all...] |
/freebsd-13-stable/contrib/file/src/ |
H A D | elfclass.h | 32 swap = (u.c[sizeof(int32_t) - 1] + 1) != elfhdr.e_ident[EI_DATA];
|
/freebsd-13-stable/usr.bin/ldd/ |
H A D | ldd.c | 296 if (gelf_xlatetom(elf, &dst, &src, ehdr->e_ident[EI_DATA]) == NULL) { 370 if (gelf_xlatetom(elf, &dst, &src, ehdr->e_ident[EI_DATA]) == NULL) { 432 freebsd = ehdr.e_ident[EI_OSABI] == ELFOSABI_FREEBSD; 441 if (ehdr.e_ident[EI_OSABI] == ELFOSABI_NONE && !freebsd)
|
/freebsd-13-stable/lib/libc/gen/ |
H A D | nlist.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] == ELF_TARG_VER) {
|
/freebsd-13-stable/contrib/elftoolchain/elfcopy/ |
H A D | binary.c | 179 /* Initialise e_ident fields. */ 180 oeh.e_ident[EI_CLASS] = ecp->oec; 181 oeh.e_ident[EI_DATA] = ecp->oed; 186 oeh.e_ident[EI_OSABI] = ELFOSABI_NONE;
|
/freebsd-13-stable/usr.bin/gcore/ |
H A D | elfcore.c | 161 switch (hdr.e_ident[EI_DATA]) { 466 ehdr->e_ident[EI_MAG0] = ELFMAG0; 467 ehdr->e_ident[EI_MAG1] = ELFMAG1; 468 ehdr->e_ident[EI_MAG2] = ELFMAG2; 469 ehdr->e_ident[EI_MAG3] = ELFMAG3; 470 ehdr->e_ident[EI_CLASS] = ELF_CLASS; 471 ehdr->e_ident[EI_DATA] = ELF_DATA; 472 ehdr->e_ident[EI_VERSION] = EV_CURRENT; 473 ehdr->e_ident[EI_OSABI] = ELFOSABI_FREEBSD; 474 ehdr->e_ident[EI_ABIVERSIO [all...] |
/freebsd-13-stable/cddl/contrib/opensolaris/lib/libdtrace/common/ |
H A D | dt_link.c | 492 elf_file.ehdr.e_ident[EI_MAG0] = ELFMAG0; 493 elf_file.ehdr.e_ident[EI_MAG1] = ELFMAG1; 494 elf_file.ehdr.e_ident[EI_MAG2] = ELFMAG2; 495 elf_file.ehdr.e_ident[EI_MAG3] = ELFMAG3; 496 elf_file.ehdr.e_ident[EI_VERSION] = EV_CURRENT; 497 elf_file.ehdr.e_ident[EI_CLASS] = ELFCLASS32; 499 elf_file.ehdr.e_ident[EI_DATA] = ELFDATA2MSB; 501 elf_file.ehdr.e_ident[EI_DATA] = ELFDATA2LSB; 503 elf_file.ehdr.e_ident[EI_OSABI] = ELFOSABI_FREEBSD; 632 elf_file.ehdr.e_ident[EI_MAG [all...] |
/freebsd-13-stable/contrib/elftoolchain/libdwarf/ |
H A D | libdwarf_elf_access.c | 76 switch (e->eo_ehdr.e_ident[EI_DATA]) {
|