blob: 17867e723a51a667fdec65194b9033346ff1b786 [file] [log] [blame]
Arjan van de Ven4f7fd4d2006-09-26 10:52:39 +02001#!/bin/sh
2
Sebastian Andrzej Siewior82031ea2016-11-04 19:39:39 +01003echo "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"
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