Print this page
3638 ld confuses files with group sections and files that should lazy load

*** 2341,2351 **** /* * Indicate that this input file has groups to process. Groups are * processed after all input sections have been processed. */ ! ifl->ifl_flags |= FLG_IS_GROUPS; return (1); } /* --- 2341,2351 ---- /* * Indicate that this input file has groups to process. Groups are * processed after all input sections have been processed. */ ! ifl->ifl_flags |= FLG_IF_GROUPS; return (1); } /*
*** 2805,2815 **** * any input sections to their output sections, process any groups. * Groups can contribute COMDAT items, which may get discarded as part * of placement. In addition, COMDAT names may require transformation * to indicate different output section placement. */ ! if (ifl->ifl_flags & FLG_IS_GROUPS) { for (ndx = 1; ndx < ifl->ifl_shnum; ndx++) { Is_desc *isp; if (((isp = ifl->ifl_isdesc[ndx]) == NULL) || (isp->is_shdr->sh_type != SHT_GROUP)) --- 2805,2815 ---- * any input sections to their output sections, process any groups. * Groups can contribute COMDAT items, which may get discarded as part * of placement. In addition, COMDAT names may require transformation * to indicate different output section placement. */ ! if (ifl->ifl_flags & FLG_IF_GROUPS) { for (ndx = 1; ndx < ifl->ifl_shnum; ndx++) { Is_desc *isp; if (((isp = ifl->ifl_isdesc[ndx]) == NULL) || (isp->is_shdr->sh_type != SHT_GROUP))