Re: [PATCH] rust: add basic ELF sections parser

From: Timur Tabi
Date: Fri May 16 2025 - 12:29:21 EST


On Fri, May 16, 2025 at 9:35 AM Alexandre Courbot <acourbot@xxxxxxxxxx> wrote:
>
> We use ELF as a container format to associate binary blobs with named
> sections. Can we extract these sections into individual files that we
> load using request_firmware()? Why yes, we could.

Actually, I don't think we can. This is the actual GSP-RM ELF image
you're talking about. This comes packaged as one binary blob and it's
intended to be mostly opaque. We can't just disassemble the ELF
sections and then re-assemble them in the driver.

Unfortunately, for pre-Hopper booting, we need to do a little
pre-processing on the image, referencing the ELF sections, and based
on data from fuses that cannot be read in user-space.