swh:1:snp:32555a3fd8878f019c2ebd6c964bc1edcaeff337
Raw File
Tip revision: 33d930e59a98fa10a0db9f56c7fa2f21a4aef9b9 authored by Linus Torvalds on 16 October 2017, 01:01:12 UTC
Linux 4.14-rc5
Tip revision: 33d930e
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