blob: 973e8c1415677eeba513543655e939de234521e3 [file] [log] [blame]
Arjan van de Ven4f7fd4d2006-09-26 10:52:39 +02001#!/bin/sh
2
Jean Delvareb1e0d8b2012-10-02 16:42:36 +02003echo "int foo(void) { char X[200]; return 3; }" | $* -S -x c -c -O0 -mcmodel=kernel -fstack-protector - -o - 2> /dev/null | grep -q "%gs"
Arjan van de Ven4f7fd4d2006-09-26 10:52:39 +02004if [ "$?" -eq "0" ] ; then
Tejun Heo5d707e92009-02-09 22:17:39 +09005 echo y
6else
7 echo n
Arjan van de Ven4f7fd4d2006-09-26 10:52:39 +02008fi