summaryrefslogtreecommitdiff
path: root/arch/loongarch/kernel/vmlinux.lds.S
diff options
context:
space:
mode:
authorWang Yao <wangyao@lemote.com>2023-12-19 17:14:05 +0800
committerArd Biesheuvel <ardb@kernel.org>2023-12-19 11:16:37 +0100
commit174a0c565cea74a7811ff79fbee1b70247570ade (patch)
tree43bd475793158498b6860edb6aa905f93e866f8e /arch/loongarch/kernel/vmlinux.lds.S
parenta42da7f0f94eaac5beae0da7da51ce9c30352b7e (diff)
efi/loongarch: Directly position the loaded image file
The use of the 'kernel_offset' variable to position the image file that has been loaded by UEFI or GRUB is unnecessary, because we can directly position the loaded image file through using the image_base field of the efi_loaded_image struct provided by UEFI. Replace kernel_offset with image_base to position the image file that has been loaded by UEFI or GRUB. Signed-off-by: Wang Yao <wangyao@lemote.com> Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'arch/loongarch/kernel/vmlinux.lds.S')
-rw-r--r--arch/loongarch/kernel/vmlinux.lds.S1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/loongarch/kernel/vmlinux.lds.S b/arch/loongarch/kernel/vmlinux.lds.S
index bb2ec86f37a8..a5d0cd2035da 100644
--- a/arch/loongarch/kernel/vmlinux.lds.S
+++ b/arch/loongarch/kernel/vmlinux.lds.S
@@ -143,7 +143,6 @@ SECTIONS
_kernel_fsize = _edata - _text;
_kernel_vsize = _end - __initdata_begin;
_kernel_rsize = _edata - __initdata_begin;
- _kernel_offset = kernel_offset - _text;
#endif
.gptab.sdata : {