]> 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)
commite49e6e01eb509686dc42d4e7b34cd2ce2c2fa23f
tree3ef4d209209f33a0f736b2fd6f1913762a029ef9
parentc615cb9c77452db88eafdbb0003b8cb03e9a1d36
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