swh:1:snp:173f8deb0c56c557784b4fd217e7608ac6197844
Raw File
Tip revision: 100b33c8bd8a3235fd0b7948338d6cbb3db3c63d authored by Linus Torvalds on 08 February 2011, 00:03:17 UTC
Linux 2.6.38-rc4
Tip revision: 100b33c
gcc-x86_64-has-stack-protector.sh
#!/bin/sh

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