public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Nick Clifton <nickc@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/binutils] rawhide: Another attempt to remove global static variables from libbfd.so.  (#2564442)
Date: Thu, 05 Nov 2026 13:14:28 GMT	[thread overview]
Message-ID: <179388446868.1.12034398760823868230.rpms-binutils-c7db0712b19f@fedoraproject.org> (raw)

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)
 

                 reply	other threads:[~2026-11-05 13:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179388446868.1.12034398760823868230.rpms-binutils-c7db0712b19f@fedoraproject.org \
    --to=nickc@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox