Lines Matching refs:ehdr
20 const Elf_Ehdr *ehdr; in kexec_file_add_kernel_elf() local
27 ehdr = (Elf_Ehdr *)kernel; in kexec_file_add_kernel_elf()
32 entry = ehdr->e_entry; in kexec_file_add_kernel_elf()
34 phdr = (void *)ehdr + ehdr->e_phoff; in kexec_file_add_kernel_elf()
35 for (i = 0; i < ehdr->e_phnum; i++, phdr++) { in kexec_file_add_kernel_elf()
71 const Elf_Ehdr *ehdr; in s390_elf_load() local
77 ehdr = (Elf_Ehdr *)kernel; in s390_elf_load()
79 if (ehdr->e_type != ET_EXEC || in s390_elf_load()
80 ehdr->e_ident[EI_CLASS] != ELFCLASS64 || in s390_elf_load()
81 !elf_check_arch(ehdr)) in s390_elf_load()
84 if (!ehdr->e_phnum || ehdr->e_phentsize != sizeof(Elf_Phdr)) in s390_elf_load()
87 size = ehdr->e_ehsize + ehdr->e_phoff; in s390_elf_load()
88 size += ehdr->e_phentsize * ehdr->e_phnum; in s390_elf_load()
92 phdr = (void *)ehdr + ehdr->e_phoff; in s390_elf_load()
94 for (i = 0; i < ehdr->e_phnum; i++, phdr++) { in s390_elf_load()
112 const Elf_Ehdr *ehdr; in s390_elf_probe() local
117 ehdr = (Elf_Ehdr *)buf; in s390_elf_probe()
124 if (memcmp(ehdr->e_ident, ELFMAG, SELFMAG) != 0) in s390_elf_probe()