Searched refs:elf_ex (Results 1 – 2 of 2) sorted by relevance
30 struct elfhdr elf_ex; in load_em86() local33 elf_ex = *((struct elfhdr *)bprm->buf); in load_em86()35 if (memcmp(elf_ex.e_ident, ELFMAG, SELFMAG) != 0) in load_em86()39 if ((elf_ex.e_type != ET_EXEC && elf_ex.e_type != ET_DYN) || in load_em86()40 (!((elf_ex.e_machine == EM_386) || (elf_ex.e_machine == EM_486))) || in load_em86()
574 struct elfhdr elf_ex; in load_elf_binary() member585 loc->elf_ex = *((struct elfhdr *)bprm->buf); in load_elf_binary()589 if (memcmp(loc->elf_ex.e_ident, ELFMAG, SELFMAG) != 0) in load_elf_binary()592 if (loc->elf_ex.e_type != ET_EXEC && loc->elf_ex.e_type != ET_DYN) in load_elf_binary()594 if (!elf_check_arch(&loc->elf_ex)) in load_elf_binary()600 if (loc->elf_ex.e_phentsize != sizeof(struct elf_phdr)) in load_elf_binary()602 if (loc->elf_ex.e_phnum < 1 || in load_elf_binary()603 loc->elf_ex.e_phnum > 65536U / sizeof(struct elf_phdr)) in load_elf_binary()605 size = loc->elf_ex.e_phnum * sizeof(struct elf_phdr); in load_elf_binary()611 retval = kernel_read(bprm->file, loc->elf_ex.e_phoff, in load_elf_binary()[all …]