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

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