https://jxself.org/git/linux-libre.git
Raw File
Tip revision: 7fa3a98ab25e79c182f1a377a66d58a30129b643 authored by Jason Self on 07 October 2009, 21:39:57 UTC
Linux-libre 2.6.31.3-gnu1
Tip revision: 7fa3a98
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