FROMLIST: arm64: Build vDSO with -ffixed-x18
authorPeter Collingbourne <pcc@google.com>
Wed, 7 Nov 2018 00:39:13 +0000 (16:39 -0800)
committerivanmeler <i_ivan@windowslive.com>
Wed, 13 Apr 2022 21:13:57 +0000 (21:13 +0000)
commitb005f10174dce25bc704f37374ab930fc421ede5
tree06dc7586462a26839e3fea75d9de99681cf632ff
parent1cc909bdea06bf5c5dfc5ace2bddf177d2aca8bc
FROMLIST: arm64: Build vDSO with -ffixed-x18

The vDSO needs to be build with x18 reserved in order to accommodate
userspace platform ABIs built on top of Linux that use the register
to carry inter-procedural state, as provided for by the AAPCS.
An example of such a platform ABI is the one that will be used by an
upcoming version of Android.

Although this change is currently a no-op due to the fact that the vDSO
is currently implemented in pure assembly on arm64, it is necessary
in order to prepare for another change [1] that will add C code to
the vDSO.

[1] https://patchwork.kernel.org/patch/10044501/

Change-Id: Icaac4b1c9127d81d754d3b8688274e9afc781760
Signed-off-by: Peter Collingbourne <pcc@google.com>
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Cc: Mark Salyzyn <salyzyn@google.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: linux-arm-kernel@lists.infradead.org
arch/arm64/kernel/vdso/Makefile