Lines Matching refs:osp

50 set_addralign(Ofl_desc *ofl, Os_desc *osp, Is_desc *isp)  in set_addralign()  argument
64 osp->os_sgdesc->sg_flags |= FLG_SG_PHREQ; in set_addralign()
67 (osp->os_sgdesc->sg_phdr).p_type != PT_LOAD) in set_addralign()
70 osp->os_sgdesc->sg_align = in set_addralign()
71 ld_lcm(osp->os_sgdesc->sg_align, shdr->sh_addralign); in set_addralign()
80 ld_os_first_isdesc(Os_desc *osp) in ld_os_first_isdesc() argument
85 APlist *ap_isdesc = osp->os_isdescs[i]; in ld_os_first_isdesc()
113 os_attach_isp(Ofl_desc *ofl, Os_desc *osp, Is_desc *isp, int mapfile_sort) in os_attach_isp() argument
133 APlist *ap_isdesc = osp->os_isdescs[OS_ISD_DEFAULT]; in os_attach_isp()
143 &osp->os_isdescs[OS_ISD_DEFAULT], in os_attach_isp()
174 if (do_append && aplist_append(&(osp->os_isdescs[os_isdescs_idx]), in os_attach_isp()
177 isp->is_osdesc = osp; in os_attach_isp()
215 if (aplist_append(&osp->os_mstrisdescs, isp, in os_attach_isp()
236 add_comdat(Ofl_desc *ofl, Os_desc *osp, Is_desc *isp) in add_comdat() argument
256 if ((avlt = osp->os_comdats) == NULL) { in add_comdat()
261 osp->os_comdats = avlt; in add_comdat()
271 isp->is_osdesc = osp; in add_comdat()
683 Os_desc *osp; in eh_frame_muldef() local
692 for (APLIST_TRAVERSE(sgp->sg_osdescs, idx2, osp)) { in eh_frame_muldef()
693 if ((osp->os_flags & FLG_OS_EHFRAME) == 0) in eh_frame_muldef()
697 APlist *lst = osp->os_isdescs[idx3]; in eh_frame_muldef()
737 Os_desc *osp; in ld_place_section() local
1075 for (APLIST_TRAVERSE(sgp->sg_osdescs, idx1, osp)) { in ld_place_section()
1076 Shdr *os_shdr = osp->os_shdr; in ld_place_section()
1095 if ((ident == osp->os_identndx) && in ld_place_section()
1097 (onamehash == osp->os_namehash) && in ld_place_section()
1101 (is_ehframe && (osp->os_flags & FLG_OS_EHFRAME)) || in ld_place_section()
1106 (strcmp(oname, osp->os_name) == 0)) { in ld_place_section()
1114 ((err = add_comdat(ofl, osp, isp)) != 1)) in ld_place_section()
1120 set_addralign(ofl, osp, isp); in ld_place_section()
1140 if (os_attach_isp(ofl, osp, isp, in ld_place_section()
1156 (osp->os_flags & FLG_OS_SECTREF)) { in ld_place_section()
1162 DBG_CALL(Dbg_sec_added(ofl->ofl_lml, osp, sgp)); in ld_place_section()
1163 return (osp); in ld_place_section()
1170 if (osp->os_ordndx) { in ld_place_section()
1171 if (os_ndx < osp->os_ordndx) in ld_place_section()
1182 } else if (osp->os_ordndx) { in ld_place_section()
1192 if (ident < osp->os_identndx) in ld_place_section()
1217 if ((osp = libld_calloc(sizeof (Os_desc), 1)) == NULL) in ld_place_section()
1219 if ((osp->os_shdr = libld_calloc(sizeof (Shdr), 1)) == NULL) in ld_place_section()
1231 (add_comdat(ofl, osp, isp) == S_ERROR)) in ld_place_section()
1255 osp->os_shdr->sh_type = ld_targ.t_m.m_sht_unwind; in ld_place_section()
1257 osp->os_shdr->sh_type = shdr->sh_type; in ld_place_section()
1260 osp->os_shdr->sh_flags = shdr->sh_flags; in ld_place_section()
1261 osp->os_shdr->sh_entsize = shdr->sh_entsize; in ld_place_section()
1262 osp->os_name = oname; in ld_place_section()
1263 osp->os_namehash = onamehash; in ld_place_section()
1264 osp->os_ordndx = os_ndx; in ld_place_section()
1265 osp->os_sgdesc = sgp; in ld_place_section()
1267 osp->os_flags |= FLG_OS_EHFRAME; in ld_place_section()
1274 osp->os_shdr->sh_link = shdr->sh_link; in ld_place_section()
1276 osp->os_shdr->sh_info = shdr->sh_info; in ld_place_section()
1293 if (strcmp(osp->os_name, MSG_ORIG(*refsec)) == 0) { in ld_place_section()
1294 osp->os_flags |= FLG_OS_SECTREF; in ld_place_section()
1312 (aplist_append(&ofl->ofl_osgroups, osp, in ld_place_section()
1331 ((osp->os_shdr->sh_flags & SHF_ALLOC) == 0)) { in ld_place_section()
1333 ofl->ofl_name, osp->os_name, sgp->sg_name); in ld_place_section()
1334 osp->os_shdr->sh_flags |= SHF_ALLOC; in ld_place_section()
1343 osp->os_identndx = ident; in ld_place_section()
1348 set_addralign(ofl, osp, isp); in ld_place_section()
1350 if (os_attach_isp(ofl, osp, isp, 0) == 0) in ld_place_section()
1353 DBG_CALL(Dbg_sec_created(ofl->ofl_lml, osp, sgp)); in ld_place_section()
1361 if (aplist_insert(&sgp->sg_osdescs, osp, AL_CNT_SG_OSDESC, in ld_place_section()
1364 return (osp); in ld_place_section()