summaryrefslogtreecommitdiffstats
path: root/kernel/scripts/gcc-x86_64-has-stack-protector.sh
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/scripts/gcc-x86_64-has-stack-protector.sh')
-rwxr-xr-xkernel/scripts/gcc-x86_64-has-stack-protector.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/scripts/gcc-x86_64-has-stack-protector.sh b/kernel/scripts/gcc-x86_64-has-stack-protector.sh
index 973e8c141..17867e723 100755
--- a/kernel/scripts/gcc-x86_64-has-stack-protector.sh
+++ b/kernel/scripts/gcc-x86_64-has-stack-protector.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-echo "int foo(void) { char X[200]; return 3; }" | $* -S -x c -c -O0 -mcmodel=kernel -fstack-protector - -o - 2> /dev/null | grep -q "%gs"
+echo "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"
if [ "$?" -eq "0" ] ; then
echo y
else