PR26198 MinGW failure to link regular object file and LTO object file

PR 26198
	* coffgen.c (_bfd_coff_section_already_linked): Allow for plugin
	objects both before and after normal object files.
	* elflink.c (_bfd_elf_section_already_linked): Likewise.
This commit is contained in:
Markus Böck
2020-07-15 08:31:30 +09:30
committed by Alan Modra
parent 8e58ef803c
commit e8a83e931e
3 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,11 @@
2020-07-15 Markus Böck <markus.boeck02@gmail.com>
Alan Modra <amodra@gmail.com>
PR 26198
* coffgen.c (_bfd_coff_section_already_linked): Allow for plugin
objects both before and after normal object files.
* elflink.c (_bfd_elf_section_already_linked): Likewise.
2020-07-10 Alan Modra <amodra@gmail.com>
* elf64-ppc.h (struct ppc64_elf_params): Add power10_stubs.

View File

@ -2662,7 +2662,8 @@ _bfd_coff_section_already_linked (bfd *abfd,
.gnu.linkonce.*.<key>. */
if (((s_comdat != NULL) == (l_comdat != NULL)
&& strcmp (name, l->sec->name) == 0)
|| (l->sec->owner->flags & BFD_PLUGIN) != 0)
|| (l->sec->owner->flags & BFD_PLUGIN) != 0
|| (sec->owner->flags & BFD_PLUGIN) != 0)
{
/* The section has already been linked. See if we should
issue a warning. */

View File

@ -14534,7 +14534,8 @@ _bfd_elf_section_already_linked (bfd *abfd,
if (((flags & SEC_GROUP) == (l->sec->flags & SEC_GROUP)
&& ((flags & SEC_GROUP) != 0
|| strcmp (name, l->sec->name) == 0))
|| (l->sec->owner->flags & BFD_PLUGIN) != 0)
|| (l->sec->owner->flags & BFD_PLUGIN) != 0
|| (sec->owner->flags & BFD_PLUGIN) != 0)
{
/* The section has already been linked. See if we should
issue a warning. */