Fix seg-fault in AArch64 linker when building u-boot.

Resolves: RHEL-78233
This commit is contained in:
Nick Clifton 2025-02-07 12:38:32 +00:00
parent 7a53624ec9
commit eedb416ce6
2 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,12 @@
--- binutils-2.41.orig/bfd/elfnn-aarch64.c 2025-02-07 11:44:36.953219415 +0000
+++ binutils-2.41/bfd/elfnn-aarch64.c 2025-02-07 11:44:46.021239972 +0000
@@ -10264,7 +10264,8 @@ elfNN_aarch64_init_small_plt0_entry (bfd
/* PR 26312: Explicitly set the sh_entsize to 0 so that
consumers do not think that the section contains fixed
sized objects. */
- elf_section_data (htab->root.splt->output_section)->this_hdr.sh_entsize = 0;
+ if (elf_section_data (htab->root.splt->output_section) != NULL)
+ elf_section_data (htab->root.splt->output_section)->this_hdr.sh_entsize = 0;
plt_got_2nd_ent = (htab->root.sgotplt->output_section->vma
+ htab->root.sgotplt->output_offset

View File

@ -2,7 +2,7 @@
Summary: A GNU collection of binary utilities
Name: binutils%{?_with_debug:-debug}
Version: 2.41
Release: 52%{?dist}
Release: 53%{?dist}
License: GPL-3.0-or-later AND (GPL-3.0-or-later WITH Bison-exception-2.2) AND (LGPL-2.0-or-later WITH GCC-exception-2.0) AND BSD-3-Clause AND GFDL-1.3-or-later AND GPL-2.0-or-later AND LGPL-2.1-or-later AND LGPL-2.0-or-later
URL: https://sourceware.org/binutils
@ -371,6 +371,10 @@ Patch57: binutils-s390-arch15-part-15.patch
# Lifetime: Fixed in 2.42
Patch58: binutils-Intel-APX-part-1-extra-relocs.patch
# Purpose: Fixes an illegal memory access by the AArch64 linker when constructing the small PLT
# Lifetime: Fixed in 2.45
Patch59: binutils-aarch64-small-plt0.patch
#----------------------------------------------------------------------------
# Purpose: Workaround for an unresolved bug in ppc gcc
@ -1412,6 +1416,9 @@ exit 0
#----------------------------------------------------------------------------
%changelog
* Fri Feb 07 2025 Nick Clifton <nickc@redhat.com> - 2.41-53
- Fix seg-fault in AArch64 linker when building u-boot. (RHEL-78233)
* Mon Jan 20 2025 Nick Clifton <nickc@redhat.com> - 2.41-52
- Add support for more Intel APX relocs. (RHEL-74437)