KVM: arm64: Add symbol at the beginning of each hyp section
authorDavid Brazdil <dbrazdil@google.com>
Tue, 5 Jan 2021 18:05:36 +0000 (18:05 +0000)
committerMarc Zyngier <maz@kernel.org>
Sat, 23 Jan 2021 14:00:57 +0000 (14:00 +0000)
commitf7a4825d9569593b9a81f0768313b86175691ef1
tree647829cea26b049d455582c771e07a4ada12fb05
parent16174eea2e4fe8247e04c17da682f2034fec0369
KVM: arm64: Add symbol at the beginning of each hyp section

Generating hyp relocations will require referencing positions at a given
offset from the beginning of hyp sections. Since the final layout will
not be determined until the linking of `vmlinux`, modify the hyp linker
script to insert a symbol at the first byte of each hyp section to use
as an anchor. The linker of `vmlinux` will place the symbols together
with the sections.

Signed-off-by: David Brazdil <dbrazdil@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210105180541.65031-4-dbrazdil@google.com
arch/arm64/include/asm/hyp_image.h
arch/arm64/kvm/hyp/nvhe/hyp.lds.S