]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita9cd9c19c84c942622625865036f8171d4cc40c1
tree5912b4674c2d6e5dd7b82745702e8a39bad14290
parent6cf736961eae2e60f041cc0b2f1bf9ee2feae06b
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