public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Christoph Erhardt <fedora@sicherha.de>
To: git-commits@fedoraproject.org
Subject: [rpms/mold] rawhide: Fix `gdb-index-dwarf5` test on Fedora 45 (#2504353)
Date: Wed, 22 Jul 2026 07:48:02 GMT	[thread overview]
Message-ID: <178470648233.1.6068265769622974133.rpms-mold-7fe2e2a9ef8a@fedoraproject.org> (raw)

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}

                 reply	other threads:[~2026-07-22  7:48 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=178470648233.1.6068265769622974133.rpms-mold-7fe2e2a9ef8a@fedoraproject.org \
    --to=fedora@sicherha.de \
    --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