blob: 12dbd0b11ea4fe8d037107a590bd1f8baff21eab [file] [log] [blame]
Tejun Heo60a53172009-02-09 22:17:40 +09001#!/bin/sh
2
Jean Delvareb1e0d8b2012-10-02 16:42:36 +02003echo "int foo(void) { char X[200]; return 3; }" | $* -S -x c -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