Blame view

scripts/gcc-x86_32-has-stack-protector.sh 183 Bytes
60a5317ff   Tejun Heo   x86: implement x8...
1
  #!/bin/sh
ebd9026d9   Ingo Molnar   stackprotector: f...
2
  echo "int foo(void) { char X[200]; return 3; }" | $* -S -xc -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