swh:1:snp:77163734605b0ec556b01d897b7bb4a7e30d46b6
Raw File
Tip revision: 90a8a73c06cc32b609a880d48449d7083327e11a authored by Linus Torvalds on 21 December 2010, 19:26:40 UTC
Linux 2.6.37-rc7
Tip revision: 90a8a73
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