Skip to content

Commit 9f93c2e

Browse files
brooniectmarinas
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent d7a4929 commit 9f93c2e

File tree

1 file changed

+1
-1
lines changed
  • tools/testing/selftests/arm64/bti

1 file changed

+1
-1
lines changed

tools/testing/selftests/arm64/bti/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ PROGS := $(patsubst %,gen/%,$(TEST_GEN_PROGS))
1010
# cases for statically linked and dynamically lined binaries are
1111
# slightly different.
1212

13-
CFLAGS_NOBTI = -DBTI=0
13+
CFLAGS_NOBTI = -mbranch-protection=none -DBTI=0
1414
CFLAGS_BTI = -mbranch-protection=standard -DBTI=1
1515

1616
CFLAGS_COMMON = -ffreestanding -Wall -Wextra $(CFLAGS)

0 commit comments

Comments
 (0)