Lines Matching refs:elf_ex
460 static struct elf_phdr *load_elf_phdrs(const struct elfhdr *elf_ex, in load_elf_phdrs() argument
471 if (elf_ex->e_phentsize != sizeof(struct elf_phdr)) in load_elf_phdrs()
476 size = sizeof(struct elf_phdr) * elf_ex->e_phnum; in load_elf_phdrs()
485 retval = elf_read(elf_file, elf_phdata, size, elf_ex->e_phoff); in load_elf_phdrs()
840 struct elfhdr *elf_ex = (struct elfhdr *)bprm->buf; in load_elf_binary() local
848 if (memcmp(elf_ex->e_ident, ELFMAG, SELFMAG) != 0) in load_elf_binary()
851 if (elf_ex->e_type != ET_EXEC && elf_ex->e_type != ET_DYN) in load_elf_binary()
853 if (!elf_check_arch(elf_ex)) in load_elf_binary()
855 if (elf_check_fdpic(elf_ex)) in load_elf_binary()
860 elf_phdata = load_elf_phdrs(elf_ex, bprm->file); in load_elf_binary()
865 for (i = 0; i < elf_ex->e_phnum; i++, elf_ppnt++) { in load_elf_binary()
930 for (i = 0; i < elf_ex->e_phnum; i++, elf_ppnt++) in load_elf_binary()
940 retval = arch_elf_pt_proc(elf_ex, elf_ppnt, in load_elf_binary()
994 retval = arch_check_elf(elf_ex, in load_elf_binary()
1007 SET_PERSONALITY2(*elf_ex, &arch_state); in load_elf_binary()
1008 if (elf_read_implies_exec(*elf_ex, executable_stack)) in load_elf_binary()
1034 i < elf_ex->e_phnum; i++, elf_ppnt++) { in load_elf_binary()
1080 if (elf_ex->e_type == ET_EXEC || load_addr_set) { in load_elf_binary()
1082 } else if (elf_ex->e_type == ET_DYN) { in load_elf_binary()
1117 alignment = maximum_alignment(elf_phdata, elf_ex->e_phnum); in load_elf_binary()
1134 elf_ex->e_phnum); in load_elf_binary()
1152 if (elf_ex->e_type == ET_DYN) { in load_elf_binary()
1193 e_entry = elf_ex->e_entry + load_bias; in load_elf_binary()
1252 retval = ARCH_SETUP_ADDITIONAL_PAGES(bprm, elf_ex, !!interpreter); in load_elf_binary()
1257 retval = create_elf_tables(bprm, elf_ex, in load_elf_binary()
1278 elf_ex->e_type == ET_DYN && !interpreter) { in load_elf_binary()
1313 START_THREAD(elf_ex, regs, elf_entry, bprm->p); in load_elf_binary()
1339 struct elfhdr elf_ex; in load_elf_library() local
1342 retval = elf_read(file, &elf_ex, sizeof(elf_ex), 0); in load_elf_library()
1346 if (memcmp(elf_ex.e_ident, ELFMAG, SELFMAG) != 0) in load_elf_library()
1350 if (elf_ex.e_type != ET_EXEC || elf_ex.e_phnum > 2 || in load_elf_library()
1351 !elf_check_arch(&elf_ex) || !file->f_op->mmap) in load_elf_library()
1353 if (elf_check_fdpic(&elf_ex)) in load_elf_library()
1358 j = sizeof(struct elf_phdr) * elf_ex.e_phnum; in load_elf_library()
1368 retval = elf_read(file, eppnt, j, elf_ex.e_phoff); in load_elf_library()
1372 for (j = 0, i = 0; i<elf_ex.e_phnum; i++) in load_elf_library()