e_ident           151 arch/alpha/boot/tools/objstrip.c     if (elf->e_ident[0] == 0x7f && strncmp((char *)elf->e_ident + 1, "ELF", 3) == 0) {
e_ident           105 arch/arm/include/asm/elf.h #define elf_check_fdpic(x)  ((x)->e_ident[EI_OSABI] == ELFOSABI_ARM_FDPIC)
e_ident           153 arch/arm/vdso/vdsomunge.c 	if (memcmp(&inhdr->e_ident, ELFMAG, SELFMAG) != 0)
e_ident           156 arch/arm/vdso/vdsomunge.c 	if (inhdr->e_ident[EI_CLASS] != ELFCLASS32)
e_ident           159 arch/arm/vdso/vdsomunge.c 	swap = inhdr->e_ident[EI_DATA] != HOST_ORDER;
e_ident           315 arch/mips/boot/elf2ecoff.c 	if (ex.e_ident[EI_DATA] == ELFDATA2MSB)
e_ident           163 arch/mips/boot/tools/relocs.c 	if (ehdr.e_ident[EI_DATA] == ELFDATA2LSB)
e_ident           171 arch/mips/boot/tools/relocs.c 	if (ehdr.e_ident[EI_DATA] == ELFDATA2LSB)
e_ident           179 arch/mips/boot/tools/relocs.c 	if (ehdr.e_ident[EI_DATA] == ELFDATA2LSB)
e_ident           191 arch/mips/boot/tools/relocs.c 	if (ehdr.e_ident[EI_DATA] == ELFDATA2LSB)
e_ident           210 arch/mips/boot/tools/relocs.c 	if (memcmp(ehdr.e_ident, ELFMAG, SELFMAG) != 0)
e_ident           213 arch/mips/boot/tools/relocs.c 	if (ehdr.e_ident[EI_CLASS] != ELF_CLASS)
e_ident           216 arch/mips/boot/tools/relocs.c 	if ((ehdr.e_ident[EI_DATA] != ELFDATA2LSB) &&
e_ident           217 arch/mips/boot/tools/relocs.c 	    (ehdr.e_ident[EI_DATA] != ELFDATA2MSB))
e_ident           220 arch/mips/boot/tools/relocs.c 	if (ehdr.e_ident[EI_VERSION] != EV_CURRENT)
e_ident            35 arch/mips/boot/tools/relocs_main.c 	unsigned char e_ident[EI_NIDENT];
e_ident            75 arch/mips/boot/tools/relocs_main.c 	if (fread(&e_ident, 1, EI_NIDENT, fp) != EI_NIDENT)
e_ident            79 arch/mips/boot/tools/relocs_main.c 	if (e_ident[EI_CLASS] == ELFCLASS64)
e_ident           289 arch/mips/include/asm/elf.h 	if (__h->e_ident[EI_CLASS] != ELFCLASS32)			\
e_ident           312 arch/mips/include/asm/elf.h 	if (__h->e_ident[EI_CLASS] != ELFCLASS64)			\
e_ident           328 arch/mips/include/asm/elf.h 	if (__h->e_ident[EI_CLASS] != ELFCLASS32)			\
e_ident           414 arch/mips/include/asm/elf.h 	if ((ex).e_ident[EI_CLASS] == ELFCLASS32)			\
e_ident            90 arch/mips/kernel/elf.c 	elf32 = ehdr->e32.e_ident[EI_CLASS] == ELFCLASS32;
e_ident           150 arch/mips/kernel/elf.c 	elf32 = ehdr->e32.e_ident[EI_CLASS] == ELFCLASS32;
e_ident           172 arch/mips/kernel/elf.c 		ielf32 = iehdr->e32.e_ident[EI_CLASS] == ELFCLASS32;
e_ident           593 arch/mips/kernel/vpe.c 	if (memcmp(hdr->e_ident, ELFMAG, SELFMAG) != 0
e_ident           830 arch/mips/kernel/vpe.c 	if (memcmp(hdr->e_ident, ELFMAG, SELFMAG) == 0) {
e_ident            57 arch/mips/tools/elf-entry.c 	if (memcmp(hdr.ehdr32.e_ident, ELFMAG, SELFMAG))
e_ident            60 arch/mips/tools/elf-entry.c 	switch (hdr.ehdr32.e_ident[EI_CLASS]) {
e_ident            62 arch/mips/tools/elf-entry.c 		switch (hdr.ehdr32.e_ident[EI_DATA]) {
e_ident            78 arch/mips/tools/elf-entry.c 		switch (hdr.ehdr32.e_ident[EI_DATA]) {
e_ident           139 arch/mips/vdso/genvdso.c 	if (memcmp(ehdr->e_ident, ELFMAG, SELFMAG) != 0) {
e_ident           145 arch/mips/vdso/genvdso.c 	elf_class = ehdr->e_ident[EI_CLASS];
e_ident           156 arch/mips/vdso/genvdso.c 	switch (ehdr->e_ident[EI_DATA]) {
e_ident           159 arch/mips/vdso/genvdso.c 		need_swap = ehdr->e_ident[EI_DATA] != HOST_ORDER;
e_ident           246 arch/parisc/boot/compressed/misc.c 	if (ehdr.e_ident[EI_MAG0] != ELFMAG0 ||
e_ident           247 arch/parisc/boot/compressed/misc.c 	   ehdr.e_ident[EI_MAG1] != ELFMAG1 ||
e_ident           248 arch/parisc/boot/compressed/misc.c 	   ehdr.e_ident[EI_MAG2] != ELFMAG2 ||
e_ident           249 arch/parisc/boot/compressed/misc.c 	   ehdr.e_ident[EI_MAG3] != ELFMAG3) {
e_ident           247 arch/parisc/include/asm/elf.h 	if ((ex).e_ident[EI_CLASS] == ELFCLASS32) { \
e_ident           315 arch/parisc/include/asm/elf.h 	((x)->e_machine == EM_PARISC && (x)->e_ident[EI_CLASS] == ELF_CLASS)
e_ident           317 arch/parisc/include/asm/elf.h 	((x)->e_machine == EM_PARISC && (x)->e_ident[EI_CLASS] == ELFCLASS32)
e_ident            56 arch/powerpc/boot/elf.h 	unsigned char e_ident[EI_NIDENT];
e_ident            73 arch/powerpc/boot/elf.h 	unsigned char e_ident[16];	/* ELF "magic number" */
e_ident            20 arch/powerpc/boot/elf_util.c 	if (!(elf64->e_ident[EI_MAG0]  == ELFMAG0	&&
e_ident            21 arch/powerpc/boot/elf_util.c 	      elf64->e_ident[EI_MAG1]  == ELFMAG1	&&
e_ident            22 arch/powerpc/boot/elf_util.c 	      elf64->e_ident[EI_MAG2]  == ELFMAG2	&&
e_ident            23 arch/powerpc/boot/elf_util.c 	      elf64->e_ident[EI_MAG3]  == ELFMAG3	&&
e_ident            24 arch/powerpc/boot/elf_util.c 	      elf64->e_ident[EI_CLASS] == ELFCLASS64	&&
e_ident            26 arch/powerpc/boot/elf_util.c 	      elf64->e_ident[EI_DATA]  == ELFDATA2LSB	&&
e_ident            28 arch/powerpc/boot/elf_util.c 	      elf64->e_ident[EI_DATA]  == ELFDATA2MSB	&&
e_ident            56 arch/powerpc/boot/elf_util.c 	if (!(elf32->e_ident[EI_MAG0]  == ELFMAG0	&&
e_ident            57 arch/powerpc/boot/elf_util.c 	      elf32->e_ident[EI_MAG1]  == ELFMAG1	&&
e_ident            58 arch/powerpc/boot/elf_util.c 	      elf32->e_ident[EI_MAG2]  == ELFMAG2	&&
e_ident            59 arch/powerpc/boot/elf_util.c 	      elf32->e_ident[EI_MAG3]  == ELFMAG3	&&
e_ident            60 arch/powerpc/boot/elf_util.c 	      elf32->e_ident[EI_CLASS] == ELFCLASS32	&&
e_ident            61 arch/powerpc/boot/elf_util.c 	      elf32->e_ident[EI_DATA]  == ELFDATA2MSB	&&
e_ident            53 arch/powerpc/boot/of.c 	if (elf64->e_ident[EI_CLASS] == ELFCLASS64) {
e_ident            91 arch/powerpc/include/asm/elf.h 	if ((ex).e_ident[EI_CLASS] == ELFCLASS32)		\
e_ident           845 arch/powerpc/kernel/fadump.c 	memcpy(elf->e_ident, ELFMAG, SELFMAG);
e_ident           846 arch/powerpc/kernel/fadump.c 	elf->e_ident[EI_CLASS] = ELF_CLASS;
e_ident           847 arch/powerpc/kernel/fadump.c 	elf->e_ident[EI_DATA] = ELF_DATA;
e_ident           848 arch/powerpc/kernel/fadump.c 	elf->e_ident[EI_VERSION] = EV_CURRENT;
e_ident           849 arch/powerpc/kernel/fadump.c 	elf->e_ident[EI_OSABI] = ELF_OSABI;
e_ident           850 arch/powerpc/kernel/fadump.c 	memset(elf->e_ident+EI_PAD, 0, EI_NIDENT-EI_PAD);
e_ident          1111 arch/powerpc/kernel/prom_init.c 		.e_ident = { 0x7f, 'E', 'L', 'F',
e_ident           131 arch/powerpc/oprofile/cell/vma_map.c 	if (memcmp(ehdr.e_ident, expected, EI_PAD) != 0) {
e_ident           356 arch/powerpc/platforms/powernv/opal-core.c 	memcpy(elf->e_ident, ELFMAG, SELFMAG);
e_ident           357 arch/powerpc/platforms/powernv/opal-core.c 	elf->e_ident[EI_CLASS] = ELF_CLASS;
e_ident           358 arch/powerpc/platforms/powernv/opal-core.c 	elf->e_ident[EI_DATA] = ELFDATA2MSB;
e_ident           359 arch/powerpc/platforms/powernv/opal-core.c 	elf->e_ident[EI_VERSION] = EV_CURRENT;
e_ident           360 arch/powerpc/platforms/powernv/opal-core.c 	elf->e_ident[EI_OSABI] = ELF_OSABI;
e_ident           361 arch/powerpc/platforms/powernv/opal-core.c 	memset(elf->e_ident+EI_PAD, 0, EI_NIDENT-EI_PAD);
e_ident           156 arch/s390/include/asm/elf.h          && (x)->e_ident[EI_CLASS] == ELF_CLASS) 
e_ident           159 arch/s390/include/asm/elf.h 	 && (x)->e_ident[EI_CLASS] == ELF_CLASS)
e_ident           245 arch/s390/include/asm/elf.h 	if ((ex).e_ident[EI_CLASS] == ELFCLASS32) {		\
e_ident           515 arch/s390/kernel/crash_dump.c 	memcpy(ehdr->e_ident, ELFMAG, SELFMAG);
e_ident           516 arch/s390/kernel/crash_dump.c 	ehdr->e_ident[EI_CLASS] = ELFCLASS64;
e_ident           517 arch/s390/kernel/crash_dump.c 	ehdr->e_ident[EI_DATA] = ELFDATA2MSB;
e_ident           518 arch/s390/kernel/crash_dump.c 	ehdr->e_ident[EI_VERSION] = EV_CURRENT;
e_ident           519 arch/s390/kernel/crash_dump.c 	memset(ehdr->e_ident + EI_PAD, 0, EI_NIDENT - EI_PAD);
e_ident            80 arch/s390/kernel/kexec_elf.c 	    ehdr->e_ident[EI_CLASS] != ELFCLASS64 ||
e_ident           124 arch/s390/kernel/kexec_elf.c 	if (memcmp(ehdr->e_ident, ELFMAG, SELFMAG) != 0)
e_ident           205 arch/sparc/include/asm/elf_64.h do {	if ((ex).e_ident[EI_CLASS] == ELFCLASS32)	\
e_ident           148 arch/sparc/vdso/vdso2c.c 	if (hdr->e_ident[EI_CLASS] == ELFCLASS64) {
e_ident           151 arch/sparc/vdso/vdso2c.c 	} else if (hdr->e_ident[EI_CLASS] == ELFCLASS32) {
e_ident           283 arch/x86/boot/compressed/misc.c 	if (ehdr.e_ident[EI_MAG0] != ELFMAG0 ||
e_ident           284 arch/x86/boot/compressed/misc.c 	   ehdr.e_ident[EI_MAG1] != ELFMAG1 ||
e_ident           285 arch/x86/boot/compressed/misc.c 	   ehdr.e_ident[EI_MAG2] != ELFMAG2 ||
e_ident           286 arch/x86/boot/compressed/misc.c 	   ehdr.e_ident[EI_MAG3] != ELFMAG3) {
e_ident           170 arch/x86/entry/vdso/vdso2c.c 	if (hdr->e_ident[EI_CLASS] == ELFCLASS64) {
e_ident           173 arch/x86/entry/vdso/vdso2c.c 	} else if (hdr->e_ident[EI_CLASS] == ELFCLASS32) {
e_ident           344 arch/x86/tools/relocs.c 	if (memcmp(ehdr.e_ident, ELFMAG, SELFMAG) != 0) {
e_ident           347 arch/x86/tools/relocs.c 	if (ehdr.e_ident[EI_CLASS] != ELF_CLASS) {
e_ident           350 arch/x86/tools/relocs.c 	if (ehdr.e_ident[EI_DATA] != ELFDATA2LSB) {
e_ident           353 arch/x86/tools/relocs.c 	if (ehdr.e_ident[EI_VERSION] != EV_CURRENT) {
e_ident            26 arch/x86/tools/relocs_common.c 	unsigned char e_ident[EI_NIDENT];
e_ident            71 arch/x86/tools/relocs_common.c 	if (fread(&e_ident, 1, EI_NIDENT, fp) != EI_NIDENT) {
e_ident            75 arch/x86/tools/relocs_common.c 	if (e_ident[EI_CLASS] == ELFCLASS64)
e_ident           976 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c 	class = ehdr->e_ident[EI_CLASS];
e_ident           982 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c 	if (ehdr->e_ident[EI_DATA] != ELFDATA2LSB) {
e_ident           992 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c 	if (memcmp(ehdr->e_ident, ELFMAG, SELFMAG)) {
e_ident           999 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c 	if (ehdr->e_ident[EI_MAG0] != ELFMAG0 ||
e_ident          1000 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c 	    ehdr->e_ident[EI_MAG1] != ELFMAG1 ||
e_ident          1001 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c 	    ehdr->e_ident[EI_MAG2] != ELFMAG2 ||
e_ident          1002 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c 	    ehdr->e_ident[EI_MAG3] != ELFMAG3) {
e_ident          1593 drivers/remoteproc/remoteproc_core.c 	memcpy(ehdr->e_ident, ELFMAG, SELFMAG);
e_ident          1594 drivers/remoteproc/remoteproc_core.c 	ehdr->e_ident[EI_CLASS] = ELFCLASS32;
e_ident          1595 drivers/remoteproc/remoteproc_core.c 	ehdr->e_ident[EI_DATA] = ELFDATA2LSB;
e_ident          1596 drivers/remoteproc/remoteproc_core.c 	ehdr->e_ident[EI_VERSION] = EV_CURRENT;
e_ident          1597 drivers/remoteproc/remoteproc_core.c 	ehdr->e_ident[EI_OSABI] = ELFOSABI_NONE;
e_ident            54 drivers/remoteproc/remoteproc_elf_loader.c 	class = ehdr->e_ident[EI_CLASS];
e_ident            62 drivers/remoteproc/remoteproc_elf_loader.c 	if (ehdr->e_ident[EI_DATA] != ELFDATA2LSB) {
e_ident            64 drivers/remoteproc/remoteproc_elf_loader.c 	if (ehdr->e_ident[EI_DATA] != ELFDATA2MSB) {
e_ident            75 drivers/remoteproc/remoteproc_elf_loader.c 	if (memcmp(ehdr->e_ident, ELFMAG, SELFMAG)) {
e_ident           706 fs/binfmt_elf.c 	if (memcmp(loc->elf_ex.e_ident, ELFMAG, SELFMAG) != 0)
e_ident           808 fs/binfmt_elf.c 		if (memcmp(loc->interp_elf_ex.e_ident, ELFMAG, SELFMAG) != 0)
e_ident          1189 fs/binfmt_elf.c 	if (memcmp(elf_ex.e_ident, ELFMAG, SELFMAG) != 0)
e_ident          1431 fs/binfmt_elf.c 	memcpy(elf->e_ident, ELFMAG, SELFMAG);
e_ident          1432 fs/binfmt_elf.c 	elf->e_ident[EI_CLASS] = ELF_CLASS;
e_ident          1433 fs/binfmt_elf.c 	elf->e_ident[EI_DATA] = ELF_DATA;
e_ident          1434 fs/binfmt_elf.c 	elf->e_ident[EI_VERSION] = EV_CURRENT;
e_ident          1435 fs/binfmt_elf.c 	elf->e_ident[EI_OSABI] = ELF_OSABI;
e_ident           106 fs/binfmt_elf_fdpic.c 	if (memcmp(hdr->e_ident, ELFMAG, SELFMAG) != 0)
e_ident          1292 fs/binfmt_elf_fdpic.c 	memcpy(elf->e_ident, ELFMAG, SELFMAG);
e_ident          1293 fs/binfmt_elf_fdpic.c 	elf->e_ident[EI_CLASS] = ELF_CLASS;
e_ident          1294 fs/binfmt_elf_fdpic.c 	elf->e_ident[EI_DATA] = ELF_DATA;
e_ident          1295 fs/binfmt_elf_fdpic.c 	elf->e_ident[EI_VERSION] = EV_CURRENT;
e_ident          1296 fs/binfmt_elf_fdpic.c 	elf->e_ident[EI_OSABI] = ELF_OSABI;
e_ident          1297 fs/binfmt_elf_fdpic.c 	memset(elf->e_ident+EI_PAD, 0, EI_NIDENT-EI_PAD);
e_ident            37 fs/binfmt_em86.c 	if (memcmp(elf_ex.e_ident, ELFMAG, SELFMAG) != 0)
e_ident           335 fs/proc/kcore.c 			.e_ident = {
e_ident          1203 fs/proc/vmcore.c 	if (memcmp(ehdr.e_ident, ELFMAG, SELFMAG) != 0 ||
e_ident          1206 fs/proc/vmcore.c 		ehdr.e_ident[EI_CLASS] != ELFCLASS64 ||
e_ident          1207 fs/proc/vmcore.c 		ehdr.e_ident[EI_VERSION] != EV_CURRENT ||
e_ident          1259 fs/proc/vmcore.c 	if (memcmp(ehdr.e_ident, ELFMAG, SELFMAG) != 0 ||
e_ident          1262 fs/proc/vmcore.c 		ehdr.e_ident[EI_CLASS] != ELFCLASS32||
e_ident          1263 fs/proc/vmcore.c 		ehdr.e_ident[EI_VERSION] != EV_CURRENT ||
e_ident          1302 fs/proc/vmcore.c 	unsigned char e_ident[EI_NIDENT];
e_ident          1307 fs/proc/vmcore.c 	rc = elfcorehdr_read(e_ident, EI_NIDENT, &addr);
e_ident          1310 fs/proc/vmcore.c 	if (memcmp(e_ident, ELFMAG, SELFMAG) != 0) {
e_ident          1315 fs/proc/vmcore.c 	if (e_ident[EI_CLASS] == ELFCLASS64) {
e_ident          1319 fs/proc/vmcore.c 	} else if (e_ident[EI_CLASS] == ELFCLASS32) {
e_ident          1371 fs/proc/vmcore.c 	unsigned char *e_ident = (unsigned char *)elfptr;
e_ident          1378 fs/proc/vmcore.c 	if (e_ident[EI_CLASS] == ELFCLASS64) {
e_ident           205 include/uapi/linux/elf.h   unsigned char	e_ident[EI_NIDENT];
e_ident           222 include/uapi/linux/elf.h   unsigned char	e_ident[EI_NIDENT];	/* ELF "magic number" */
e_ident           265 kernel/bpf/stackmap.c 	if (memcmp(ehdr->e_ident, ELFMAG, SELFMAG) != 0)
e_ident           272 kernel/bpf/stackmap.c 	if (ehdr->e_ident[EI_CLASS] == ELFCLASS32)
e_ident           274 kernel/bpf/stackmap.c 	else if (ehdr->e_ident[EI_CLASS] == ELFCLASS64)
e_ident            26 kernel/kexec_elf.c 	return memcmp(ehdr->e_ident, ELFMAG, SELFMAG) == 0;
e_ident            31 kernel/kexec_elf.c 	if (ehdr->e_ident[EI_DATA] == ELFDATA2LSB)
e_ident            33 kernel/kexec_elf.c 	else if (ehdr->e_ident[EI_DATA] == ELFDATA2MSB)
e_ident            41 kernel/kexec_elf.c 	if (ehdr->e_ident[EI_DATA] == ELFDATA2LSB)
e_ident            43 kernel/kexec_elf.c 	else if (ehdr->e_ident[EI_DATA] == ELFDATA2MSB)
e_ident            51 kernel/kexec_elf.c 	if (ehdr->e_ident[EI_DATA] == ELFDATA2LSB)
e_ident            53 kernel/kexec_elf.c 	else if (ehdr->e_ident[EI_DATA] == ELFDATA2MSB)
e_ident            72 kernel/kexec_elf.c 	} else if (ehdr->e_ident[EI_VERSION] != EV_CURRENT ||
e_ident           129 kernel/kexec_elf.c 	memcpy(ehdr->e_ident, buf, sizeof(ehdr->e_ident));
e_ident           135 kernel/kexec_elf.c 	if (ehdr->e_ident[EI_CLASS] != ELF_CLASS) {
e_ident           138 kernel/kexec_elf.c 	} else  if (ehdr->e_ident[EI_DATA] != ELFDATA2LSB &&
e_ident           139 kernel/kexec_elf.c 		ehdr->e_ident[EI_DATA] != ELFDATA2MSB) {
e_ident           160 kernel/kexec_elf.c 	switch (ehdr->e_ident[EI_CLASS]) {
e_ident           218 kernel/kexec_elf.c 	switch (ehdr->e_ident[EI_CLASS]) {
e_ident          1273 kernel/kexec_file.c 	memcpy(ehdr->e_ident, ELFMAG, SELFMAG);
e_ident          1274 kernel/kexec_file.c 	ehdr->e_ident[EI_CLASS] = ELFCLASS64;
e_ident          1275 kernel/kexec_file.c 	ehdr->e_ident[EI_DATA] = ELFDATA2LSB;
e_ident          1276 kernel/kexec_file.c 	ehdr->e_ident[EI_VERSION] = EV_CURRENT;
e_ident          1277 kernel/kexec_file.c 	ehdr->e_ident[EI_OSABI] = ELF_OSABI;
e_ident          1278 kernel/kexec_file.c 	memset(ehdr->e_ident + EI_PAD, 0, EI_NIDENT - EI_PAD);
e_ident          2912 kernel/module.c 	if (memcmp(info->hdr->e_ident, ELFMAG, SELFMAG) != 0
e_ident           323 scripts/insert-sys-cert.c 	if ((hdr->e_ident[EI_MAG0] != ELFMAG0) ||
e_ident           324 scripts/insert-sys-cert.c 	    (hdr->e_ident[EI_MAG1] != ELFMAG1) ||
e_ident           325 scripts/insert-sys-cert.c 	    (hdr->e_ident[EI_MAG2] != ELFMAG2) ||
e_ident           326 scripts/insert-sys-cert.c 	    (hdr->e_ident[EI_MAG3] != ELFMAG3)) {
e_ident           331 scripts/insert-sys-cert.c 	if (hdr->e_ident[EI_CLASS] != CURRENT_ELFCLASS) {
e_ident           336 scripts/insert-sys-cert.c 	if (hdr->e_ident[EI_DATA] != endianness()) {
e_ident           505 scripts/mod/modpost.c 	if ((hdr->e_ident[EI_MAG0] != ELFMAG0) ||
e_ident           506 scripts/mod/modpost.c 	    (hdr->e_ident[EI_MAG1] != ELFMAG1) ||
e_ident           507 scripts/mod/modpost.c 	    (hdr->e_ident[EI_MAG2] != ELFMAG2) ||
e_ident           508 scripts/mod/modpost.c 	    (hdr->e_ident[EI_MAG3] != ELFMAG3)) {
e_ident           483 scripts/recordmcount.c 	switch (ehdr->e_ident[EI_DATA]) {
e_ident           487 scripts/recordmcount.c 			ehdr->e_ident[EI_DATA], fname);
e_ident           516 scripts/recordmcount.c 	if (memcmp(ELFMAG, ehdr->e_ident, SELFMAG) != 0 ||
e_ident           518 scripts/recordmcount.c 	    ehdr->e_ident[EI_VERSION] != EV_CURRENT) {
e_ident           568 scripts/recordmcount.c 	switch (ehdr->e_ident[EI_CLASS]) {
e_ident           571 scripts/recordmcount.c 			ehdr->e_ident[EI_CLASS], fname);
e_ident           274 scripts/sortextable.c 	switch (ehdr->e_ident[EI_DATA]) {
e_ident           277 scripts/sortextable.c 			ehdr->e_ident[EI_DATA], fname);
e_ident           297 scripts/sortextable.c 	if (memcmp(ELFMAG, ehdr->e_ident, SELFMAG) != 0
e_ident           299 scripts/sortextable.c 	||  ehdr->e_ident[EI_VERSION] != EV_CURRENT) {
e_ident           332 scripts/sortextable.c 	switch (ehdr->e_ident[EI_CLASS]) {
e_ident           335 scripts/sortextable.c 			ehdr->e_ident[EI_CLASS], fname);
e_ident            62 sound/pci/mixart/mixart_hwdep.c 	u8      e_ident[16];
e_ident            97 sound/pci/mixart/mixart_hwdep.c 		if ( elf32_magic_number[i] != elf_header->e_ident[i] )
e_ident           374 tools/lib/bpf/btf.c 	return ehdr->e_ident[EI_DATA] == ELFDATA2LSB;
e_ident           376 tools/lib/bpf/btf.c 	return ehdr->e_ident[EI_DATA] == ELFDATA2MSB;
e_ident           619 tools/lib/bpf/libbpf.c 	if (obj->efile.ehdr.e_ident[EI_DATA] == ELFDATA2LSB)
e_ident           622 tools/lib/bpf/libbpf.c 	if (obj->efile.ehdr.e_ident[EI_DATA] == ELFDATA2MSB)
e_ident           281 tools/perf/util/genelf.c 	ehdr->e_ident[EI_DATA] = GEN_ELF_ENDIAN;
e_ident           282 tools/perf/util/genelf.c 	ehdr->e_ident[EI_CLASS] = GEN_ELF_CLASS;
e_ident           297 tools/perf/util/probe-event.c 	if (ehdr.e_ident[EI_CLASS] == ELFCLASS32)
e_ident           746 tools/perf/util/symbol-elf.c 	if (dso__swap_init(dso, ehdr.e_ident[EI_DATA])) {
e_ident          1376 tools/perf/util/symbol-elf.c 	memcpy(ehdr->e_ident, kehdr->e_ident, EI_NIDENT);
e_ident            92 tools/perf/util/symbol-minimal.c 	u8 e_ident[EI_NIDENT];
e_ident           101 tools/perf/util/symbol-minimal.c 	if (fread(e_ident, sizeof(e_ident), 1, fp) != 1)
e_ident           104 tools/perf/util/symbol-minimal.c 	if (memcmp(e_ident, ELFMAG, SELFMAG) ||
e_ident           105 tools/perf/util/symbol-minimal.c 	    e_ident[EI_VERSION] != EV_CURRENT)
e_ident           108 tools/perf/util/symbol-minimal.c 	need_swap = check_need_swap(e_ident[EI_DATA]);
e_ident           113 tools/perf/util/symbol-minimal.c 	if (e_ident[EI_CLASS] == ELFCLASS32) {
e_ident           301 tools/perf/util/symbol-minimal.c 	u8 e_ident[EI_NIDENT];
e_ident           306 tools/perf/util/symbol-minimal.c 	if (readn(fd, e_ident, sizeof(e_ident)) != sizeof(e_ident))
e_ident           309 tools/perf/util/symbol-minimal.c 	if (memcmp(e_ident, ELFMAG, SELFMAG) ||
e_ident           310 tools/perf/util/symbol-minimal.c 	    e_ident[EI_VERSION] != EV_CURRENT)
e_ident           313 tools/perf/util/symbol-minimal.c 	return e_ident[EI_CLASS] == ELFCLASS64;
e_ident           205 tools/testing/selftests/powerpc/ptrace/core-pkey.c 	ret = memcmp(ehdr->e_ident, ELFMAG, SELFMAG);
e_ident            79 tools/testing/selftests/proc/proc-pid-vm.c 	uint8_t e_ident[16];
e_ident           162 tools/testing/selftests/proc/proc-pid-vm.c 	h.e_ident[0] = 0x7f;
e_ident           163 tools/testing/selftests/proc/proc-pid-vm.c 	h.e_ident[1] = 'E';
e_ident           164 tools/testing/selftests/proc/proc-pid-vm.c 	h.e_ident[2] = 'L';
e_ident           165 tools/testing/selftests/proc/proc-pid-vm.c 	h.e_ident[3] = 'F';
e_ident           166 tools/testing/selftests/proc/proc-pid-vm.c 	h.e_ident[4] = 2;
e_ident           167 tools/testing/selftests/proc/proc-pid-vm.c 	h.e_ident[5] = 1;
e_ident           168 tools/testing/selftests/proc/proc-pid-vm.c 	h.e_ident[6] = 1;
e_ident           169 tools/testing/selftests/proc/proc-pid-vm.c 	h.e_ident[7] = 0;
e_ident           104 tools/testing/selftests/vDSO/parse_vdso.c 	if (hdr->e_ident[EI_CLASS] !=