swh:1:snp:32555a3fd8878f019c2ebd6c964bc1edcaeff337
Raw File
Tip revision: 64f1607ffbbc772685733ea63e6f7f4183df1b16 authored by Linus Torvalds on 13 August 2009, 22:43:34 UTC
Linux 2.6.31-rc6
Tip revision: 64f1607
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