public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/mold] rawhide: Fix `gdb-index-dwarf5` test on Fedora 45 (#2504353)
@ 2026-07-22  7:48 Christoph Erhardt
  0 siblings, 0 replies; only message in thread
From: Christoph Erhardt @ 2026-07-22  7:48 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/mold
Branch : rawhide
Commit : 7fe2e2a9ef8aa5daf3b0da71816ed43c67a5a4f1
Author : Christoph Erhardt <fedora@sicherha.de>
Date   : 2026-07-22T08:49:15+02:00
Stats  : +43/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/mold/c/7fe2e2a9ef8aa5daf3b0da71816ed43c67a5a4f1?branch=rawhide

Log:
Fix `gdb-index-dwarf5` test on Fedora 45 (#2504353)

---
diff --git a/0003-Fix-ambiguous-readelf-option-in-gdb-index-dwarf5-tes.patch b/0003-Fix-ambiguous-readelf-option-in-gdb-index-dwarf5-tes.patch
new file mode 100644
index 0000000..58ee77d
--- /dev/null
+++ b/0003-Fix-ambiguous-readelf-option-in-gdb-index-dwarf5-tes.patch
@@ -0,0 +1,39 @@
+From e77e9d52b8fa1aecb88ba5362365880b45491c74 Mon Sep 17 00:00:00 2001
+Message-ID: <e77e9d52b8fa1aecb88ba5362365880b45491c74.1784701743.git.github@sicherha.de>
+From: Andreas Schwab <schwab@suse.de>
+Date: Tue, 19 May 2026 16:34:57 +0200
+Subject: [PATCH] Fix ambiguous readelf option in gdb-index-dwarf5 test
+
+The binutils readelf command now accepts a --debug-dir=<DIR> option which
+makes --debug=gdb_index ambiguous.
+---
+ test/gdb-index-dwarf5.sh | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/test/gdb-index-dwarf5.sh b/test/gdb-index-dwarf5.sh
+index 21057b44..e94ca2f2 100755
+--- a/test/gdb-index-dwarf5.sh
++++ b/test/gdb-index-dwarf5.sh
+@@ -63,8 +63,8 @@ $CC -c -o $t/d.o $t/d.c -fPIC -g -ggnu-pubnames -gdwarf-5 -ffunction-sections
+ 
+ $CC -B. -shared -o $t/e.so $t/a.o $t/b.o $t/c.o $t/d.o -Wl,--gdb-index
+ readelf -WS $t/e.so 2> /dev/null | grep -F .gdb_index
+-readelf --debug=gdb_index $t/e.so 2> /dev/null | grep 'fn1: .* \[global, function\]'
+-readelf --debug=gdb_index $t/e.so 2> /dev/null | grep 'char: .* \[static, type\]'
++readelf --debug-dump=gdb_index $t/e.so 2> /dev/null | grep 'fn1: .* \[global, function\]'
++readelf --debug-dump=gdb_index $t/e.so 2> /dev/null | grep 'char: .* \[static, type\]'
+ 
+ cat <<EOF | $CC -c -o $t/f.o -fPIC -g -ggnu-pubnames -gdwarf-5 -xc - -gz
+ void fn1();
+@@ -76,7 +76,7 @@ EOF
+ 
+ $CC -B. -o $t/exe $t/e.so $t/f.o -Wl,--gdb-index
+ readelf -WS $t/exe 2> /dev/null | grep -F .gdb_index
+-readelf --debug=gdb_index $t/exe 2> /dev/null | grep 'main: .* \[global, function\]'
++readelf --debug-dump=gdb_index $t/exe 2> /dev/null | grep 'main: .* \[global, function\]'
+ 
+ $QEMU $t/exe | grep 'Hello world'
+ 
+-- 
+2.55.0
+

diff --git a/mold.spec b/mold.spec
index 2a0b1a8..48988b6 100644
--- a/mold.spec
+++ b/mold.spec
@@ -20,6 +20,10 @@ Patch0:         0001-Use-system-compatible-include-path-for-xxhash.h.patch
 # Fix `textrel2` test on Fedora 44 (https://github.com/rui314/mold/pull/1547)
 Patch1:         0002-Fix-textrel2-test-on-Fedora-44.patch
 
+# Fix `gdb-index-dwarf5` test on Fedora 45
+# (https://github.com/rui314/mold/pull/1586)
+Patch2:         0003-Fix-ambiguous-readelf-option-in-gdb-index-dwarf5-tes.patch
+
 BuildRequires:  blake3-devel
 BuildRequires:  cmake
 %if %{use_gcc_toolset}

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

only message in thread, other threads:[~2026-07-22  7:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-22  7:48 [rpms/mold] rawhide: Fix `gdb-index-dwarf5` test on Fedora 45 (#2504353) Christoph Erhardt

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