alexk / rpms / rpm

Forked from rpms/rpm 2 years ago
Clone
219cf7
From f2bc669cd0a080792522dd1bb7f50ef7025f16f0 Mon Sep 17 00:00:00 2001
219cf7
From: Mark Wielaard <mark@klomp.org>
219cf7
Date: Sat, 21 Jul 2018 10:13:04 +0200
219cf7
Subject: [PATCH] find-debuginfo.sh: decompress DWARF compressed ELF sections
219cf7
219cf7
debugedit and dwz do not support DWARF compressed ELF sections, let's
219cf7
just decompress those before extracting debuginfo.
219cf7
219cf7
Tested-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
219cf7
---
219cf7
 scripts/find-debuginfo.sh | 3 +++
219cf7
 1 file changed, 3 insertions(+)
219cf7
219cf7
diff --git a/scripts/find-debuginfo.sh b/scripts/find-debuginfo.sh
219cf7
index 90a44942d..7b01bc036 100755
219cf7
--- a/scripts/find-debuginfo.sh
219cf7
+++ b/scripts/find-debuginfo.sh
219cf7
@@ -357,6 +357,9 @@ do_file()
219cf7
   get_debugfn "$f"
219cf7
   [ -f "${debugfn}" ] && return
219cf7
 
219cf7
+  echo "explicitly decompress any DWARF compressed ELF sections in $f"
219cf7
+  eu-elfcompress -q -p -t none "$f"
219cf7
+
219cf7
   echo "extracting debug info from $f"
219cf7
   # See also cpio SOURCEFILE copy. Directories must match up.
219cf7
   debug_base_name="$RPM_BUILD_DIR"
219cf7
-- 
219cf7
2.18.0
219cf7