Lines Matching refs:osp
175 Os_desc *osp, *iosp = NULL, *fosp = NULL; in update_osym() local
382 Os_desc *osp; in update_osym() local
400 for (APLIST_TRAVERSE(sgp->sg_osdescs, idx2, osp)) { in update_osym()
404 sym->st_value = osp->os_shdr->sh_addr; in update_osym()
407 sectndx = elf_ndxscn(osp->os_scn); in update_osym()
420 if (dynsym && (osp->os_flags & FLG_OS_OUTREL)) in update_osym()
424 (osp->os_flags & FLG_OS_OUTREL)) { in update_osym()
427 osp->os_identndx = *symndx - 1; in update_osym()
429 osp->os_identndx, sgp, osp)); in update_osym()
435 (void) st_setstring(shstrtab, osp->os_name, &stoff); in update_osym()
436 osp->os_shdr->sh_name = (Word)stoff; in update_osym()
443 etext_ndx = elf_ndxscn(osp->os_scn); in update_osym()
445 if (osp->os_shdr->sh_type != SHT_NOBITS) { in update_osym()
447 edata_ndx = elf_ndxscn(osp->os_scn); in update_osym()
454 start_ndx = elf_ndxscn(osp->os_scn); in update_osym()
462 if ((iosp == NULL) && (strcmp(osp->os_name, in update_osym()
464 iosp = osp; in update_osym()
465 if ((fosp == NULL) && (strcmp(osp->os_name, in update_osym()
467 fosp = osp; in update_osym()
581 Os_desc *osp = sgp->sg_osdescs->apl_data in update_osym() local
585 end_ndx = elf_ndxscn(osp->os_scn); in update_osym()
615 osp = ofl->ofl_isparexpn->is_osdesc; in update_osym()
616 parexpnbase = parexpnaddr = (Addr)(osp->os_shdr->sh_addr + in update_osym()
619 parexpnndx = elf_ndxscn(osp->os_scn); in update_osym()
620 ofl->ofl_parexpnndx = osp->os_identndx; in update_osym()
800 osp = isc->is_osdesc; in update_osym()
805 sym->st_value += osp->os_shdr->sh_addr; in update_osym()
818 elf_ndxscn(osp->os_scn)) >= SHN_LORESERVE) { in update_osym()
870 Os_desc *osp = isp->is_osdesc; in update_osym() local
880 osp->os_shdr->sh_addr; in update_osym()
886 elf_ndxscn(osp->os_scn); in update_osym()
944 osp = isc->is_osdesc; in update_osym()
946 bssaddr = osp->os_shdr->sh_addr + in update_osym()
949 bssndx = elf_ndxscn(osp->os_scn); in update_osym()
958 osp = ofl->ofl_islbss->is_osdesc; in update_osym()
960 lbssaddr = osp->os_shdr->sh_addr + in update_osym()
963 lbssndx = elf_ndxscn(osp->os_scn); in update_osym()
970 osp = ofl->ofl_istlsbss->is_osdesc; in update_osym()
971 tlsbssaddr = osp->os_shdr->sh_addr + in update_osym()
974 tlsbssndx = elf_ndxscn(osp->os_scn); in update_osym()
1677 osp = sdp->sd_isc->is_osdesc; in update_osym()
1679 sectndx = elf_ndxscn(osp->os_scn); in update_osym()
1694 sym->st_value += osp->os_shdr->sh_addr; in update_osym()
2729 Os_desc *osp; in update_oversym() local
2737 osp = ofl->ofl_ossymtab; in update_oversym()
2739 osp = ofl->ofl_osdynsym; in update_oversym()
2742 ofl->ofl_osversym->os_shdr->sh_link = (Word)elf_ndxscn(osp->os_scn); in update_oversym()
3003 Os_desc *osp; in expand_move() local
3009 osp = ofl->ofl_isparexpn->is_osdesc; in expand_move()
3010 offset = sdp->sd_sym->st_value - osp->os_shdr->sh_addr; in expand_move()
3012 taddr0 = taddr = osp->os_outdata->d_buf; in expand_move()
3132 Os_desc *osp = sdp->sd_isc->is_osdesc; in update_move() local
3133 Word ndx = osp->os_identndx; in update_move()
3143 osp->os_shdr->sh_addr + in update_move()
3160 Os_desc *osp = sdp->sd_isc->is_osdesc; in update_move() local
3161 Word ndx = osp->os_identndx; in update_move()
3197 Os_desc *osp; in update_ogroup() local
3200 for (APLIST_TRAVERSE(ofl->ofl_osgroups, idx, osp)) { in update_ogroup()
3203 Shdr *shdr = osp->os_shdr; in update_ogroup()
3213 isp = ld_os_first_isdesc(osp); in update_ogroup()
3225 gdata = (Word *)osp->os_outdata->d_buf; in update_ogroup()
3245 update_ostrtab(Os_desc *osp, Str_tbl *stp, uint_t extra) in update_ostrtab() argument
3249 if (osp == NULL) in update_ostrtab()
3252 data = osp->os_outdata; in update_ostrtab()
3541 translate_link(Ofl_desc *ofl, Os_desc *osp, Word link, const char *msg) in translate_link() argument
3557 isp = ld_os_first_isdesc(osp); in translate_link()
3576 if ((osp = isp->is_osdesc) == NULL) in translate_link()
3580 return ((Word)elf_ndxscn(osp->os_scn)); in translate_link()
3611 Os_desc *osp; in ld_update_outfile() local
3900 osp = sgp->sg_osdescs->apl_data[0]; in ld_update_outfile()
3901 hshdr = osp->os_shdr; in ld_update_outfile()
3910 for (APLIST_TRAVERSE(sgp->sg_osdescs, idx2, osp)) { in ld_update_outfile()
3911 Shdr *shdr = osp->os_shdr; in ld_update_outfile()
4058 for (APLIST_TRAVERSE(sgp->sg_osdescs, idx2, osp)) { in ld_update_outfile()
4059 Shdr *shdr = osp->os_shdr; in ld_update_outfile()
4062 shdr->sh_link = translate_link(ofl, osp, in ld_update_outfile()
4066 shdr->sh_info = translate_link(ofl, osp, in ld_update_outfile()
4079 DBG_CALL(Dbg_seg_os(ofl, osp, secndx)); in ld_update_outfile()