Lines Matching refs:sgp
180 Sg_desc *sgp, *tsgp = NULL, *dsgp = NULL, *esgp = NULL; in update_osym() local
386 for (APLIST_TRAVERSE(ofl->ofl_segs, idx1, sgp)) { in update_osym()
387 Phdr *phd = &(sgp->sg_phdr); in update_osym()
392 if (aplist_nitems(sgp->sg_osdescs) != 0) { in update_osym()
396 tsgp = sgp; in update_osym()
398 dsgp = sgp; in update_osym()
399 } else if (sgp->sg_flags & FLG_SG_EMPTY) in update_osym()
400 esgp = sgp; in update_osym()
406 for (APLIST_TRAVERSE(sgp->sg_osdescs, idx2, osp)) { in update_osym()
435 osp->os_identndx, sgp, osp)); in update_osym()
447 if (sgp == tsgp) { in update_osym()
450 } else if (dsgp == sgp) { in update_osym()
458 start = sgp->sg_phdr.p_vaddr; in update_osym()
513 Sg_desc *sgp; in update_osym() local
538 sgp = tsgp; in update_osym()
540 sgp = 0; in update_osym()
542 sgp = dsgp; in update_osym()
544 sgp = dsgp; in update_osym()
546 sgp = tsgp; in update_osym()
552 sgp = tsgp; in update_osym()
554 sgp = dsgp; in update_osym()
557 if (esgp && (esgp->sg_phdr.p_vaddr > sgp->sg_phdr.p_vaddr)) in update_osym()
558 sgp = esgp; in update_osym()
560 if (sgp) { in update_osym()
561 end = sgp->sg_phdr.p_vaddr + sgp->sg_phdr.p_memsz; in update_osym()
575 if ((sgp->sg_phdr.p_flags & PF_W) == 0) in update_osym()
583 if (aplist_nitems(sgp->sg_osdescs) != 0) { in update_osym()
587 Os_desc *osp = sgp->sg_osdescs->apl_data in update_osym()
588 [sgp->sg_osdescs->apl_nitems - 1]; in update_osym()
2268 Sg_desc *sgp; in update_odynamic() local
2571 if (((sgp = ofl->ofl_osdynamic->os_sgdesc) != NULL) && in update_odynamic()
2572 (sgp->sg_phdr.p_flags & PF_W) && ofl->ofl_osinterp) { in update_odynamic()
3914 Sg_desc *sgp; in ld_update_outfile() local
3951 for (APLIST_TRAVERSE(ofl->ofl_segs, idx1, sgp)) { in ld_update_outfile()
3952 Phdr *phdr = &(sgp->sg_phdr); in ld_update_outfile()
3974 DBG_CALL(Dbg_seg_entry(ofl, segndx, sgp)); in ld_update_outfile()
3981 intpsgp = sgp; in ld_update_outfile()
3997 dtracesgp = sgp; in ld_update_outfile()
4013 capsgp = sgp; in ld_update_outfile()
4033 DBG_CALL(Dbg_seg_entry(ofl, segndx, sgp)); in ld_update_outfile()
4066 ((sgp->sg_flags & FLG_SG_DISABLED) == 0)) in ld_update_outfile()
4127 DBG_CALL(Dbg_seg_entry(ofl, segndx, sgp)); in ld_update_outfile()
4145 (sgp->sg_flags & FLG_SG_EMPTY)) { in ld_update_outfile()
4150 phdr->p_memsz = sgp->sg_length; in ld_update_outfile()
4151 DBG_CALL(Dbg_seg_entry(ofl, segndx, sgp)); in ld_update_outfile()
4175 sgp->sg_name, EC_ADDR(vaddr)); in ld_update_outfile()
4187 if (aplist_nitems(sgp->sg_osdescs) == 0) in ld_update_outfile()
4195 osp = sgp->sg_osdescs->apl_data[0]; in ld_update_outfile()
4203 ((sgp->sg_flags & FLG_SG_PHREQ) == 0)); in ld_update_outfile()
4205 for (APLIST_TRAVERSE(sgp->sg_osdescs, idx2, osp)) { in ld_update_outfile()
4222 } else if ((sgp->sg_flags & FLG_SG_PHREQ) == 0) in ld_update_outfile()
4250 for (APLIST_TRAVERSE(sgp->sg_sizesym, idx2, sdp)) in ld_update_outfile()
4267 if ((sgp->sg_flags & FLG_SG_P_VADDR)) { in ld_update_outfile()
4273 sgp->sg_name, in ld_update_outfile()
4286 if (((sgp->sg_flags & FLG_SG_P_VADDR) == 0) && in ld_update_outfile()
4342 DBG_CALL(Dbg_seg_entry(ofl, segndx, sgp)); in ld_update_outfile()
4353 for (APLIST_TRAVERSE(sgp->sg_osdescs, idx2, osp)) { in ld_update_outfile()
4391 if ((sgp->sg_length != 0) && (sgp->sg_length < phdr->p_memsz)) { in ld_update_outfile()
4393 ofl->ofl_name, sgp->sg_name, in ld_update_outfile()
4394 EC_XWORD(phdr->p_memsz), EC_XWORD(sgp->sg_length)); in ld_update_outfile()