Lines Matching refs:eppnt

250 elf_map (struct file *filep, unsigned long addr, struct elf_phdr *eppnt, int prot, int type)  in elf_map()  argument
256 eppnt->p_filesz + ELF_PAGEOFFSET(eppnt->p_vaddr), prot, type, in elf_map()
257 eppnt->p_offset - ELF_PAGEOFFSET(eppnt->p_vaddr)); in elf_map()
274 struct elf_phdr *eppnt; in load_elf_interp() local
318 eppnt = elf_phdata; in load_elf_interp()
319 for (i=0; i<interp_elf_ex->e_phnum; i++, eppnt++) { in load_elf_interp()
320 if (eppnt->p_type == PT_LOAD) { in load_elf_interp()
326 if (eppnt->p_flags & PF_R) elf_prot = PROT_READ; in load_elf_interp()
327 if (eppnt->p_flags & PF_W) elf_prot |= PROT_WRITE; in load_elf_interp()
328 if (eppnt->p_flags & PF_X) elf_prot |= PROT_EXEC; in load_elf_interp()
329 vaddr = eppnt->p_vaddr; in load_elf_interp()
333 map_addr = elf_map(interpreter, load_addr + vaddr, eppnt, elf_prot, elf_type); in load_elf_interp()
347 k = load_addr + eppnt->p_vaddr; in load_elf_interp()
348 if (BAD_ADDR(k) || eppnt->p_filesz > eppnt->p_memsz || in load_elf_interp()
349 eppnt->p_memsz > TASK_SIZE || TASK_SIZE - eppnt->p_memsz < k) { in load_elf_interp()
358 k = load_addr + eppnt->p_vaddr + eppnt->p_filesz; in load_elf_interp()
366 k = load_addr + eppnt->p_memsz + eppnt->p_vaddr; in load_elf_interp()
943 struct elf_phdr *eppnt; in load_elf_library() local
971 eppnt = elf_phdata; in load_elf_library()
973 retval = kernel_read(file, elf_ex.e_phoff, (char *)eppnt, j); in load_elf_library()
978 if ((eppnt + i)->p_type == PT_LOAD) j++; in load_elf_library()
982 while (eppnt->p_type != PT_LOAD) in load_elf_library()
983 eppnt++; in load_elf_library()
988 ELF_PAGESTART(eppnt->p_vaddr), in load_elf_library()
989 (eppnt->p_filesz + in load_elf_library()
990 ELF_PAGEOFFSET(eppnt->p_vaddr)), in load_elf_library()
993 (eppnt->p_offset - in load_elf_library()
994 ELF_PAGEOFFSET(eppnt->p_vaddr))); in load_elf_library()
996 if (error != ELF_PAGESTART(eppnt->p_vaddr)) in load_elf_library()
999 elf_bss = eppnt->p_vaddr + eppnt->p_filesz; in load_elf_library()
1002 len = ELF_PAGESTART(eppnt->p_filesz + eppnt->p_vaddr + ELF_MIN_ALIGN - 1); in load_elf_library()
1003 bss = eppnt->p_memsz + eppnt->p_vaddr; in load_elf_library()