efi/loongarch: Reintroduce efi_relocate_kernel() to relocate kernel
authorHuacai Chen <chenhuacai@loongson.cn>
Wed, 1 Mar 2023 08:55:45 +0000 (16:55 +0800)
committerArd Biesheuvel <ardb@kernel.org>
Wed, 5 Apr 2023 10:05:11 +0000 (12:05 +0200)
commit8364f6d000ede4185a82b1f2514543ed172d4b51
tree3f4118ae05353534d8317a9303e7d1c3daf90f86
parent197b6b60ae7bc51dd0814953c562833143b292aa
efi/loongarch: Reintroduce efi_relocate_kernel() to relocate kernel

Since Linux-6.3, LoongArch supports PIE kernel now, so let's reintroduce
efi_relocate_kernel() to relocate the core kernel.

Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/libstub/loongarch-stub.c