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