https://github.com/torvalds/linux
Raw File
Tip revision: 50167000e1f0c7ccf9179ae5f545a5723323b855 authored by jadr2ddude on 28 March 2016, 20:19:40 UTC
Add -lintl to Allow the Info to Compile
Tip revision: 5016700
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