public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/binutils] rawhide: Fix linker testsuite problem for Risc-V
@ 2026-06-11  8:06 Nick Clifton
  0 siblings, 0 replies; only message in thread
From: Nick Clifton @ 2026-06-11  8:06 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/binutils
Branch : rawhide
Commit : 29eedae45531a83ab5bf5b4f9d63263a15246305
Author : Nick Clifton <nickc@redhat.com>
Date   : 2026-06-11T09:06:04+01:00
Stats  : +19/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/binutils/c/29eedae45531a83ab5bf5b4f9d63263a15246305?branch=rawhide

Log:
Fix linker testsuite problem for Risc-V

---
diff --git a/binutils-riscv-testsuite-fixes.patch b/binutils-riscv-testsuite-fixes.patch
index 64e8ab2..ba7ed8e 100644
--- a/binutils-riscv-testsuite-fixes.patch
+++ b/binutils-riscv-testsuite-fixes.patch
@@ -254,3 +254,16 @@ diff -rup binutils-with-gold-2.45.50-beab972c07d,orig/ld/testsuite/lib/ld-lib.ex
      return $text
  }
  
+--- binutils.orig/ld/testsuite/ld-elf/shared.exp	2026-06-10 15:32:21.012274073 +0100
++++ binutils-with-gold-2.46.50-48997323b0f/ld/testsuite/ld-elf/shared.exp	2026-06-10 15:34:41.397899263 +0100
+@@ -1859,6 +1859,10 @@ run_cc_link_tests [list \
+ 	"pr29655.so" \
+     ] \
+ ]
++
++# FIXME: Find out why the Risc-V fails this test.
++setup_xfail "riscv64-*-*"
++
+ # PR 29655 (cont.): Check that in PIC code linked as PDE taking the address
+ # of a function defined in a DSO results in the function address (from GOT)
+ # and not the "canonical PLT" address from the PDE.

diff --git a/binutils.spec b/binutils.spec
index 4d254d9..b5b1ce5 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.46.50
-Release: 10%{?dist}
+Release: 11%{?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
 
@@ -844,11 +844,13 @@ run_target_configuration()
 
     %set_build_flags
 
+%if %{enable_lto}
     # RHEL-121799: Builders may want to restrict the number of CPUs used by
     # the LTO compiler.  The normal way to do this is to set RPM_BUILD_NCPUS.
     # But this only affects the -j option passed to make.  By adding -flto=N
     # we can also restrict the number of threads used by the LTO compiler.
     export CFLAGS="$RPM_OPT_FLAGS -flto=$RPM_BUILD_NCPUS"
+%endif
 
 %ifarch %{power64}
     export CFLAGS="$CFLAGS -Wno-error"
@@ -1511,6 +1513,9 @@ exit 0
 
 #----------------------------------------------------------------------------
 %changelog
+* Thu Jun 11 2026 Nick Clifton <nickc@redhat.com> - 2.46.50-11
+- Fix linker testsuite problem for Risc-V.
+
 * Thu Jun 04 2026 Nick Clifton <nickc@redhat.com> - 2.46.50-10
 - Rebase to commit 48997323b0f
 

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

only message in thread, other threads:[~2026-06-11  8:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-11  8:06 [rpms/binutils] rawhide: Fix linker testsuite problem for Risc-V Nick Clifton

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