From d88807d21a839e2dba421a2e7b5464172d0538ce Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mar 07 2018 12:54:09 +0000 Subject: Ignore duplicate symbols generated by GOLD. Resolves: #1458003 --- diff --git a/binutils-2.28-ignore-gold-duplicates.patch b/binutils-2.28-ignore-gold-duplicates.patch new file mode 100644 index 0000000..346f956 --- /dev/null +++ b/binutils-2.28-ignore-gold-duplicates.patch @@ -0,0 +1,14 @@ +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; diff --git a/binutils.spec b/binutils.spec index 77d451b..d555f42 100644 --- a/binutils.spec +++ b/binutils.spec @@ -62,7 +62,7 @@ Summary: A GNU collection of binary utilities Name: %{?cross}binutils%{?_with_debug:-debug} Version: 2.30 -Release: 7%{?dist} +Release: 8%{?dist} License: GPLv3+ Group: Development/Tools URL: https://sourceware.org/binutils @@ -168,6 +168,12 @@ Patch13: binutils-2.30-allow_R_AARCH64-symbols.patch # Lifetime: Fixed in 2.31. Patch14: binutils-speed-up-objdump.patch +# Purpose: Ignore duplicate indirect symbols generated by GOLD. +# Lifetime: Permanent. +# FIXME: This problem needs to be resolved in the FSF sources, but the +# GOLD maintainers seem to be reluctant to address the issue. +Patch15: binutils-2.28-ignore-gold-duplicates.patch + #---------------------------------------------------------------------------- Provides: bundled(libiberty) @@ -307,6 +313,7 @@ using libelf instead of BFD. %patch12 -p1 %patch13 -p1 %patch14 -p1 +%patch15 -p1 # We cannot run autotools as there is an exact requirement of autoconf-2.59. @@ -715,6 +722,9 @@ exit 0 #---------------------------------------------------------------------------- %changelog +* Wed Mar 07 2018 Nick Clifton 2.30-8 +- Ignore duplicate symbols generated by GOLD. (#1458003) + * Mon Mar 05 2018 Nick Clifton 2.30-7 - Speed up objdump. (#1551540)