Generate PLT relocs for weak undefined PPC function symbols.
Resolves: #1960667
This commit is contained in:
parent
599325c40c
commit
43e6a26f19
36
binutils-ppc-weak-undefined-plt-relocs.patch
Normal file
36
binutils-ppc-weak-undefined-plt-relocs.patch
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
Only in binutils-2.36.1/bfd: ChangeLog.orig
|
||||||
|
Only in binutils-2.36.1/bfd: ChangeLog.rej
|
||||||
|
diff -rup binutils.orig/bfd/elf32-ppc.c binutils-2.36.1/bfd/elf32-ppc.c
|
||||||
|
--- binutils.orig/bfd/elf32-ppc.c 2021-05-18 11:38:27.644364623 +0100
|
||||||
|
+++ binutils-2.36.1/bfd/elf32-ppc.c 2021-05-18 11:44:19.809184838 +0100
|
||||||
|
@@ -5289,7 +5289,12 @@ allocate_dynrelocs (struct elf_link_hash
|
||||||
|
for (ent = h->plt.plist; ent != NULL; ent = ent->next)
|
||||||
|
if (ent->plt.refcount > 0)
|
||||||
|
{
|
||||||
|
- asection *s = htab->elf.splt;
|
||||||
|
+ asection *s;
|
||||||
|
+
|
||||||
|
+ if (!ensure_undef_dynamic (info, h))
|
||||||
|
+ return FALSE;
|
||||||
|
+
|
||||||
|
+ s = htab->elf.splt;
|
||||||
|
|
||||||
|
if (!dyn)
|
||||||
|
{
|
||||||
|
Only in binutils-2.36.1/bfd: elf32-ppc.c.orig
|
||||||
|
Only in binutils-2.36.1/bfd: elf32-ppc.c.rej
|
||||||
|
diff -rup binutils.orig/bfd/elf64-ppc.c binutils-2.36.1/bfd/elf64-ppc.c
|
||||||
|
--- binutils.orig/bfd/elf64-ppc.c 2021-05-18 11:38:27.646364616 +0100
|
||||||
|
+++ binutils-2.36.1/bfd/elf64-ppc.c 2021-05-18 11:41:01.635847814 +0100
|
||||||
|
@@ -9819,6 +9819,9 @@ allocate_dynrelocs (struct elf_link_hash
|
||||||
|
for (pent = h->plt.plist; pent != NULL; pent = pent->next)
|
||||||
|
if (pent->plt.refcount > 0)
|
||||||
|
{
|
||||||
|
+ if (!ensure_undef_dynamic (info, h))
|
||||||
|
+ return FALSE;
|
||||||
|
+
|
||||||
|
if (!htab->elf.dynamic_sections_created
|
||||||
|
|| h->dynindx == -1)
|
||||||
|
{
|
||||||
|
Only in binutils-2.36.1/bfd: elf64-ppc.c.orig
|
||||||
|
Only in binutils-2.36.1/bfd: elf64-ppc.c.rej
|
@ -39,7 +39,7 @@
|
|||||||
Summary: A GNU collection of binary utilities
|
Summary: A GNU collection of binary utilities
|
||||||
Name: binutils%{?name_cross}%{?_with_debug:-debug}
|
Name: binutils%{?name_cross}%{?_with_debug:-debug}
|
||||||
Version: 2.35.2
|
Version: 2.35.2
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
URL: https://sourceware.org/binutils
|
URL: https://sourceware.org/binutils
|
||||||
|
|
||||||
@ -373,6 +373,10 @@ Patch44: binutils-linker-string-copy.patch
|
|||||||
# Lifetime: Fixed in 2.37
|
# Lifetime: Fixed in 2.37
|
||||||
Patch45: binutils-DWARF-5-FORM_ref_addr.patch
|
Patch45: binutils-DWARF-5-FORM_ref_addr.patch
|
||||||
|
|
||||||
|
# Purpose: Generate PLT relocs for weak undefined PowerPC function symbols.
|
||||||
|
# Lifetime: Fixed in 2.37
|
||||||
|
Patch46: binutils-ppc-weak-undefined-plt-relocs.patch
|
||||||
|
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
Provides: bundled(libiberty)
|
Provides: bundled(libiberty)
|
||||||
@ -958,6 +962,9 @@ exit 0
|
|||||||
|
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue May 18 2021 Nick Clifton <nickc@redhat.com> - 2.35.2-4
|
||||||
|
- Generate PLT relocs for weak undefined PPC function symbols. (#1960667)
|
||||||
|
|
||||||
* Tue May 18 2021 Nick Clifton <nickc@redhat.com> - 2.35.2-3
|
* Tue May 18 2021 Nick Clifton <nickc@redhat.com> - 2.35.2-3
|
||||||
- Fix decoding DW_FORM_ref_addr in DWARF-5 data. (#1960658)
|
- Fix decoding DW_FORM_ref_addr in DWARF-5 data. (#1960658)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user