swh:1:snp:77163734605b0ec556b01d897b7bb4a7e30d46b6
Raw File
Tip revision: 29275254caedfedce960cfe6df24b90cb04fe431 authored by Linus Torvalds on 06 February 2010, 22:17:12 UTC
Linux 2.6.33-rc7
Tip revision: 2927525
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