From 3f43576971009290344a5f1ae31a79c61ca812f1 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Sat, 7 Mar 2015 20:54:10 +0100 Subject: [PATCH] 06-strip-and-debug-pkgs.sh: detect PIE binaries. --- common/hooks/post-install/06-strip-and-debug-pkgs.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common/hooks/post-install/06-strip-and-debug-pkgs.sh b/common/hooks/post-install/06-strip-and-debug-pkgs.sh index 19320c6e1c..fff5c11377 100644 --- a/common/hooks/post-install/06-strip-and-debug-pkgs.sh +++ b/common/hooks/post-install/06-strip-and-debug-pkgs.sh @@ -109,7 +109,11 @@ hook() { msg_red "$pkgver: failed to strip ${f#$PKGDESTDIR}\n" return 1 fi - echo " Stripped library: ${f#$PKGDESTDIR}" + if file $f | grep -q "interpreter "; then + echo " Stripped position-independent executable: ${f#$PKGDESTDIR}" + else + echo " Stripped library: ${f#$PKGDESTDIR}" + fi attach_debug "$f" ;; application/x-archive*)