Lines Matching refs:sgp
174 Sg_desc *sgp, *tsgp = NULL, *dsgp = NULL, *esgp = NULL; in update_osym() local
380 for (APLIST_TRAVERSE(ofl->ofl_segs, idx1, sgp)) { in update_osym()
381 Phdr *phd = &(sgp->sg_phdr); in update_osym()
386 if (sgp->sg_osdescs != NULL) { in update_osym()
390 tsgp = sgp; in update_osym()
392 dsgp = sgp; in update_osym()
393 } else if (sgp->sg_flags & FLG_SG_EMPTY) in update_osym()
394 esgp = sgp; in update_osym()
400 for (APLIST_TRAVERSE(sgp->sg_osdescs, idx2, osp)) { in update_osym()
429 osp->os_identndx, sgp, osp)); in update_osym()
441 if (sgp == tsgp) { in update_osym()
444 } else if (dsgp == sgp) { in update_osym()
452 start = sgp->sg_phdr.p_vaddr; in update_osym()
507 Sg_desc *sgp; in update_osym() local
532 sgp = tsgp; in update_osym()
534 sgp = 0; in update_osym()
536 sgp = dsgp; in update_osym()
538 sgp = dsgp; in update_osym()
540 sgp = tsgp; in update_osym()
546 sgp = tsgp; in update_osym()
548 sgp = dsgp; in update_osym()
551 if (esgp && (esgp->sg_phdr.p_vaddr > sgp->sg_phdr.p_vaddr)) in update_osym()
552 sgp = esgp; in update_osym()
554 if (sgp) { in update_osym()
555 end = sgp->sg_phdr.p_vaddr + sgp->sg_phdr.p_memsz; in update_osym()
569 if ((sgp->sg_phdr.p_flags & PF_W) == 0) in update_osym()
577 if (sgp->sg_osdescs != NULL) { in update_osym()
581 Os_desc *osp = sgp->sg_osdescs->apl_data in update_osym()
582 [sgp->sg_osdescs->apl_nitems - 1]; in update_osym()
2202 Sg_desc *sgp; in update_odynamic() local
2505 if (((sgp = ofl->ofl_osdynamic->os_sgdesc) != NULL) && in update_odynamic()
2506 (sgp->sg_phdr.p_flags & PF_W) && ofl->ofl_osinterp) { in update_odynamic()
3609 Sg_desc *sgp; in ld_update_outfile() local
3646 for (APLIST_TRAVERSE(ofl->ofl_segs, idx1, sgp)) { in ld_update_outfile()
3647 Phdr *phdr = &(sgp->sg_phdr); in ld_update_outfile()
3669 DBG_CALL(Dbg_seg_entry(ofl, segndx, sgp)); in ld_update_outfile()
3676 intpsgp = sgp; in ld_update_outfile()
3692 dtracesgp = sgp; in ld_update_outfile()
3708 capsgp = sgp; in ld_update_outfile()
3730 DBG_CALL(Dbg_seg_entry(ofl, segndx, sgp)); in ld_update_outfile()
3768 ((sgp->sg_flags & FLG_SG_DISABLED) == 0)) in ld_update_outfile()
3832 DBG_CALL(Dbg_seg_entry(ofl, segndx, sgp)); in ld_update_outfile()
3850 (sgp->sg_flags & FLG_SG_EMPTY)) { in ld_update_outfile()
3855 phdr->p_memsz = sgp->sg_length; in ld_update_outfile()
3856 DBG_CALL(Dbg_seg_entry(ofl, segndx, sgp)); in ld_update_outfile()
3880 sgp->sg_name, EC_ADDR(vaddr)); in ld_update_outfile()
3892 if (sgp->sg_osdescs == NULL) in ld_update_outfile()
3900 osp = sgp->sg_osdescs->apl_data[0]; in ld_update_outfile()
3908 ((sgp->sg_flags & FLG_SG_PHREQ) == 0)); in ld_update_outfile()
3910 for (APLIST_TRAVERSE(sgp->sg_osdescs, idx2, osp)) { in ld_update_outfile()
3927 } else if ((sgp->sg_flags & FLG_SG_PHREQ) == 0) in ld_update_outfile()
3955 for (APLIST_TRAVERSE(sgp->sg_sizesym, idx2, sdp)) in ld_update_outfile()
3972 if ((sgp->sg_flags & FLG_SG_P_VADDR)) { in ld_update_outfile()
3978 sgp->sg_name, in ld_update_outfile()
3991 if (((sgp->sg_flags & FLG_SG_P_VADDR) == 0) && in ld_update_outfile()
4047 DBG_CALL(Dbg_seg_entry(ofl, segndx, sgp)); in ld_update_outfile()
4058 for (APLIST_TRAVERSE(sgp->sg_osdescs, idx2, osp)) { in ld_update_outfile()
4096 if ((sgp->sg_length != 0) && (sgp->sg_length < phdr->p_memsz)) { in ld_update_outfile()
4098 ofl->ofl_name, sgp->sg_name, in ld_update_outfile()
4099 EC_XWORD(phdr->p_memsz), EC_XWORD(sgp->sg_length)); in ld_update_outfile()