Commit 03b8d1fc authored by Vincent Donnefort's avatar Vincent Donnefort
Browse files

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: default avatarVincent Donnefort <vdonnefort@google.com>
parent 55a408fd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment