KVM: arm64: Set up .hyp.rodata ELF section
authorDavid Brazdil <dbrazdil@google.com>
Tue, 5 Jan 2021 18:05:35 +0000 (18:05 +0000)
committerMarc Zyngier <maz@kernel.org>
Sat, 23 Jan 2021 13:58:49 +0000 (13:58 +0000)
commit16174eea2e4fe8247e04c17da682f2034fec0369
tree897136b7d67352f3c20b8fcd440d8159042db1a4
parenteceaf38f521982bad6dbac1c02becdd80fd6af7c
KVM: arm64: Set up .hyp.rodata ELF section

We will need to recognize pointers in .rodata specific to hyp, so
establish a .hyp.rodata ELF section. Merge it with the existing
.hyp.data..ro_after_init as they are treated the same at runtime.

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