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
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue