swh:1:snp:32555a3fd8878f019c2ebd6c964bc1edcaeff337
Raw File
Tip revision: 0ce790e7d736cedc563e1fb4e998babf5a4dbc3d authored by Linus Torvalds on 29 March 2011, 19:09:47 UTC
Linux 2.6.39-rc1
Tip revision: 0ce790e
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