blob: 4a48bdcd4d6be6309eb895f197d370bb7b6c60db [file] [log] [blame]
Arjan van de Ven4f7fd4d2006-09-26 10:52:39 +02001#!/bin/sh
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01002# SPDX-License-Identifier: GPL-2.0
Arjan van de Ven4f7fd4d2006-09-26 10:52:39 +02003
Sebastian Andrzej Siewior82031ea2016-11-04 19:39:39 +01004echo "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 +02005if [ "$?" -eq "0" ] ; then
Tejun Heo5d707e92009-02-09 22:17:39 +09006 echo y
7else
8 echo n
Arjan van de Ven4f7fd4d2006-09-26 10:52:39 +02009fi