[PATCH v3 00/15] efi: Expose loaded image properties via info struct
Jason Gunthorpe
jgg at nvidia.com
Mon Nov 16 10:52:15 PST 2026
> From: Ard Biesheuvel <ardb at kernel.org>
>
> Clean up the arm64 build script and linker hacks that zboot uses to
> obtain properties of the loaded image (which it cannot access directly
> via a relative reference like the ordinary EFI stub).
>
> Instead, define a generic struct efi_image_info, and expose its offset
> in the loaded image in a similar manner, but without relying on explicit
> linker script exports.
>
> Populate the struct with section markers that all architecture use for
> loading the kernel image at boot, so that all the linker exports can be
> dropped for them.
>
> Changes since v2:
Still works with my DRTM series just fine on ARM64
Tested-by: Jason Gunthorpe <jgg at nvidia.com>
--
Jason
More information about the linux-riscv
mailing list