Lines Matching refs:interp_elf_ex
269 static unsigned long load_elf_interp(struct elfhdr * interp_elf_ex, in load_elf_interp() argument
282 if (interp_elf_ex->e_type != ET_EXEC && in load_elf_interp()
283 interp_elf_ex->e_type != ET_DYN) in load_elf_interp()
285 if (!elf_check_arch(interp_elf_ex)) in load_elf_interp()
294 if (interp_elf_ex->e_phentsize != sizeof(struct elf_phdr)) in load_elf_interp()
297 if (interp_elf_ex->e_phnum < 1 || in load_elf_interp()
298 interp_elf_ex->e_phnum > 65536U / sizeof(struct elf_phdr)) in load_elf_interp()
303 size = sizeof(struct elf_phdr) * interp_elf_ex->e_phnum; in load_elf_interp()
310 retval = kernel_read(interpreter,interp_elf_ex->e_phoff,(char *)elf_phdata,size); in load_elf_interp()
319 for (i=0; i<interp_elf_ex->e_phnum; i++, eppnt++) { in load_elf_interp()
330 if (interp_elf_ex->e_type == ET_EXEC || load_addr_set) in load_elf_interp()
337 if (!load_addr_set && interp_elf_ex->e_type == ET_DYN) { in load_elf_interp()
399 error = ((unsigned long) interp_elf_ex->e_entry) + load_addr; in load_elf_interp()
483 struct elfhdr interp_elf_ex; in load_elf_binary() local
607 interp_elf_ex = *((struct elfhdr *) bprm->buf); in load_elf_binary()
623 if (memcmp(interp_elf_ex.e_ident, ELFMAG, SELFMAG) != 0) in load_elf_binary()
639 !elf_check_arch(&interp_elf_ex)) in load_elf_binary()
821 elf_entry = load_elf_interp(&interp_elf_ex, in load_elf_binary()