https://jxself.org/git/linux-libre.git
Raw File
Tip revision: 94f2d9522b0e8c1e9d75fd6fe7d33bbfedc1606c authored by Jason Self on 19 March 2012, 15:58:36 UTC
Linux-libre 3.0.25-gnu1
Tip revision: 94f2d95
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