Blame 4.14.1-find-debuginfo-pie.patch
|
Mark Wielaard |
43ea91 |
commit 7145bd4d6edd1622585d7b18b8bba9a71cd41e2b
|
|
Mark Wielaard |
43ea91 |
Author: Mark Wielaard <mark@klomp.org>
|
|
Mark Wielaard |
43ea91 |
Date: Tue May 22 22:12:11 2018 +0200
|
|
Mark Wielaard |
43ea91 |
|
|
Mark Wielaard |
43ea91 |
find-debuginfo.sh: Handle application/x-pie-executable (file 5.33 output).
|
|
Mark Wielaard |
43ea91 |
|
|
Mark Wielaard |
43ea91 |
A new version of file (5.33) changed the output for PIE executables.
|
|
Mark Wielaard |
43ea91 |
Which are now represented as application/x-pie-executable; charset=binary.
|
|
Mark Wielaard |
43ea91 |
|
|
Mark Wielaard |
43ea91 |
The following change simply recognizes that binary format as one for
|
|
Mark Wielaard |
43ea91 |
which -g applies. This fixes accidental stripping of the .symtab in
|
|
Mark Wielaard |
43ea91 |
glibc (which use -g to keep that symbol table).
|
|
Mark Wielaard |
43ea91 |
|
|
Mark Wielaard |
43ea91 |
https://bugzilla.redhat.com/show_bug.cgi?id=1581224
|
|
Mark Wielaard |
43ea91 |
|
|
Mark Wielaard |
43ea91 |
Signed-off-by: Mark Wielaard <mark@klomp.org>
|
|
Mark Wielaard |
43ea91 |
|
|
Mark Wielaard |
43ea91 |
diff --git a/scripts/find-debuginfo.sh b/scripts/find-debuginfo.sh
|
|
Mark Wielaard |
43ea91 |
index a7c2db0..90a4494 100755
|
|
Mark Wielaard |
43ea91 |
--- a/scripts/find-debuginfo.sh
|
|
Mark Wielaard |
43ea91 |
+++ b/scripts/find-debuginfo.sh
|
|
Mark Wielaard |
43ea91 |
@@ -235,6 +235,7 @@ strip_to_debug()
|
|
Mark Wielaard |
43ea91 |
$strip_g && case "$(file -bi "$2")" in
|
|
Mark Wielaard |
43ea91 |
application/x-sharedlib*) g=-g ;;
|
|
Mark Wielaard |
43ea91 |
application/x-executable*) g=-g ;;
|
|
Mark Wielaard |
43ea91 |
+ application/x-pie-executable*) g=-g ;;
|
|
Mark Wielaard |
43ea91 |
esac
|
|
Mark Wielaard |
43ea91 |
eu-strip --remove-comment $r $g ${keep_remove_args} -f "$1" "$2" || exit
|
|
Mark Wielaard |
43ea91 |
chmod 444 "$1" || exit
|