]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: bti: Support building kernel C code using BTI
authorMark Brown <broonie@kernel.org>
Wed, 6 May 2020 19:51:29 +0000 (20:51 +0100)
committerWill Deacon <will@kernel.org>
Thu, 7 May 2020 16:53:20 +0000 (17:53 +0100)
commitee511237888da04167d44a3c640b2e64ca3c4957
tree3ef4d209209f33a0f736b2fd6f1913762a029ef9
parentebd6c97329f7451ff8f41b3de880da4c17d83128
arm64: bti: Support building kernel C code using BTI

When running with BTI enabled we need to ask the compiler to enable
generation of BTI landing pads beyond those generated as a result of
pointer authentication instructions being landing pads. Since the two
features are practically speaking unlikely to be used separately we
will make kernel mode BTI depend on pointer authentication in order
to simplify the Makefile.

Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20200506195138.22086-3-broonie@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/Makefile