ARM: stackprotector: prefer compiler for TLS based per-task protector
authorArd Biesheuvel <ardb@kernel.org>
Thu, 21 Oct 2021 14:16:47 +0000 (16:16 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Fri, 3 Dec 2021 14:11:30 +0000 (15:11 +0100)
commitf05eb1d24eb564488014d90b31824f71984d7ef5
tree5912b4674c2d6e5dd7b82745702e8a39bad14290
parent672513bf583157cc088a32e75bd850dd9f81564c
ARM: stackprotector: prefer compiler for TLS based per-task protector

Currently, we implement the per-task stack protector for ARM using a GCC
plugin, due to lack of native compiler support. However, work is
underway to get this implemented in the compiler, which means we will be
able to deprecate the GCC plugin at some point.

In the meantime, we will need to support both, where the native compiler
implementation is obviously preferred. So let's wire this up in Kconfig
and the Makefile.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Tested-by: Marc Zyngier <maz@kernel.org>
Tested-by: Vladimir Murzin <vladimir.murzin@arm.com> # ARMv7M
arch/arm/Kconfig
arch/arm/Makefile