From d51c5c23ca1145f5be385c937c869c9fc216700d Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Feb 26 2016 13:34:45 +0000 Subject: Import patch to fix symbol versioning bug in 2.26 sources (PR 19698) Resolves: #1312151 --- diff --git a/binutils-rh1312151.patch b/binutils-rh1312151.patch new file mode 100644 index 0000000..e989b86 --- /dev/null +++ b/binutils-rh1312151.patch @@ -0,0 +1,22 @@ +--- binutils-2.26.orig/bfd/elflink.c 2016-02-26 13:21:54.134859610 +0000 ++++ binutils-2.26/bfd/elflink.c 2016-02-26 13:22:49.083168157 +0000 +@@ -555,6 +555,19 @@ bfd_elf_record_link_assignment (bfd *out + if (h == NULL) + return provide; + ++ if (h->versioned == unknown) ++ { ++ /* Set versioned if symbol version is unknown. */ ++ char *version = strrchr (name, ELF_VER_CHR); ++ if (version) ++ { ++ if (version > name && version[-1] != ELF_VER_CHR) ++ h->versioned = versioned_hidden; ++ else ++ h->versioned = versioned; ++ } ++ } ++ + switch (h->root.type) + { + case bfd_link_hash_defined: diff --git a/binutils.spec b/binutils.spec index 668b668..d1ca1e5 100644 --- a/binutils.spec +++ b/binutils.spec @@ -20,7 +20,7 @@ Summary: A GNU collection of binary utilities Name: %{?cross}binutils%{?_with_debug:-debug} Version: 2.26 -Release: 12%{?dist} +Release: 13%{?dist} License: GPLv3+ Group: Development/Tools URL: http://sources.redhat.com/binutils @@ -62,6 +62,8 @@ Patch18: binutils-2.26-fix-compile-warnings.patch Patch19: binutils-2.26-Bsymbolic_PIE.patch # Import H.J.Lu's Kernel LTO patch. Patch20: binutils-2.26-lto.patch +# Import fix for PR 19698 +Patch21: binutils-rh1312151.patch Provides: bundled(libiberty) @@ -190,6 +192,7 @@ using libelf instead of BFD. %patch18 -p1 %patch19 -p1 %patch20 -p1 +%patch21 -p1 # We cannot run autotools as there is an exact requirement of autoconf-2.59. @@ -509,6 +512,10 @@ exit 0 %endif # %{isnative} %changelog +* Fri Feb 26 2016 Nick Clifton 2.26-13 +- Import patch to fix symbol versioning bug in 2.26 sources (PR 19698) + (#1312151) + * Fri Feb 19 2016 Nick Clifton 2.26-12 - Import H.J.Lu's kernel LTO patch. (#1302071)