Lines Matching defs:isp

50 set_addralign(Ofl_desc *ofl, Os_desc *osp, Is_desc *isp)
52 Shdr *shdr = isp->is_shdr;
55 if (isp->is_flags & FLG_IS_DISCARD)
63 ((isp->is_flags & FLG_IS_EXTERNAL) == 0))
100 * isp - Input section descriptor
113 os_attach_isp(Ofl_desc *ofl, Os_desc *osp, Is_desc *isp, int mapfile_sort)
118 if ((isp->is_flags & FLG_IS_ORDERED) == 0) {
132 if (mapfile_sort && (isp->is_ordndx > 0)) {
139 (isp2->is_ordndx <= isp->is_ordndx))
144 isp, init_arritems, idx2) == NULL)
154 shndx = (isp->is_shdr->sh_flags & SHF_ORDERED) ?
155 isp->is_shdr->sh_info : isp->is_shdr->sh_link;
175 isp, init_arritems) == NULL)
177 isp->is_osdesc = osp;
188 if (((isp->is_shdr->sh_flags & (SHF_MERGE | SHF_STRINGS)) !=
192 ((isp->is_flags & (FLG_IS_ORDERED | FLG_IS_GNSTRMRG)) != 0))
209 if ((isp->is_shdr->sh_entsize > 1) ||
210 (isp->is_shdr->sh_addralign > 1)) {
211 DBG_CALL(Dbg_sec_unsup_strmerge(ofl->ofl_lml, isp));
215 if (aplist_append(&osp->os_mstrisdescs, isp,
225 isp->is_flags |= FLG_IS_INSTRMRG;
236 add_comdat(Ofl_desc *ofl, Os_desc *osp, Is_desc *isp)
248 if ((isp->is_shdr->sh_flags & SHF_GROUP) &&
249 ((gr = ld_get_group(ofl, isp)) != NULL) &&
267 isd.isd_name = isp->is_name;
271 isp->is_osdesc = osp;
277 if ((isp->is_flags & FLG_IS_DISCARD) == 0) {
278 isp->is_flags |= FLG_IS_DISCARD;
279 isp->is_comdatkeep = isdp->isd_isp;
280 DBG_CALL(Dbg_sec_discarded(ofl->ofl_lml, isp,
303 isdp->isd_isp = isp;
325 Is_desc *isp;
328 if (((isp = ifl->ifl_isdesc[ndx]) == NULL) ||
329 (isp == gisp) || (isp->is_name == NULL))
338 ssize = strlen(isp->is_name);
339 if ((strncmp(isp->is_name, gisp->is_name, ssize) == 0) &&
654 * isp - Input section to replace
662 isp_convert_type(Is_desc *isp, Word sh_type)
668 *shdr = *isp->is_shdr;
669 isp->is_shdr = shdr;
679 eh_frame_muldef(Ofl_desc *ofl, Is_desc *isp)
707 isp->is_file->ifl_name,
708 EC_WORD(isp->is_scnndx), isp->is_name);
720 * isp - Input section descriptor of section to be placed.
722 * by ld_place_path_info_init() for the file associated to isp,
728 * isp into. If NULL, input sections go to an output section
732 ld_place_section(Ofl_desc *ofl, Is_desc *isp, Place_path_info *path_info,
740 Shdr *shdr = isp->is_shdr;
742 Ifl_desc *ifl = isp->is_file;
745 Boolean is_ehframe = (isp->is_flags & FLG_IS_EHFRAME) != 0;
768 DBG_CALL(Dbg_sec_in(ofl->ofl_lml, isp));
778 if ((gdesc = ld_get_group(ofl, isp)) != NULL) {
779 DBG_CALL(Dbg_sec_group(ofl->ofl_lml, isp, gdesc));
786 isp->is_flags |= FLG_IS_DISCARD;
808 isp->is_flags |= FLG_IS_DISCARD;
862 (strcmp(enp->ec_is_name, isp->is_name) != 0))
892 isp->is_ordndx = enp->ec_ordndx;
905 oname = (char *)((alt_os_name == NULL) ? isp->is_name : alt_os_name);
928 if ((sname = strchr(isp->is_name, '%')) != NULL) {
929 size_t size = sname - isp->is_name;
933 (void) strncpy(oname, isp->is_name, size);
935 DBG_CALL(Dbg_sec_redirected(ofl->ofl_lml, isp, oname));
959 if ((isp->is_name == oname) && (isp->is_name[1] == 'g') &&
960 (strncmp(MSG_ORIG(MSG_SCN_GNU_LINKONCE), isp->is_name,
963 if ((oname = (char *)gnu_linkonce_sec(isp->is_name)) !=
964 isp->is_name) {
965 DBG_CALL(Dbg_sec_redirected(ofl->ofl_lml, isp,
975 isp->is_flags |= FLG_IS_COMDAT;
978 DBG_CALL(Dbg_sec_gnu_comdat(ofl->ofl_lml, isp, TRUE,
992 if ((isp->is_name == oname) && (isp->is_flags & FLG_IS_COMDAT) &&
993 ((sname = gnu_comdat_sym(ifl, isp)) != NULL)) {
994 size_t size = sname - isp->is_name;
999 (void) strncpy(oname, isp->is_name, size);
1001 DBG_CALL(Dbg_sec_redirected(ofl->ofl_lml, isp, oname));
1010 DBG_CALL(Dbg_sec_gnu_comdat(ofl->ofl_lml, isp,
1023 (isp->is_name == oname) &&
1024 ((oname = (char *)gnu_split_sec(oname)) != isp->is_name)) {
1025 DBG_CALL(Dbg_sec_redirected(ofl->ofl_lml, isp, oname));
1113 if ((isp->is_flags & FLG_IS_COMDAT) &&
1114 ((err = add_comdat(ofl, osp, isp)) != 1))
1120 set_addralign(ofl, osp, isp);
1140 if (os_attach_isp(ofl, osp, isp,
1157 isp->is_flags |= FLG_IS_SECTREF;
1208 if (isp->is_flags & FLG_IS_DISCARD)
1228 ((shdr = isp_convert_type(isp, SHT_PROGBITS)) == NULL))
1230 if ((isp->is_flags & FLG_IS_COMDAT) &&
1231 (add_comdat(ofl, osp, isp) == S_ERROR))
1243 eh_frame_muldef(ofl, isp);
1298 isp->is_flags |= FLG_IS_SECTREF;
1311 ((isp->is_flags & FLG_IS_DISCARD) == 0) &&
1348 set_addralign(ofl, osp, isp);
1350 if (os_attach_isp(ofl, osp, isp, 0) == 0)