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