Skip to content
Commit 714a8d02 authored by Mark Brown's avatar Mark Brown Committed by Will Deacon
Browse files

arm64: asm: Override SYM_FUNC_START when building the kernel with BTI



When the kernel is built for BTI override SYM_FUNC_START and related macros
to add a BTI landing pad to the start of all global functions, ensuring that
they are BTI safe. The ; at the end of the BTI_x macros is for the
benefit of the macro-generated functions in xen-hypercall.S.

Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Reviewed-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20200506195138.22086-4-broonie@kernel.org


Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent 92e2294d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment