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:
parent
1b92f4c9e1
commit
fb830a2a37
|
@ -99,6 +99,10 @@ hook() {
|
|||
return 1
|
||||
fi
|
||||
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"
|
||||
fi
|
||||
;;
|
||||
|
|
Loading…
Reference in New Issue