blob: 29493dc4528d0b88032f0b8d2747242e66e8f231 [file] [log] [blame]
Tejun Heo60a53172009-02-09 22:17:40 +09001#!/bin/sh
2
Ingo Molnarebd90262009-02-11 12:17:29 +01003echo "int foo(void) { char X[200]; return 3; }" | $* -S -xc -c -O0 -fstack-protector - -o - 2> /dev/null | grep -q "%gs"
Tejun Heo60a53172009-02-09 22:17:40 +09004if [ "$?" -eq "0" ] ; then
5 echo y
6else
7 echo n
8fi