public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/binutils] rawhide: Restore building the gold linker
@ 2026-08-13  9:00 Nick Clifton
  0 siblings, 0 replies; only message in thread
From: Nick Clifton @ 2026-08-13  9:00 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/binutils
Branch : rawhide
Commit : 9f66e09750c71608fb0a9ea7d232fd36be8f7ec1
Author : Nick Clifton <nickc@redhat.com>
Date   : 2026-08-13T10:00:35+01:00
Stats  : +16/-4 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/binutils/c/9f66e09750c71608fb0a9ea7d232fd36be8f7ec1?branch=rawhide

Log:
Restore building the gold linker

---
diff --git a/binutils.spec b/binutils.spec
index 3d05813..9c81204 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: 1%{?dist}
+Release: 2%{?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
 
@@ -156,8 +156,17 @@ URL: https://sourceware.org/binutils
 # Default: Use the libztsd-devel library.
 %bcond_without zstd
 
-# The gold linker is now deprecated.
+# Note - in the future the gold linker will become deprecated.
+%if 0%{?rhel} >= 11
+%bcond_with gold
+%else
+%ifnarch riscv64
 %bcond_without gold
+%else
+# RISC-V does not have ld.gold thus disable by default.
+%bcond_with gold
+%endif
+%endif
 
 # Allow the user to override the compiler used to build the binutils.
 # The default build compiler is gcc if %%toolchain is not clang.
@@ -1365,8 +1374,8 @@ exit 0
 %{_bindir}/[!l]*
 # %%verify(symlink) does not work for some reason, so using "owner" instead.
 %verify(owner) %{_bindir}/ld
-# %%verify(mtime) does not work, probably because of the alternatives command in the %%post stage, so using "owner" instead.  (#2277349)
-%verify(owner) %{_bindir}/ld.bfd
+# %%verify(mtime) does not work, probably because of the alternatives command in the %%post stage, so using "not mtime" instead.  (#2277349)(RHEL-238406)
+%verify(not mtime) %{_bindir}/ld.bfd
 
 %if %{with gprofng}
 %exclude %{_bindir}/gp-*
@@ -1492,6 +1501,9 @@ exit 0
 
 #----------------------------------------------------------------------------
 %changelog
+* Thu Aug 13 2026 Nick Clifton <nickc@redhat.com> - 2.47.50-2
+- Re-enable the gold linker - for now.
+
 * Wed Aug 12 2026 Nick Clifton <nickc@redhat.com> - 2.47.50-1
 - Rebase to commit 4e8ba93fdb2.
 - Disable the gold linker for Rawhide as well.

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

only message in thread, other threads:[~2026-08-13  9:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-13  9:00 [rpms/binutils] rawhide: Restore building the gold linker Nick Clifton

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