tests/tcg/aarch64: Add bti smoke tests
commit1d9ac91baf220367e68ca6a74955f2d60a4fc36b
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 21 Oct 2020 17:37:49 +0000 (21 10:37 -0700)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 27 Oct 2020 10:44:03 +0000 (27 10:44 +0000)
treedd6fda12364542ffdbbf1dbaaaaec8b3b996ea0f
parente8384b376e4c079cf05dfe158ed28455377b7cfd
tests/tcg/aarch64: Add bti smoke tests

The note test requires gcc 10 for -mbranch-protection=standard.
The mmap test uses PROT_BTI and does not require special compiler support.

Acked-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20201021173749.111103-13-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
tests/tcg/aarch64/Makefile.target
tests/tcg/aarch64/bti-1.c [new file with mode: 0644]
tests/tcg/aarch64/bti-2.c [new file with mode: 0644]
tests/tcg/aarch64/bti-crt.inc.c [new file with mode: 0644]
tests/tcg/configure.sh