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