swh:1:snp:32555a3fd8878f019c2ebd6c964bc1edcaeff337
Raw File
Tip revision: b30a3f6257ed2105259b404d419b4964e363928c authored by Linus Torvalds on 20 September 2010, 23:56:53 UTC
Linux 2.6.36-rc5
Tip revision: b30a3f6
gcc-x86_32-has-stack-protector.sh
#!/bin/sh

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