Lines Matching refs:phdrp
115 dtrace_safe_phdr(Phdr *phdrp, struct uarg *args, uintptr_t base) in dtrace_safe_phdr() argument
117 ASSERT(phdrp->p_type == PT_SUNWDTRACE); in dtrace_safe_phdr()
123 if (phdrp->p_memsz < PT_SUNWDTRACE_SIZE || in dtrace_safe_phdr()
124 (phdrp->p_flags & (PF_R | PF_W | PF_X)) != (PF_R | PF_W | PF_X)) in dtrace_safe_phdr()
127 args->thrptr = phdrp->p_vaddr + base; in dtrace_safe_phdr()
286 Phdr *phdrp; in elfexec() local
391 phdrp = (Phdr *)phdrbase; in elfexec()
393 switch (phdrp->p_type) { in elfexec()
402 if (phdrp->p_flags & PF_R) in elfexec()
404 if (phdrp->p_flags & PF_W) in elfexec()
406 if (phdrp->p_flags & PF_X) in elfexec()
410 dataphdrp = phdrp; in elfexec()
413 capphdr = phdrp; in elfexec()
416 dynamicphdr = phdrp; in elfexec()
419 phdrp = (Phdr *)((caddr_t)phdrp + hsize); in elfexec()
1068 const Phdr *phdrp = (Phdr *)phdrbase; in elfsize() local
1076 if (phdrp->p_type == PT_LOAD) { in elfsize()
1077 const uintptr_t lo = phdrp->p_vaddr; in elfsize()
1078 const uintptr_t hi = lo + phdrp->p_memsz; in elfsize()
1089 (phdrp->p_flags & PF_W)) { in elfsize()
1094 phdrp = (Phdr *)((caddr_t)phdrp + hsize); in elfsize()