Blame view

scripts/gcc-x86_64-has-stack-protector.sh 209 Bytes
4f7fd4d7a   Arjan van de Ven   [PATCH] Add the -...
1
  #!/bin/sh
82031ea29   Sebastian Andrzej Siewior   scripts/has-stack...
2
  echo "int foo(void) { char X[200]; return 3; }" | $* -S -x c -c -O0 -mcmodel=kernel -fno-PIE -fstack-protector - -o - 2> /dev/null | grep -q "%gs"
4f7fd4d7a   Arjan van de Ven   [PATCH] Add the -...
3
  if [ "$?" -eq "0" ] ; then
5d707e9c8   Tejun Heo   stackprotector: u...
4
5
6
  	echo y
  else
  	echo n
4f7fd4d7a   Arjan van de Ven   [PATCH] Add the -...
7
  fi