swh:1:snp:32555a3fd8878f019c2ebd6c964bc1edcaeff337
Raw File
Tip revision: 7284ce6c9f6153d1777df5f310c959724d1bd446 authored by Linus Torvalds on 13 January 2010, 05:15:00 UTC
Linux 2.6.33-rc4
Tip revision: 7284ce6
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