aboutsummaryrefslogtreecommitdiff
path: root/tests/tcg/i386
diff options
context:
space:
mode:
authorAkihiko Odaki <akihiko.odaki@daynix.com>2023-10-29 14:50:16 +0000
committerAlex Bennée <alex.bennee@linaro.org>2023-10-31 13:28:19 +0000
commit580731dcc87eb27a2b0dc20ec331f1ce51864c97 (patch)
tree3c6ef68637dad2143850547c1c59f5e2ae64aeff /tests/tcg/i386
parent05c223cef7b50bcd07a388d45b45bdeb517c4082 (diff)
downloadqemu-580731dcc87eb27a2b0dc20ec331f1ce51864c97.zip
qemu-580731dcc87eb27a2b0dc20ec331f1ce51864c97.tar.gz
qemu-580731dcc87eb27a2b0dc20ec331f1ce51864c97.tar.bz2
tests/tcg: Add -fno-stack-protector
A build of GCC 13.2 will have stack protector enabled by default if it was configured with --enable-default-ssp option. For such a compiler, it is necessary to explicitly disable stack protector when linking without standard libraries. Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com> Message-Id: <20230731091042.139159-3-akihiko.odaki@daynix.com> [AJB: fix comment string typo] Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20231029145033.592566-3-alex.bennee@linaro.org>
Diffstat (limited to 'tests/tcg/i386')
-rw-r--r--tests/tcg/i386/Makefile.target2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tcg/i386/Makefile.target b/tests/tcg/i386/Makefile.target
index fdf757c..3dec7c6 100644
--- a/tests/tcg/i386/Makefile.target
+++ b/tests/tcg/i386/Makefile.target
@@ -35,7 +35,7 @@ run-test-aes: QEMU_OPTS += -cpu max
#
# hello-i386 is a barebones app
#
-hello-i386: CFLAGS+=-ffreestanding
+hello-i386: CFLAGS+=-ffreestanding -fno-stack-protector
hello-i386: LDFLAGS+=-nostdlib
# test-386 includes a couple of additional objects that need to be