Correction for plugin as-needed patch.

Resolves: #1889763
This commit is contained in:
Nick Clifton 2020-10-28 21:18:47 +00:00
parent 45e67f9ccb
commit a1dc8e2d32
2 changed files with 20 additions and 1 deletions

View File

@ -81,3 +81,16 @@ diff -rup binutils.orig/bfd/elflink.c binutils-2.35.1/bfd/elflink.c
if (! bfd_elf_link_record_dynamic_symbol (info, h)) if (! bfd_elf_link_record_dynamic_symbol (info, h))
goto error_free_vers; goto error_free_vers;
--- binutils.orig/bfd/elflink.c 2020-10-28 15:56:39.444286352 +0000
+++ binutils-2.35.1/bfd/elflink.c 2020-10-28 21:16:49.208917109 +0000
@@ -4972,7 +4972,9 @@ elf_link_add_object_symbols (bfd *abfd,
if (! dynamic)
{
- if (! definition)
+ if (abfd->flags & BFD_PLUGIN)
+ ;
+ else if (! definition)
{
h->ref_regular = 1;
if (bind != STB_WEAK)

View File

@ -2,7 +2,7 @@
Summary: A GNU collection of binary utilities Summary: A GNU collection of binary utilities
Name: %{?cross}binutils%{?_with_debug:-debug} Name: %{?cross}binutils%{?_with_debug:-debug}
Version: 2.35.1 Version: 2.35.1
Release: 8%{?dist} Release: 9%{?dist}
License: GPLv3+ License: GPLv3+
URL: https://sourceware.org/binutils URL: https://sourceware.org/binutils
@ -259,6 +259,9 @@ Patch27: binutils-recursive-debuglink-following.patch
# Lifetime: Fixed in 2.36 # Lifetime: Fixed in 2.36
Patch28: binutils-dwarf-type-sign.patch Patch28: binutils-dwarf-type-sign.patch
# XXXX
Patch29: binutils-debugging.patch
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
Provides: bundled(libiberty) Provides: bundled(libiberty)
@ -832,6 +835,9 @@ exit 0
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
%changelog %changelog
* Wed Oct 28 2020 Nick Clifton <nickc@redhat.com> - 2.35.1-9
- Correction for plugin as-needed patch. (#1889763)
* Tue Oct 27 2020 Nick Clifton <nickc@redhat.com> - 2.35.1-8 * Tue Oct 27 2020 Nick Clifton <nickc@redhat.com> - 2.35.1-8
- Really fix erroneous decoding of LEB128 values. (#1891171) - Really fix erroneous decoding of LEB128 values. (#1891171)