From: Wang Yao <wangyao@xxxxxxxxxx> 1, The PIE kernel will be loaded anywhere, so use load address to calculate kernel entry address. 2, Use twice efi_relocate_kernel() to make load address is not equal to link address for test. Wang Yao (2): efi/loongarch: Use load address to calculate kernel entry address efi/loongarch: load address is not equal to link address arch/loongarch/include/asm/efi.h | 2 +- drivers/firmware/efi/libstub/loongarch-stub.c | 16 +++++++++++++--- drivers/firmware/efi/libstub/loongarch.c | 6 +++--- 3 files changed, 17 insertions(+), 7 deletions(-) -- 2.27.0