Lines Matching refs:elf_ppnt
679 struct elf_phdr *elf_ppnt, *elf_phdata, *interp_elf_phdata = NULL; in load_elf_binary() local
722 elf_ppnt = elf_phdata; in load_elf_binary()
723 for (i = 0; i < loc->elf_ex.e_phnum; i++, elf_ppnt++) { in load_elf_binary()
727 if (elf_ppnt->p_type != PT_INTERP) in load_elf_binary()
735 if (elf_ppnt->p_filesz > PATH_MAX || elf_ppnt->p_filesz < 2) in load_elf_binary()
739 elf_interpreter = kmalloc(elf_ppnt->p_filesz, GFP_KERNEL); in load_elf_binary()
743 pos = elf_ppnt->p_offset; in load_elf_binary()
745 elf_ppnt->p_filesz, &pos); in load_elf_binary()
746 if (retval != elf_ppnt->p_filesz) { in load_elf_binary()
753 if (elf_interpreter[elf_ppnt->p_filesz - 1] != '\0') in load_elf_binary()
785 elf_ppnt = elf_phdata; in load_elf_binary()
786 for (i = 0; i < loc->elf_ex.e_phnum; i++, elf_ppnt++) in load_elf_binary()
787 switch (elf_ppnt->p_type) { in load_elf_binary()
789 if (elf_ppnt->p_flags & PF_X) in load_elf_binary()
796 retval = arch_elf_pt_proc(&loc->elf_ex, elf_ppnt, in load_elf_binary()
822 elf_ppnt = interp_elf_phdata; in load_elf_binary()
823 for (i = 0; i < loc->interp_elf_ex.e_phnum; i++, elf_ppnt++) in load_elf_binary()
824 switch (elf_ppnt->p_type) { in load_elf_binary()
827 elf_ppnt, interpreter, in load_elf_binary()
880 for(i = 0, elf_ppnt = elf_phdata; in load_elf_binary()
881 i < loc->elf_ex.e_phnum; i++, elf_ppnt++) { in load_elf_binary()
886 if (elf_ppnt->p_type != PT_LOAD) in load_elf_binary()
916 elf_prot = make_prot(elf_ppnt->p_flags); in load_elf_binary()
920 vaddr = elf_ppnt->p_vaddr; in load_elf_binary()
983 error = elf_map(bprm->file, load_bias + vaddr, elf_ppnt, in load_elf_binary()
993 load_addr = (elf_ppnt->p_vaddr - elf_ppnt->p_offset); in load_elf_binary()
1001 k = elf_ppnt->p_vaddr; in load_elf_binary()
1012 if (BAD_ADDR(k) || elf_ppnt->p_filesz > elf_ppnt->p_memsz || in load_elf_binary()
1013 elf_ppnt->p_memsz > TASK_SIZE || in load_elf_binary()
1014 TASK_SIZE - elf_ppnt->p_memsz < k) { in load_elf_binary()
1020 k = elf_ppnt->p_vaddr + elf_ppnt->p_filesz; in load_elf_binary()
1024 if ((elf_ppnt->p_flags & PF_X) && end_code < k) in load_elf_binary()
1028 k = elf_ppnt->p_vaddr + elf_ppnt->p_memsz; in load_elf_binary()