From 147238391248d8134fa43e1107a5bbd35664c989 Mon Sep 17 00:00:00 2001 From: eabdullin Date: Thu, 28 Mar 2024 09:49:04 +0000 Subject: [PATCH] import CS binutils-2.35.2-43.el9 --- SOURCES/binutils-verdef.patch | 12 ++++++++++++ SPECS/binutils.spec | 10 +++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 SOURCES/binutils-verdef.patch diff --git a/SOURCES/binutils-verdef.patch b/SOURCES/binutils-verdef.patch new file mode 100644 index 0000000..f24a22a --- /dev/null +++ b/SOURCES/binutils-verdef.patch @@ -0,0 +1,12 @@ +--- binutils.orig/bfd/elflink.c 2024-01-25 11:04:09.991925976 +0000 ++++ binutils-2.35.2/bfd/elflink.c 2024-01-25 11:04:18.164921403 +0000 +@@ -4913,7 +4913,8 @@ elf_link_add_object_symbols (bfd *abfd, + || h->root.type == bfd_link_hash_warning) + h = (struct elf_link_hash_entry *) h->root.u.i.link; + +- if (elf_tdata (abfd)->verdef != NULL ++ if (h->versioned != unversioned ++ && elf_tdata (abfd)->verdef != NULL + && vernum > 1 + && definition) + h->verinfo.verdef = &elf_tdata (abfd)->verdef[vernum - 1]; diff --git a/SPECS/binutils.spec b/SPECS/binutils.spec index 05ce0c0..dc253bf 100644 --- a/SPECS/binutils.spec +++ b/SPECS/binutils.spec @@ -2,7 +2,7 @@ Summary: A GNU collection of binary utilities Name: binutils%{?_with_debug:-debug} Version: 2.35.2 -Release: 42%{?dist} +Release: 43%{?dist} License: GPLv3+ URL: https://sourceware.org/binutils @@ -440,6 +440,11 @@ Patch65: binutils.gold.dwarf-5-support.patch # Purpose: Add support for the AArch64 'flagm' extenstion to the assembler. # Lifetime: 2.36 Patch66: binutils-aarch64-flagm.patch + +# Purpose: Don't set version info on unversioned symbols. +# Lifetime: Fixed in 2.38 +Patch67: binutils-verdef.patch + #---------------------------------------------------------------------------- Provides: bundled(libiberty) @@ -1280,6 +1285,9 @@ exit 0 #---------------------------------------------------------------------------- %changelog +* Thu Jan 25 2024 Nick Clifton - 2.35.2-43 +- Do not set version info on unversion symbols. (RHEL-22601) + * Wed Apr 26 2023 Nick Clifton - 2.35.2-42 - Add support for the AArch64 'flagm' extenstion to the assembler. (#2189304)