Home
last modified time | relevance | path

Searched refs:e_ident (Results 1 – 25 of 37) sorted by relevance

12

/arch/powerpc/boot/
A Delf_util.c20 if (!(elf64->e_ident[EI_MAG0] == ELFMAG0 && in parse_elf64()
21 elf64->e_ident[EI_MAG1] == ELFMAG1 && in parse_elf64()
22 elf64->e_ident[EI_MAG2] == ELFMAG2 && in parse_elf64()
23 elf64->e_ident[EI_MAG3] == ELFMAG3 && in parse_elf64()
24 elf64->e_ident[EI_CLASS] == ELFCLASS64 && in parse_elf64()
26 elf64->e_ident[EI_DATA] == ELFDATA2LSB && in parse_elf64()
28 elf64->e_ident[EI_DATA] == ELFDATA2MSB && in parse_elf64()
56 if (!(elf32->e_ident[EI_MAG0] == ELFMAG0 && in parse_elf32()
57 elf32->e_ident[EI_MAG1] == ELFMAG1 && in parse_elf32()
58 elf32->e_ident[EI_MAG2] == ELFMAG2 && in parse_elf32()
[all …]
A Delf.h56 unsigned char e_ident[EI_NIDENT]; member
73 unsigned char e_ident[16]; /* ELF "magic number" */ member
A Dof.c53 if (elf64->e_ident[EI_CLASS] == ELFCLASS64) { in of_image_hdr()
/arch/mips/tools/
A Delf-entry.c58 if (memcmp(hdr.ehdr32.e_ident, ELFMAG, SELFMAG)) { in main()
63 switch (hdr.ehdr32.e_ident[EI_CLASS]) { in main()
65 switch (hdr.ehdr32.e_ident[EI_DATA]) { in main()
82 switch (hdr.ehdr32.e_ident[EI_DATA]) { in main()
A Dloongson3-llsc-check.c270 if (memcmp(eh->e_ident, ELFMAG, SELFMAG)) { in main()
275 if (eh->e_ident[EI_CLASS] != ELFCLASS64) { in main()
280 if (eh->e_ident[EI_DATA] != ELFDATA2LSB) { in main()
/arch/mips/boot/tools/
A Drelocs_main.c35 unsigned char e_ident[EI_NIDENT]; in main() local
75 if (fread(&e_ident, 1, EI_NIDENT, fp) != EI_NIDENT) in main()
79 if (e_ident[EI_CLASS] == ELFCLASS64) in main()
A Drelocs.c163 if (ehdr.e_ident[EI_DATA] == ELFDATA2LSB) in elf16_to_cpu()
171 if (ehdr.e_ident[EI_DATA] == ELFDATA2LSB) in elf32_to_cpu()
179 if (ehdr.e_ident[EI_DATA] == ELFDATA2LSB) in cpu_to_elf32()
191 if (ehdr.e_ident[EI_DATA] == ELFDATA2LSB) in elf64_to_cpu()
210 if (memcmp(ehdr.e_ident, ELFMAG, SELFMAG) != 0) in read_ehdr()
213 if (ehdr.e_ident[EI_CLASS] != ELF_CLASS) in read_ehdr()
216 if ((ehdr.e_ident[EI_DATA] != ELFDATA2LSB) && in read_ehdr()
217 (ehdr.e_ident[EI_DATA] != ELFDATA2MSB)) in read_ehdr()
220 if (ehdr.e_ident[EI_VERSION] != EV_CURRENT) in read_ehdr()
/arch/x86/tools/
A Drelocs_common.c26 unsigned char e_ident[EI_NIDENT]; in main() local
71 if (fread(&e_ident, 1, EI_NIDENT, fp) != EI_NIDENT) { in main()
75 if (e_ident[EI_CLASS] == ELFCLASS64) in main()
/arch/arm64/kvm/hyp/nvhe/
A Dgen-hyprel.c283 assert_eq(elf.ehdr->e_ident[EI_MAG0], ELFMAG0, "0x%x"); in init_elf()
284 assert_eq(elf.ehdr->e_ident[EI_MAG1], ELFMAG1, "0x%x"); in init_elf()
285 assert_eq(elf.ehdr->e_ident[EI_MAG2], ELFMAG2, "0x%x"); in init_elf()
286 assert_eq(elf.ehdr->e_ident[EI_MAG3], ELFMAG3, "0x%x"); in init_elf()
289 assert_eq(elf.ehdr->e_ident[EI_CLASS], ELFCLASS64, "%u"); in init_elf()
290 assert_eq(elf.ehdr->e_ident[EI_DATA], ELFENDIAN, "%u"); in init_elf()
/arch/s390/tools/
A Drelocs.c82 if (ehdr.e_ident[EI_DATA] == ELFDATA2LSB) in elf16_to_cpu()
90 if (ehdr.e_ident[EI_DATA] == ELFDATA2LSB) in elf32_to_cpu()
122 if (memcmp(ehdr.e_ident, ELFMAG, SELFMAG) != 0) in read_ehdr()
124 if (ehdr.e_ident[EI_CLASS] != ELF_CLASS) in read_ehdr()
126 if (ehdr.e_ident[EI_DATA] != ELF_ENDIAN) in read_ehdr()
128 if (ehdr.e_ident[EI_VERSION] != EV_CURRENT) in read_ehdr()
363 unsigned char e_ident[EI_NIDENT]; in main() local
378 if (fread(&e_ident, 1, EI_NIDENT, fp) != EI_NIDENT) in main()
/arch/parisc/boot/compressed/
A Dmisc.c246 if (ehdr.e_ident[EI_MAG0] != ELFMAG0 || in parse_elf()
247 ehdr.e_ident[EI_MAG1] != ELFMAG1 || in parse_elf()
248 ehdr.e_ident[EI_MAG2] != ELFMAG2 || in parse_elf()
249 ehdr.e_ident[EI_MAG3] != ELFMAG3) { in parse_elf()
/arch/mips/vdso/
A Dgenvdso.c141 if (memcmp(ehdr->e_ident, ELFMAG, SELFMAG) != 0) { in map_vdso()
148 elf_class = ehdr->e_ident[EI_CLASS]; in map_vdso()
160 switch (ehdr->e_ident[EI_DATA]) { in map_vdso()
163 need_swap = ehdr->e_ident[EI_DATA] != HOST_ORDER; in map_vdso()
/arch/arm/vdso/
A Dvdsomunge.c153 if (memcmp(&inhdr->e_ident, ELFMAG, SELFMAG) != 0) in main()
156 if (inhdr->e_ident[EI_CLASS] != ELFCLASS32) in main()
159 swap = inhdr->e_ident[EI_DATA] != HOST_ORDER; in main()
/arch/s390/include/asm/
A Delf.h185 && (x)->e_ident[EI_CLASS] == ELF_CLASS)
188 && (x)->e_ident[EI_CLASS] == ELF_CLASS)
240 if ((ex).e_ident[EI_CLASS] == ELFCLASS32) { \
/arch/riscv/include/asm/
A Delf.h38 ((x)->e_ident[EI_CLASS] == ELF_CLASS))
138 do { set_compat_task((ex).e_ident[EI_CLASS] == ELFCLASS32); \
/arch/x86/boot/compressed/
A Dmisc.c294 if (ehdr.e_ident[EI_MAG0] != ELFMAG0 || in parse_elf()
295 ehdr.e_ident[EI_MAG1] != ELFMAG1 || in parse_elf()
296 ehdr.e_ident[EI_MAG2] != ELFMAG2 || in parse_elf()
297 ehdr.e_ident[EI_MAG3] != ELFMAG3) in parse_elf()
/arch/parisc/include/asm/
A Delf.h246 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)
/arch/mips/kernel/
A Delf.c91 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()
/arch/s390/kernel/
A Dkexec_elf.c82 ehdr->e_ident[EI_CLASS] != ELFCLASS64 || in s390_elf_load()
126 if (memcmp(ehdr->e_ident, ELFMAG, SELFMAG) != 0) in s390_elf_probe()
A Dcrash_dump.c451 memcpy(ehdr->e_ident, ELFMAG, SELFMAG); in ehdr_init()
452 ehdr->e_ident[EI_CLASS] = ELFCLASS64; in ehdr_init()
453 ehdr->e_ident[EI_DATA] = ELFDATA2MSB; in ehdr_init()
454 ehdr->e_ident[EI_VERSION] = EV_CURRENT; in ehdr_init()
455 memset(ehdr->e_ident + EI_PAD, 0, EI_NIDENT - EI_PAD); in ehdr_init()
/arch/powerpc/platforms/powernv/
A Dopal-core.c359 memcpy(elf->e_ident, ELFMAG, SELFMAG); in create_opalcore()
360 elf->e_ident[EI_CLASS] = ELF_CLASS; in create_opalcore()
361 elf->e_ident[EI_DATA] = ELFDATA2MSB; in create_opalcore()
362 elf->e_ident[EI_VERSION] = EV_CURRENT; in create_opalcore()
363 elf->e_ident[EI_OSABI] = ELF_OSABI; in create_opalcore()
364 memset(elf->e_ident+EI_PAD, 0, EI_NIDENT-EI_PAD); in create_opalcore()
/arch/x86/entry/vdso/
A Dvdso2c.c154 if (hdr->e_ident[EI_CLASS] == ELFCLASS64) { in go()
157 } else if (hdr->e_ident[EI_CLASS] == ELFCLASS32) { in go()
/arch/sparc/vdso/
A Dvdso2c.c148 if (hdr->e_ident[EI_CLASS] == ELFCLASS64) { in go()
151 } else if (hdr->e_ident[EI_CLASS] == ELFCLASS32) { in go()
/arch/mips/include/asm/
A Delf.h287 if (__h->e_ident[EI_CLASS] != ELFCLASS32) \
315 if (__h->e_ident[EI_CLASS] != ELFCLASS64) \
399 if ((ex).e_ident[EI_CLASS] == ELFCLASS32) \
/arch/loongarch/include/asm/
A Delf.h216 if (__h->e_ident[EI_CLASS] != ELFCLASS32) \
232 if (__h->e_ident[EI_CLASS] != ELFCLASS64) \

Completed in 41 milliseconds

12