ANDROID: KVM: arm64: Fix kern to mod VA for pKVM module symbols reloc
.hyp.text might not always be the first section. So the offset used for
the conversion must use the start address of all hyp sections. Use the
newly introduced __pkvm_el2_mod_va() for that.
While at it, rewrite the relocation code that isn't exactly a work of
art.
Bug: 455467611
Bug: 333671007
Bug: 357781595
Change-Id: Id37a6170b8786fe261d204af2f8819cb6e054c70
Signed-off-by:
Vincent Donnefort <vdonnefort@google.com>
Loading