Lines Matching refs:phdr

1337 	Phdr *phdr;  in mapelfexec()  local
1368 phdr = (Phdr *)phdrbase; in mapelfexec()
1370 if (phdr->p_type == PT_LOAD) { in mapelfexec()
1371 *voffset -= (uintptr_t)phdr->p_vaddr; in mapelfexec()
1374 phdr = (Phdr *)((caddr_t)phdr + hsize); in mapelfexec()
1381 phdr = (Phdr *)phdrbase; in mapelfexec()
1383 switch (phdr->p_type) { in mapelfexec()
1387 if (phdr->p_flags & PF_R) in mapelfexec()
1389 if (phdr->p_flags & PF_W) in mapelfexec()
1391 if (phdr->p_flags & PF_X) in mapelfexec()
1394 addr = (caddr_t)((uintptr_t)phdr->p_vaddr + *voffset); in mapelfexec()
1419 phdr->p_offset) + ehdr->e_phoff; in mapelfexec()
1428 if (phdr->p_filesz > phdr->p_memsz) { in mapelfexec()
1440 zfodsz = (size_t)phdr->p_memsz - phdr->p_filesz; in mapelfexec()
1442 offset = phdr->p_offset; in mapelfexec()
1456 zfodsz != 0 && phdr == dataphdrp && in mapelfexec()
1459 phdr->p_filesz, PAGESIZE); in mapelfexec()
1463 phdr->p_filesz + tlen; in mapelfexec()
1477 if (curproc->p_brkpageszc != 0 && phdr == dataphdrp && in mapelfexec()
1481 caddr_t ebss = addr + phdr->p_memsz; in mapelfexec()
1495 if (error = execmap(vp, addr, phdr->p_filesz, in mapelfexec()
1496 zfodsz + extra_zfodsz, phdr->p_offset, in mapelfexec()
1502 if (error = execmap(vp, addr, phdr->p_filesz, in mapelfexec()
1503 zfodsz, phdr->p_offset, prot, page, 0)) in mapelfexec()
1508 phdr == dataphdrp) { in mapelfexec()
1509 *bssbase = addr + phdr->p_filesz; in mapelfexec()
1512 *brkbase = addr + phdr->p_memsz; in mapelfexec()
1515 memsz = btopr(phdr->p_memsz); in mapelfexec()
1526 *intphdr = phdr; in mapelfexec()
1530 *stphdr = phdr; in mapelfexec()
1534 if (ptload || phdr->p_flags == 0) in mapelfexec()
1538 *uphdr = phdr; in mapelfexec()
1549 *dtphdr = phdr; in mapelfexec()
1555 phdr = (Phdr *)((caddr_t)phdr + hsize); in mapelfexec()
2086 Phdr *phdr; in elfcore() local
2230 phdr = (Phdr *)bigwad; in elfcore()
2231 bzero(phdr, phdrsz); in elfcore()
2233 setup_old_note_header(&phdr[0], p); in elfcore()
2234 phdr[0].p_offset = doffset = roundup(doffset, sizeof (Word)); in elfcore()
2235 doffset += phdr[0].p_filesz; in elfcore()
2237 setup_note_header(&phdr[1], p); in elfcore()
2238 phdr[1].p_offset = doffset = roundup(doffset, sizeof (Word)); in elfcore()
2239 doffset += phdr[1].p_filesz; in elfcore()
2279 phdr[i].p_type = PT_LOAD; in elfcore()
2280 phdr[i].p_vaddr = (Addr)(uintptr_t)saddr; in elfcore()
2281 phdr[i].p_memsz = size; in elfcore()
2283 phdr[i].p_flags |= PF_R; in elfcore()
2285 phdr[i].p_flags |= PF_W; in elfcore()
2287 phdr[i].p_flags |= PF_X; in elfcore()
2349 phdr[i].p_offset = doffset; in elfcore()
2350 phdr[i].p_filesz = size; in elfcore()
2375 phdr, phdrsz, rlimit, credp)) != 0) { in elfcore()
2379 if ((error = write_old_elfnotes(p, sig, vp, phdr[0].p_offset, rlimit, in elfcore()
2383 if ((error = write_elfnotes(p, sig, vp, phdr[1].p_offset, rlimit, in elfcore()
2393 if (phdr[i].p_filesz == 0) in elfcore()
2411 if ((phdr[i].p_flags & (PF_R | PF_W | PF_X)) == 0) { in elfcore()
2412 size_t towrite = phdr[i].p_filesz; in elfcore()
2424 phdr[i].p_offset + curoff, zeropg, len, in elfcore()
2433 error = core_seg(p, vp, phdr[i].p_offset, in elfcore()
2434 (caddr_t)(uintptr_t)phdr[i].p_vaddr, in elfcore()
2435 phdr[i].p_filesz, rlimit, credp); in elfcore()
2448 (void) core_write(vp, UIO_SYSSPACE, phdr[i].p_offset, in elfcore()
2451 phdr[i].p_filesz = 0; in elfcore()
2452 phdr[i].p_flags |= PF_SUNW_FAILURE; in elfcore()
2454 poffset + sizeof (Phdr) * i, &phdr[i], in elfcore()
2497 (void) core_write(vp, UIO_SYSSPACE, phdr[i].p_offset, in elfcore()
2504 phdr[i].p_filesz = 0; in elfcore()
2505 phdr[i].p_flags |= PF_SUNW_FAILURE | PF_SUNW_KILLED | in elfcore()
2513 phdr[j].p_filesz = 0; in elfcore()
2514 phdr[j].p_flags |= PF_SUNW_FAILURE | PF_SUNW_KILLED; in elfcore()
2521 poffset + sizeof (Phdr) * i, &phdr[i], in elfcore()