diff options
-rw-r--r-- | tests/user-qemu.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/user-qemu.mk b/tests/user-qemu.mk index 8a25bc41..968a5bfc 100644 --- a/tests/user-qemu.mk +++ b/tests/user-qemu.mk @@ -119,6 +119,12 @@ TESTCFLAGS = -static -nostartfiles -nolibc \ -ggdb3 \ -DMIG_EOPNOTSUPP +# The smashing stack protector might be enabled by default, but might emit +# unsuitable code. +if disable_smashing_stack_protector +TESTCFLAGS += \ + -fno-stack-protector +endif TESTSRC_TESTLIB= \ $(srcdir)/tests/syscalls.S \ |