hooks/post-install/06-strip-and-debug-pkgs.sh: bail out on non-PIE binaries in PIE builds.
Not tested extensively, in doubt needs twerking.
This commit is contained in:
@@ -99,6 +99,10 @@ hook() {
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
echo " Stripped executable: ${f#$PKGDESTDIR}"
|
echo " Stripped executable: ${f#$PKGDESTDIR}"
|
||||||
|
if [ -z "$nopie" ]; then
|
||||||
|
msg_red "$pkgver: non-PIE executable found in PIE build: ${f#$PKGDESTDIR}\n"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
attach_debug "$f"
|
attach_debug "$f"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user