When excluding SHF_LINK_ORDER sections that happen to have SEC_KEEP
set, we need to set SEC_EXCLUDE here to avoid a problem later.
* ldelf.c (ldelf_before_place_orphans): Set SEC_EXCLUDE for
discarded sections.
+2020-07-29 Alan Modra <amodra@gmail.com>
+
+ * ldelf.c (ldelf_before_place_orphans): Set SEC_EXCLUDE for
+ discarded sections.
+
2020-07-28 Alan Modra <amodra@gmail.com>
* ldlang.c (lang_check): Don't complain about relocs or merge
if (discarded_section (linked_to_sec))
{
isec->output_section = bfd_abs_section_ptr;
+ isec->flags |= SEC_EXCLUDE;
break;
}
}