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)
commit92e2294d870bc9e77592c2454f565c3bd6bb79ad
tree3ef4d209209f33a0f736b2fd6f1913762a029ef9
parent717b938e22f8dbf0c02d51cb8e74634fac9b57ef
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