https://jxself.org/git/linux-libre.git
Raw File
Tip revision: 9f127e25e8c689d023ad7425bcab2205d43a8566 authored by Jason Self on 07 March 2011, 23:18:25 UTC
Linux-libre 2.6.32.32-gnu1
Tip revision: 9f127e2
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