[PATCH v4 14/19] efi/libstub: riscv: Use struct efi_image_info to access image properties
Ard Biesheuvel
ardb+git at google.com
Wed Nov 18 10:21:20 PST 2026
From: Ard Biesheuvel <ardb at kernel.org>
Instead of exposing individual symbols to the EFI stub explicitly via
the linker script, use the generic struct efi_image_info, which accesses
the original symbols via PC-relative references from the stub itself.
This improves code reuse across architectures, and makes it easier to
add new references in a generic manner.
Reviewed-by: Jason Gunthorpe <jgg at nvidia.com>
Signed-off-by: Ard Biesheuvel <ardb at kernel.org>
---
arch/riscv/kernel/image-vars.h | 8 --------
1 file changed, 8 deletions(-)
diff --git a/arch/riscv/kernel/image-vars.h b/arch/riscv/kernel/image-vars.h
index bf703eba3fa5..c18b24792a29 100644
--- a/arch/riscv/kernel/image-vars.h
+++ b/arch/riscv/kernel/image-vars.h
@@ -23,14 +23,6 @@
* linked at. The routines below are all implemented in assembler in a
* position independent manner
*/
-__efistub__start = _start;
-__efistub__start_kernel = _start_kernel;
-__efistub__end = _end;
-__efistub__edata = _edata;
-__efistub___inittext_end = __inittext_end;
-#if defined(CONFIG_EFI_EARLYCON) || defined(CONFIG_SYSFB)
-__efistub_sysfb_primary_display = sysfb_primary_display;
-#endif
/*
* These double-word integer shifts are used by the library code, and
--
2.56.1.708.g77570a6a1d-goog
More information about the linux-riscv
mailing list