summaryrefslogtreecommitdiff
path: root/arch/riscv/include/asm
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2022-10-12 21:23:46 +0300
committerArd Biesheuvel <ardb@kernel.org>2022-11-09 14:42:03 +0300
commitf1a116c055e3aee0c579d39bd777c9155e8bf5d1 (patch)
treebc1af50a74d98df13defd22a2f3b9972b40be3a9 /arch/riscv/include/asm
parent895bc3a135ffe9475de04b30e274f57a176cd3ef (diff)
downloadlinux-f1a116c055e3aee0c579d39bd777c9155e8bf5d1.tar.xz
efi/riscv: libstub: Split off kernel image relocation for builtin stub
The RISC-V build of the EFI stub is part of the core kernel image, and therefore accesses section markers directly when it needs to figure out the size of the various section. The zboot decompressor does not have access to those symbols, but doesn't really need that either. So let's move handle_kernel_image() into a separate file (or rather, move everything else into a separate file) so that the zboot build does not pull in unused code that links to symbols that it does not define. Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'arch/riscv/include/asm')
-rw-r--r--arch/riscv/include/asm/efi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/riscv/include/asm/efi.h b/arch/riscv/include/asm/efi.h
index a742868eb23c..6cbc7437d886 100644
--- a/arch/riscv/include/asm/efi.h
+++ b/arch/riscv/include/asm/efi.h
@@ -45,4 +45,6 @@ static inline unsigned long efi_get_kimg_min_align(void)
void efi_virtmap_load(void);
void efi_virtmap_unload(void);
+unsigned long stext_offset(void);
+
#endif /* _ASM_EFI_H */