Lines Matching refs:isp

50 set_addralign(Ofl_desc *ofl, Os_desc *osp, Is_desc *isp)  in set_addralign()  argument
52 Shdr *shdr = isp->is_shdr; in set_addralign()
55 if (isp->is_flags & FLG_IS_DISCARD) in set_addralign()
63 ((isp->is_flags & FLG_IS_EXTERNAL) == 0)) in set_addralign()
113 os_attach_isp(Ofl_desc *ofl, Os_desc *osp, Is_desc *isp, int mapfile_sort) in os_attach_isp() argument
118 if ((isp->is_flags & FLG_IS_ORDERED) == 0) { in os_attach_isp()
132 if (mapfile_sort && (isp->is_ordndx > 0)) { in os_attach_isp()
139 (isp2->is_ordndx <= isp->is_ordndx)) in os_attach_isp()
144 isp, init_arritems, idx2) == NULL) in os_attach_isp()
154 shndx = (isp->is_shdr->sh_flags & SHF_ORDERED) ? in os_attach_isp()
155 isp->is_shdr->sh_info : isp->is_shdr->sh_link; in os_attach_isp()
175 isp, init_arritems) == NULL) in os_attach_isp()
177 isp->is_osdesc = osp; in os_attach_isp()
188 if (((isp->is_shdr->sh_flags & (SHF_MERGE | SHF_STRINGS)) != in os_attach_isp()
192 ((isp->is_flags & (FLG_IS_ORDERED | FLG_IS_GNSTRMRG)) != 0)) in os_attach_isp()
209 if ((isp->is_shdr->sh_entsize > 1) || in os_attach_isp()
210 (isp->is_shdr->sh_addralign > 1)) { in os_attach_isp()
211 DBG_CALL(Dbg_sec_unsup_strmerge(ofl->ofl_lml, isp)); in os_attach_isp()
215 if (aplist_append(&osp->os_mstrisdescs, isp, in os_attach_isp()
225 isp->is_flags |= FLG_IS_INSTRMRG; in os_attach_isp()
236 add_comdat(Ofl_desc *ofl, Os_desc *osp, Is_desc *isp) in add_comdat() argument
248 if ((isp->is_shdr->sh_flags & SHF_GROUP) && in add_comdat()
249 ((gr = ld_get_group(ofl, isp)) != NULL) && in add_comdat()
267 isd.isd_name = isp->is_name; in add_comdat()
271 isp->is_osdesc = osp; in add_comdat()
277 if ((isp->is_flags & FLG_IS_DISCARD) == 0) { in add_comdat()
278 isp->is_flags |= FLG_IS_DISCARD; in add_comdat()
279 isp->is_comdatkeep = isdp->isd_isp; in add_comdat()
280 DBG_CALL(Dbg_sec_discarded(ofl->ofl_lml, isp, in add_comdat()
303 isdp->isd_isp = isp; in add_comdat()
325 Is_desc *isp; in gnu_comdat_sym() local
328 if (((isp = ifl->ifl_isdesc[ndx]) == NULL) || in gnu_comdat_sym()
329 (isp == gisp) || (isp->is_name == NULL)) in gnu_comdat_sym()
338 ssize = strlen(isp->is_name); in gnu_comdat_sym()
339 if ((strncmp(isp->is_name, gisp->is_name, ssize) == 0) && in gnu_comdat_sym()
590 isp_convert_type(Is_desc *isp, Word sh_type) in isp_convert_type() argument
596 *shdr = *isp->is_shdr; in isp_convert_type()
597 isp->is_shdr = shdr; in isp_convert_type()
607 eh_frame_muldef(Ofl_desc *ofl, Is_desc *isp) in eh_frame_muldef() argument
635 isp->is_file->ifl_name, in eh_frame_muldef()
636 EC_WORD(isp->is_scnndx), isp->is_name); in eh_frame_muldef()
660 ld_place_section(Ofl_desc *ofl, Is_desc *isp, Place_path_info *path_info, in ld_place_section() argument
668 Shdr *shdr = isp->is_shdr; in ld_place_section()
670 Ifl_desc *ifl = isp->is_file; in ld_place_section()
673 Boolean is_ehframe = (isp->is_flags & FLG_IS_EHFRAME) != 0; in ld_place_section()
693 DBG_CALL(Dbg_sec_in(ofl->ofl_lml, isp)); in ld_place_section()
703 if ((gdesc = ld_get_group(ofl, isp)) != NULL) { in ld_place_section()
704 DBG_CALL(Dbg_sec_group(ofl->ofl_lml, isp, gdesc)); in ld_place_section()
711 isp->is_flags |= FLG_IS_DISCARD; in ld_place_section()
733 isp->is_flags |= FLG_IS_DISCARD; in ld_place_section()
787 (strcmp(enp->ec_is_name, isp->is_name) != 0)) in ld_place_section()
817 isp->is_ordndx = enp->ec_ordndx; in ld_place_section()
830 oname = (char *)((alt_os_name == NULL) ? isp->is_name : alt_os_name); in ld_place_section()
853 if ((sname = strchr(isp->is_name, '%')) != NULL) { in ld_place_section()
854 size_t size = sname - isp->is_name; in ld_place_section()
858 (void) strncpy(oname, isp->is_name, size); in ld_place_section()
860 DBG_CALL(Dbg_sec_redirected(ofl->ofl_lml, isp, oname)); in ld_place_section()
884 if ((isp->is_name == oname) && (isp->is_name[1] == 'g') && in ld_place_section()
885 (strncmp(MSG_ORIG(MSG_SCN_GNU_LINKONCE), isp->is_name, in ld_place_section()
888 if ((oname = (char *)gnu_linkonce_sec(isp->is_name)) != in ld_place_section()
889 isp->is_name) { in ld_place_section()
890 DBG_CALL(Dbg_sec_redirected(ofl->ofl_lml, isp, in ld_place_section()
900 isp->is_flags |= FLG_IS_COMDAT; in ld_place_section()
903 DBG_CALL(Dbg_sec_gnu_comdat(ofl->ofl_lml, isp, TRUE, in ld_place_section()
917 if ((isp->is_name == oname) && (isp->is_flags & FLG_IS_COMDAT) && in ld_place_section()
918 ((sname = gnu_comdat_sym(ifl, isp)) != NULL)) { in ld_place_section()
919 size_t size = sname - isp->is_name; in ld_place_section()
924 (void) strncpy(oname, isp->is_name, size); in ld_place_section()
926 DBG_CALL(Dbg_sec_redirected(ofl->ofl_lml, isp, oname)); in ld_place_section()
935 DBG_CALL(Dbg_sec_gnu_comdat(ofl->ofl_lml, isp, in ld_place_section()
1025 if ((isp->is_flags & FLG_IS_COMDAT) && in ld_place_section()
1026 ((err = add_comdat(ofl, osp, isp)) != 1)) in ld_place_section()
1032 set_addralign(ofl, osp, isp); in ld_place_section()
1052 if (os_attach_isp(ofl, osp, isp, in ld_place_section()
1069 isp->is_flags |= FLG_IS_SECTREF; in ld_place_section()
1120 if (isp->is_flags & FLG_IS_DISCARD) in ld_place_section()
1140 ((shdr = isp_convert_type(isp, SHT_PROGBITS)) == NULL)) in ld_place_section()
1142 if ((isp->is_flags & FLG_IS_COMDAT) && in ld_place_section()
1143 (add_comdat(ofl, osp, isp) == S_ERROR)) in ld_place_section()
1155 eh_frame_muldef(ofl, isp); in ld_place_section()
1210 isp->is_flags |= FLG_IS_SECTREF; in ld_place_section()
1223 ((isp->is_flags & FLG_IS_DISCARD) == 0) && in ld_place_section()
1260 set_addralign(ofl, osp, isp); in ld_place_section()
1262 if (os_attach_isp(ofl, osp, isp, 0) == 0) in ld_place_section()