Blame 0001-find-debuginfo.sh-Handle-position-independent-execut.patch
|
Panu Matilainen |
57b4e9 |
From 0917da26bf0722fcf40de1c5a61412f23982d131 Mon Sep 17 00:00:00 2001
|
|
Panu Matilainen |
57b4e9 |
Message-Id: <0917da26bf0722fcf40de1c5a61412f23982d131.1554881054.git.pmatilai@redhat.com>
|
|
Panu Matilainen |
57b4e9 |
From: Ernestas Kulik <ekulik@redhat.com>
|
|
Panu Matilainen |
57b4e9 |
Date: Mon, 25 Feb 2019 16:34:06 +0100
|
|
Panu Matilainen |
57b4e9 |
Subject: [PATCH] find-debuginfo.sh: Handle position-independent executables
|
|
Panu Matilainen |
57b4e9 |
|
|
Panu Matilainen |
57b4e9 |
Since file 5.33, PIEs are identified by a new MIME type, meaning that,
|
|
Panu Matilainen |
57b4e9 |
currently, for such executables, the .gnu_debugdata section is not
|
|
Panu Matilainen |
57b4e9 |
added, even if -m is passed.
|
|
Panu Matilainen |
57b4e9 |
|
|
Panu Matilainen |
57b4e9 |
Signed-off-by: Ernestas Kulik <ekulik@redhat.com>
|
|
Panu Matilainen |
57b4e9 |
---
|
|
Panu Matilainen |
57b4e9 |
scripts/find-debuginfo.sh | 1 +
|
|
Panu Matilainen |
57b4e9 |
1 file changed, 1 insertion(+)
|
|
Panu Matilainen |
57b4e9 |
|
|
Panu Matilainen |
57b4e9 |
diff --git a/scripts/find-debuginfo.sh b/scripts/find-debuginfo.sh
|
|
Panu Matilainen |
57b4e9 |
index 967814509..6e3ba2ce0 100755
|
|
Panu Matilainen |
57b4e9 |
--- a/scripts/find-debuginfo.sh
|
|
Panu Matilainen |
57b4e9 |
+++ b/scripts/find-debuginfo.sh
|
|
Panu Matilainen |
57b4e9 |
@@ -412,6 +412,7 @@ do_file()
|
|
Panu Matilainen |
57b4e9 |
case "$(file -bi "$f")" in
|
|
Panu Matilainen |
57b4e9 |
application/x-sharedlib*) skip_mini=false ;;
|
|
Panu Matilainen |
57b4e9 |
application/x-executable*) skip_mini=false ;;
|
|
Panu Matilainen |
57b4e9 |
+ application/x-pie-executable*) skip_mini=false ;;
|
|
Panu Matilainen |
57b4e9 |
esac
|
|
Panu Matilainen |
57b4e9 |
$skip_mini || add_minidebug "${debugfn}" "$f"
|
|
Panu Matilainen |
57b4e9 |
fi
|
|
Panu Matilainen |
57b4e9 |
--
|
|
Panu Matilainen |
57b4e9 |
2.20.1
|
|
Panu Matilainen |
57b4e9 |
|