]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: vdso: Force the vDSO to be linked as BTI when built for BTI
authorMark Brown <broonie@kernel.org>
Wed, 6 May 2020 19:51:37 +0000 (20:51 +0100)
committerWill Deacon <will@kernel.org>
Thu, 7 May 2020 16:53:20 +0000 (17:53 +0100)
commit6a0260183e60f3219cb971a27e52ae39506c387a
tree66be866618671d51b03115b30db1a30c4b9ff987
parent4f9e671b9a326c726617b66cc8ab26b17d61920a
arm64: vdso: Force the vDSO to be linked as BTI when built for BTI

When the kernel and hence vDSO are built with BTI enabled force the linker
to link the vDSO as BTI. This will cause the linker to warn if any of the
input files do not have the BTI annotation, ensuring that we don't silently
fail to provide a vDSO that is built and annotated for BTI when the
kernel is being built with BTI.

Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20200506195138.22086-11-broonie@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/vdso/Makefile