Searched refs:elf_ex (Results 1 – 2 of 2) sorted by relevance
32 struct elfhdr elf_ex; in load_em86() local35 elf_ex = *((struct elfhdr *)bprm->buf); in load_em86()37 if (memcmp(elf_ex.e_ident, ELFMAG, SELFMAG) != 0) in load_em86()41 if ((elf_ex.e_type != ET_EXEC && elf_ex.e_type != ET_DYN) || in load_em86()42 (!((elf_ex.e_machine == EM_386) || (elf_ex.e_machine == EM_486))) || in load_em86()
457 static struct elf_phdr *load_elf_phdrs(const struct elfhdr *elf_ex, in load_elf_phdrs() argument468 if (elf_ex->e_phentsize != sizeof(struct elf_phdr)) in load_elf_phdrs()473 size = sizeof(struct elf_phdr) * elf_ex->e_phnum; in load_elf_phdrs()482 retval = elf_read(elf_file, elf_phdata, size, elf_ex->e_phoff); in load_elf_phdrs()837 struct elfhdr *elf_ex = (struct elfhdr *)bprm->buf; in load_elf_binary() local845 if (memcmp(elf_ex->e_ident, ELFMAG, SELFMAG) != 0) in load_elf_binary()848 if (elf_ex->e_type != ET_EXEC && elf_ex->e_type != ET_DYN) in load_elf_binary()850 if (!elf_check_arch(elf_ex)) in load_elf_binary()852 if (elf_check_fdpic(elf_ex)) in load_elf_binary()857 elf_phdata = load_elf_phdrs(elf_ex, bprm->file); in load_elf_binary()[all …]