Skip zero-sized sections since there is no need to do ICF on them.
* icf.cc (Icf::find_identical_sections): Skip zero-sized sections.
+2020-10-13 H.J. Lu <hongjiu.lu@intel.com>
+
+ * icf.cc (Icf::find_identical_sections): Skip zero-sized sections.
+
2020-10-09 Alan Modra <amodra@gmail.com>
* powerpc.cc (Powerpc_relobj::do_relocate_sections): Don't do
for (unsigned int i = 0; i < (*p)->shnum(); ++i)
{
+ if ((*p)->section_size(i) == 0)
+ continue;
const std::string section_name = (*p)->section_name(i);
if (!is_section_foldable_candidate(section_name))
{