diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-06-22 18:37:05 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-06-22 18:37:22 +0200 |
commit | 608d1e197188288b54ea443b4a00e966ca0c6c19 (patch) | |
tree | ff9e62a6084c89bc9fdc20849ae9cef51567967a | |
parent | 9f250b71598ba1bf732c3b56babb457d6b55075b (diff) |
tests: also disable stack protector
Similarly to Makefile.am, otherwise when the host compiler enables it by
default, we get undefined reference to `__stack_chk_fail_local'
-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 \ |