[PATCH v2 00/10] efi: Expose loaded image properties via info struct

Jason Gunthorpe jgg at nvidia.com
Fri Nov 13 07:10:21 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.

Tested-by: Jason Gunthorpe <jgg at nvidia.com>

DRTM still works after being rebased on top of this.

I left some ideas for further improvement, but other than the
.init.rodata marking nothing is critical.

Thanks for doing this

-- 
Jason



More information about the linux-riscv mailing list