public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/dwz] rawhide: 0.17-3 - Add 0001-dwz-cleanup-allocatable-section-after-non-allocatabl.patch
@ 2026-07-19 19:41 Mark Wielaard
0 siblings, 0 replies; only message in thread
From: Mark Wielaard @ 2026-07-19 19:41 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/dwz
Branch : rawhide
Commit : a5acbbc80674cbf9c0cd564ea15b82576f3fe1df
Author : Mark Wielaard <mjw@redhat.com>
Date : 2026-07-19T19:14:15+02:00
Stats : +38/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/dwz/c/a5acbbc80674cbf9c0cd564ea15b82576f3fe1df?branch=rawhide
Log:
0.17-3 - Add 0001-dwz-cleanup-allocatable-section-after-non-allocatabl.patch
---
diff --git a/0001-dwz-cleanup-allocatable-section-after-non-allocatabl.patch b/0001-dwz-cleanup-allocatable-section-after-non-allocatabl.patch
new file mode 100644
index 0000000..75a86db
--- /dev/null
+++ b/0001-dwz-cleanup-allocatable-section-after-non-allocatabl.patch
@@ -0,0 +1,33 @@
+From 4d8f3bb6cabf28d7b4842971e8c117a4beebf720 Mon Sep 17 00:00:00 2001
+From: Mark Wielaard <mark@klomp.org>
+Date: Sun, 19 Jul 2026 18:45:56 +0200
+Subject: [PATCH] dwz: cleanup allocatable section after non-allocatable error
+
+In dso_write all errors, except the allocatable section one, unlink
+the (temp) output file, end the elf and close the fd.
+
+ * dwz.c (write_dso): Always unlink, elf_end and close after
+ error.
+
+Signed-off-by: Mark Wielaard <mark@klomp.org>
+---
+ dwz.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/dwz.c b/dwz.c
+index a5ce8f867a05..4fe960d5d39e 100644
+--- a/dwz.c
++++ b/dwz.c
+@@ -14492,6 +14492,9 @@ write_dso (DSO *dso, const char *file, struct stat *st, bool save_to_temp)
+ {
+ error (0, 0, "Allocatable section in %s after "
+ "non-allocatable ones", dso->filename);
++ unlink (file);
++ elf_end (elf);
++ close (fd);
+ return 1;
+ }
+ else
+--
+2.55.0
+
diff --git a/dwz.spec b/dwz.spec
index fc0828d..74fc2f6 100644
--- a/dwz.spec
+++ b/dwz.spec
@@ -1,7 +1,7 @@
Summary: DWARF optimization and duplicate removal tool
Name: dwz
Version: 0.17
-Release: 2%{?dist}
+Release: 3%{?dist}
License: GPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND GPL-2.0-or-later AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND LGPL-2.0-or-later
URL: https://sourceware.org/dwz/
Source: https://sourceware.org/ftp/dwz/releases/%{name}-%{version}.tar.xz
@@ -10,6 +10,7 @@ BuildRequires: gcc, gcc-c++, gdb, elfutils-libelf-devel, dejagnu
BuildRequires: make elfutils xxhash-devel xxhash-static
# Patches
+Patch1: 0001-dwz-cleanup-allocatable-section-after-non-allocatabl.patch
%description
The dwz package contains a program that attempts to optimize DWARF
@@ -40,6 +41,9 @@ CFLAGS="" LDFLAGS="" srcdir=$(pwd) make check
%{_mandir}/man1/dwz.1*
%changelog
+* Sun Jul 19 2026 Mark Wielaard <mjw@fedoraproject.org> - 0.17-3
+- Add 0001-dwz-cleanup-allocatable-section-after-non-allocatabl.patch
+
* Wed Jul 15 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0.17-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-19 19:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-19 19:41 [rpms/dwz] rawhide: 0.17-3 - Add 0001-dwz-cleanup-allocatable-section-after-non-allocatabl.patch Mark Wielaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox