| /linux/scripts/ |
| H A D | elf-parse.c | 93 switch (ehdr->e32.e_ident[EI_CLASS]) { in elf_parse() 157 ehdr->e32.e_ident[EI_CLASS], fname); in elf_parse() 174 return ehdr->e32.e_ident[EI_CLASS] == ELFCLASS32 ? 4 : 8; in elf_map_long_size()
|
| H A D | recordmcount.c | 610 switch (ehdr->e_ident[EI_CLASS]) { in do_file() 613 ehdr->e_ident[EI_CLASS], fname); in do_file()
|
| /linux/arch/powerpc/boot/ |
| H A D | elf_util.c | 24 elf64->e_ident[EI_CLASS] == ELFCLASS64 && in parse_elf64() 60 elf32->e_ident[EI_CLASS] == ELFCLASS32 && in parse_elf32()
|
| H A D | of.c | 53 if (elf64->e_ident[EI_CLASS] == ELFCLASS64) { in of_image_hdr()
|
| H A D | addnote.c | 102 #define EI_CLASS 4 macro 143 e_class = buf[E_IDENT+EI_CLASS]; in main()
|
| H A D | elf.h | 121 #define EI_CLASS 4 macro
|
| /linux/arch/riscv/include/asm/ |
| H A D | elf.h | 38 ((x)->e_ident[EI_CLASS] == ELF_CLASS)) 138 do { set_compat_task((ex).e_ident[EI_CLASS] == ELFCLASS32); \
|
| /linux/arch/parisc/include/asm/ |
| H A D | elf.h | 246 if ((ex).e_ident[EI_CLASS] == ELFCLASS32) { \ 311 ((x)->e_machine == EM_PARISC && (x)->e_ident[EI_CLASS] == ELF_CLASS) 313 ((x)->e_machine == EM_PARISC && (x)->e_ident[EI_CLASS] == ELFCLASS32)
|
| /linux/arch/mips/kernel/ |
| H A D | elf.c | 91 elf32 = ehdr->e32.e_ident[EI_CLASS] == ELFCLASS32; in arch_elf_pt_proc() 151 elf32 = ehdr->e32.e_ident[EI_CLASS] == ELFCLASS32; in arch_check_elf() 173 ielf32 = iehdr->e32.e_ident[EI_CLASS] == ELFCLASS32; in arch_check_elf()
|
| /linux/tools/testing/selftests/kvm/lib/ |
| H A D | elf.c | 44 TEST_ASSERT(ident[EI_CLASS] == ELFCLASS64, in elfhdr_get() 50 ident[EI_CLASS], ELFCLASS64); in elfhdr_get()
|
| /linux/drivers/remoteproc/ |
| H A D | remoteproc_elf_helpers.h | 27 return ehdr->e_ident[EI_CLASS]; in fw_elf_get_class() 33 hdr->e_ident[EI_CLASS] = class; in elf_hdr_init_ident()
|
| /linux/scripts/mod/ |
| H A D | mk_elfconfig.c | 20 switch (ei[EI_CLASS]) { in main()
|
| /linux/arch/sparc/vdso/ |
| H A D | vdso2c.c | 148 if (hdr->e_ident[EI_CLASS] == ELFCLASS64) { in go() 151 } else if (hdr->e_ident[EI_CLASS] == ELFCLASS32) { in go()
|
| /linux/arch/mips/include/asm/ |
| H A D | elf.h | 287 if (__h->e_ident[EI_CLASS] != ELFCLASS32) \ 315 if (__h->e_ident[EI_CLASS] != ELFCLASS64) \ 399 if ((ex).e_ident[EI_CLASS] == ELFCLASS32) \
|
| /linux/arch/loongarch/include/asm/ |
| H A D | elf.h | 247 if (__h->e_ident[EI_CLASS] != ELFCLASS32) \ 263 if (__h->e_ident[EI_CLASS] != ELFCLASS64) \
|
| /linux/arch/mips/boot/tools/ |
| H A D | relocs_main.c | 79 if (e_ident[EI_CLASS] == ELFCLASS64) in main()
|
| /linux/arch/x86/tools/ |
| H A D | relocs_common.c | 75 if (e_ident[EI_CLASS] == ELFCLASS64) in main()
|
| /linux/arch/mips/tools/ |
| H A D | elf-entry.c | 63 switch (hdr.ehdr32.e_ident[EI_CLASS]) { in main()
|
| H A D | loongson3-llsc-check.c | 275 if (eh->e_ident[EI_CLASS] != ELFCLASS64) { in main()
|
| /linux/tools/perf/util/ |
| H A D | symbol-minimal.c | 124 elf32 = hdrs.ehdr32.e_ident[EI_CLASS] == ELFCLASS32; in filename__read_build_id() 297 return e_ident[EI_CLASS] == ELFCLASS64; in fd__is_64_bit()
|
| /linux/lib/ |
| H A D | buildid.c | 313 if (ehdr->e_ident[EI_CLASS] == ELFCLASS32) in __build_id_parse() 315 else if (ehdr->e_ident[EI_CLASS] == ELFCLASS64) in __build_id_parse()
|
| /linux/fs/proc/ |
| H A D | vmcore.c | 1230 ehdr.e_ident[EI_CLASS] != ELFCLASS64 || in parse_crash_elf64_headers() 1286 ehdr.e_ident[EI_CLASS] != ELFCLASS32|| in parse_crash_elf32_headers() 1339 if (e_ident[EI_CLASS] == ELFCLASS64) { in parse_crash_elf_headers() 1343 } else if (e_ident[EI_CLASS] == ELFCLASS32) { in parse_crash_elf_headers() 1401 if (e_ident[EI_CLASS] == ELFCLASS64) { in vmcoredd_update_program_headers() 1655 if (WARN_ON_ONCE(e_ident[EI_CLASS] != ELFCLASS64)) { in vmcore_process_device_ram()
|
| /linux/arch/powerpc/include/asm/ |
| H A D | elf.h | 89 if ((ex).e_ident[EI_CLASS] == ELFCLASS32) \
|
| /linux/arch/s390/kernel/ |
| H A D | kexec_elf.c | 82 ehdr->e_ident[EI_CLASS] != ELFCLASS64 || in s390_elf_load()
|
| /linux/arch/arm/vdso/ |
| H A D | vdsomunge.c | 156 if (inhdr->e_ident[EI_CLASS] != ELFCLASS32) in main()
|