Akihiko Odaki
580731dcc8
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 >
2023-10-31 13:28:19 +00:00
Ahmed Abouzied
e52ee00dab
Remove leading underscores from QEMU defines
...
Leading underscores followed by a capital letter or underscore are
reserved by the C standard.
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/369
Signed-off-by: Ahmed Abouzied <email@aabouzied.com >
Message-Id: <20210605174938.13782-1-email@aabouzied.com >
Signed-off-by: Thomas Huth <thuth@redhat.com >
2021-06-21 05:49:01 +02:00
Paolo Bonzini
6a9e0ef32a
tests/tcg: use EXTRA_CFLAGS everywhere
...
For i386 specifically, this allows using the host GCC
to compile the i386 tests. But, it should really be
done for all targets, unless we want to pass $(EXTRA_CFLAGS)
directly as part of $(CC).
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
Message-Id: <20190807143523.15917-2-pbonzini@redhat.com >
Signed-off-by: Alex Bennée <alex.bennee@linaro.org >
2019-09-10 09:38:33 +01:00
Alex Bennée
936647d3fc
tests/tcg/minilib: support %c format char
...
Signed-off-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
2019-05-28 10:28:51 +01:00
Alex Bennée
a113ec989b
tests/tcg: provide a minilib for system tests
...
We will likely want a few common functions to make up for the fact we
don't have a libc and we don't want to feel like we are programming by
banging rocks together.
I've purloined the printf function from:
https://git.virtualopensystems.com/dev/tcg_baremetal_tests
Although I have tweaked the names to avoid confusing GCC about clashing
with builtins.
Cc: Alexander Spyridakis <a.spyridakis@virtualopensystems.com >
Cc: Kevin Wolf <kwolf@redhat.com >
Signed-off-by: Alex Bennée <alex.bennee@linaro.org >
2019-03-12 17:05:21 +00:00