swh:1:snp:49cd9498d6cccc5e78252c27dcb645bcf7bf0c91
Raw File
Tip revision: 9e895ace5d82df8929b16f58e9f515f6d54ab82d authored by Linus Torvalds on 22 June 2013, 19:47:31 UTC
Linux 3.10-rc7
Tip revision: 9e895ac
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