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

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