alexk / rpms / rpm

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