https://jxself.org/git/linux-libre.git
Raw File
Tip revision: db3183ad32c2e96ceb87f9a7756e2aa70e41f5d6 authored by Jason Self on 26 April 2010, 14:48:36 UTC
Linux-libre 2.6.33.3-gnu1
Tip revision: db3183a
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