Blame SOURCES/binutils-2.28-ignore-gold-duplicates.patch

7f163d
diff -rup binutils.orig/ld/ldmain.c binutils-2.28/ld/ldmain.c
7f163d
--- binutils.orig/ld/ldmain.c	2017-06-09 09:08:26.954016429 +0100
7f163d
+++ binutils-2.28/ld/ldmain.c	2017-06-09 09:09:11.307490976 +0100
7f163d
@@ -923,6 +923,10 @@ multiple_definition (struct bfd_link_inf
7f163d
       obfd = h->u.def.section->owner;
7f163d
       break;
7f163d
     case bfd_link_hash_indirect:
7f163d
+      /* PR 21074: The GOLD linker can produce multiple indirect
7f163d
+	 refences to the same symbol.  These can be ignored.  */
7f163d
+      if (bfd_is_ind_section (nsec))
7f163d
+	return;
7f163d
       osec = bfd_ind_section_ptr;
7f163d
       oval = 0;
7f163d
       obfd = NULL;