public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/binutils] rawhide: Another attempt to remove global static variables from libbfd.so.  (#2564442)
@ 2026-11-05 13:14 Nick Clifton
  0 siblings, 0 replies; only message in thread
From: Nick Clifton @ 2026-11-05 13:14 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/binutils
Branch : rawhide
Commit : c7db0712b19f098d96021b31f212d70f9cd4ba9c
Author : Nick Clifton <nickc@redhat.com>
Date   : 2026-11-05T13:14:00+00:00
Stats  : +39/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/binutils/c/c7db0712b19f098d96021b31f212d70f9cd4ba9c?branch=rawhide

Log:
Another attempt to remove global static variables from libbfd.so.  (#2564442)

---
diff --git a/binutils-no-static-globals-in-libbfd.so.patch b/binutils-no-static-globals-in-libbfd.so.patch
index ffbebaf..5d439b8 100644
--- a/binutils-no-static-globals-in-libbfd.so.patch
+++ b/binutils-no-static-globals-in-libbfd.so.patch
@@ -79,3 +79,38 @@ diff -rup orig/bfd/bfd.c binutils-with-gold-2.47.50-86187fd72fd/bfd/bfd.c
  }
  
  static THREAD_LOCAL char *_bfd_error_buf;
+diff -rup orig/bfd/bfd.c binutils-with-gold-2.47.50-86187fd72fd/bfd/bfd.c
+--- orig/bfd/bfd.c	2026-11-05 09:50:11.390674033 +0000
++++ binutils-with-gold-2.47.50-86187fd72fd/bfd/bfd.c	2026-11-05 09:51:22.915859845 +0000
+@@ -852,11 +852,11 @@ const char *const bfd_errmsgs[] =
+   N_("#<invalid error code>")
+ };
+ 
+-static THREAD_LOCAL bfd_error_type local_bfd_error;
+-
+ static inline bfd_error_type
+ get_set_bfd_error (bfd_error_type e)
+ {
++  static THREAD_LOCAL bfd_error_type local_bfd_error;
++
+   if (e != bfd_error_invalid_error_code)
+     local_bfd_error = e;
+   return local_bfd_error;
+diff -rup orig/bfd/bfd.c binutils-with-gold-2.47.50-86187fd72fd/bfd/bfd.c
+--- orig/bfd/bfd.c	2026-11-05 10:28:02.895308077 +0000
++++ binutils-with-gold-2.47.50-86187fd72fd/bfd/bfd.c	2026-11-05 10:30:30.643100505 +0000
+@@ -855,11 +855,11 @@ const char *const bfd_errmsgs[] =
+ static inline bfd_error_type
+ get_set_bfd_error (bfd_error_type e)
+ {
+-  static THREAD_LOCAL bfd_error_type local_bfd_error;
++  static bfd_error_type _local_bfd_error;
+ 
+   if (e != bfd_error_invalid_error_code)
+-    local_bfd_error = e;
+-  return local_bfd_error;
++    _local_bfd_error = e;
++  return _local_bfd_error;
+ }
+ 
+ static THREAD_LOCAL char *_bfd_error_buf;

diff --git a/binutils.spec b/binutils.spec
index f44d736..ce750be 100644
--- a/binutils.spec
+++ b/binutils.spec
@@ -7,7 +7,7 @@ Name: binutils%{?_with_debug:-debug}
 # The variable %%{source} (see below) should be set to indicate which of these
 # origins is being used.
 Version: 2.47.50
-Release: 23%{?dist}
+Release: 24%{?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
 
@@ -1841,6 +1841,9 @@ exit 0
 
 #----------------------------------------------------------------------------
 %changelog
+* Thu  Nov 05 2026 Nick Clifton <nickc@redhat.com> - 2.47.50-24
+- Another attempt to remove global static variables from libbfd.so.  (#2564442)
+
 * Mon Nov 02 2026 Nick Clifton <nickc@redhat.com> - 2.47.50-23
 - Use -lzstd in the libbfd.so script.  (#2493579)
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-05 13:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-05 13:14 [rpms/binutils] rawhide: Another attempt to remove global static variables from libbfd.so. (#2564442) Nick Clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox