Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

kselftest/arm64: Explicitly build no BTI tests with BTI disabled

In case a distribution enables branch protection by default do as we do for
the main kernel and explicitly disable branch protection when building the
test case for having BTI disabled to ensure it doesn't get turned on by the
toolchain defaults.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20220516182213.727589-1-broonie@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>

authored by

Mark Brown and committed by
Catalin Marinas
9f93c2e0 d7a49291

+1 -1
+1 -1
tools/testing/selftests/arm64/bti/Makefile
··· 10 10 # cases for statically linked and dynamically lined binaries are 11 11 # slightly different. 12 12 13 - CFLAGS_NOBTI = -DBTI=0 13 + CFLAGS_NOBTI = -mbranch-protection=none -DBTI=0 14 14 CFLAGS_BTI = -mbranch-protection=standard -DBTI=1 15 15 16 16 CFLAGS_COMMON = -ffreestanding -Wall -Wextra $(CFLAGS)