swh:1:snp:32555a3fd8878f019c2ebd6c964bc1edcaeff337
Raw File
Tip revision: 1f93e4a96c9109378204c147b3eec0d0e8100fde authored by Linus Torvalds on 20 September 2015, 21:32:34 UTC
Linux 4.3-rc2
Tip revision: 1f93e4a
gcc-x86_32-has-stack-protector.sh
#!/bin/sh

echo "int foo(void) { char X[200]; return 3; }" | $* -S -x c -c -O0 -fstack-protector - -o - 2> /dev/null | grep -q "%gs"
if [ "$?" -eq "0" ] ; then
	echo y
else
	echo n
fi
back to top