Blame view

scripts/gcc-x86_32-has-stack-protector.sh 184 Bytes
60a5317ff   Tejun Heo   x86: implement x8...
1
  #!/bin/sh
b1e0d8b70   Jean Delvare   kbuild: Fix gcc -...
2
  echo "int foo(void) { char X[200]; return 3; }" | $* -S -x c -c -O0 -fstack-protector - -o - 2> /dev/null | grep -q "%gs"
60a5317ff   Tejun Heo   x86: implement x8...
3
4
5
6
7
  if [ "$?" -eq "0" ] ; then
  	echo y
  else
  	echo n
  fi