arm64: Switch to adrp for loading the stub vectors
The hyp stub vectors are currently loaded using adr. This instruction has a +/- 1MB range for the loading address. If the alignment for sections is changed the address may be more than 1MB away, resulting in reclocation errors. Switch to using adrp for getting the address to ensure we aren't affected by the location of the __hyp_stub_vectors. Change-Id: I7202cb2b0eb3c73c9ed08835a4bf0e23e075ba0d Acked-by:Ard Biesheuvel <ard.biesheuvel@linaro.org> Acked-by:
Marc Zyngier <marc.zyngier@arm.com> Tested-by:
Mark Rutland <mark.rutland@arm.com> Tested-by:
Kees Cook <keescook@chromium.org> Signed-off-by:
Laura Abbott <lauraa@codeaurora.org> Signed-off-by:
Will Deacon <will.deacon@arm.com> Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git-commit: ac2dec5f6c27a581f8571da605d9ba04df18330d [rvaswani@codeaurora.org: Resolve merge conflicts] Signed-off-by:
Rohit Vaswani <rvaswani@codeaurora.org>
Loading
Please register or sign in to comment