teknoraver / rpms / rpm

Forked from rpms/rpm 3 months ago
Clone

Blame SOURCES/0001-find-debuginfo.sh-decompress-DWARF-compressed-ELF-se.patch

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