Staging
v0.5.1
https://github.com/torvalds/linux
Raw File
Tip revision: ec6f34e5b552fb0a52e6aae1a5afbbb1605cc6cc authored by Linus Torvalds on 18 January 2015, 06:02:20 UTC
Linux 3.19-rc5
Tip revision: ec6f34e
gcc-x86_32-has-stack-protector.sh
#!/bin/sh

echo "int foo(void) { char X[200]; return 3; }" | $* -S -x c -c -O0 -fstack-protector - -o - 2> /dev/null | grep -q "%gs"
if [ "$?" -eq "0" ] ; then
	echo y
else
	echo n
fi
back to top