blob: afaec618b3955c9147608da4c915bc6159627cf0 [file] [log] [blame]
Arjan van de Ven4f7fd4d2006-09-26 10:52:39 +02001#!/bin/sh
2
Ingo Molnarebd90262009-02-11 12:17:29 +01003echo "int foo(void) { char X[200]; return 3; }" | $* -S -xc -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