[PATCH] Add basic support for RISC-V 64-bit EFI objects

Palmer Dabbelt palmer@dabbelt.com
Fri Aug 25 13:26:39 GMT 2023


On Thu, 24 Aug 2023 19:15:32 PDT (-0700), nelson@rivosinc.com wrote:
> On Wed, Aug 9, 2023 at 4:11 PM Andreas Schwab via Binutils <
> binutils@sourceware.org> wrote:
>
>> On Aug 08 2023, Palmer Dabbelt wrote:
>>
>> > So the idea is to just objcopy an ELF into a PE for EFI?  IIUC that's
>> > generally the way to go for this sort of thing.  In Linux we just have a
>> > PE header manually embedded in a flat binary, but presumably EFI folks
>> > want to have objcopy support for some reason?
>>
>> My main intention is to let BFD recognize EFI objects so that I can
>> objdump them easily.  The support for objcopy comes in naturally, and
>> some packages do use objcopy to create EFI objects from ELF (on archs
>> where BFD supports it).

OK, that makes sense to me.

> Passed the binutils regression, and the pei-riscv64 testcase is also
> passed.  I don't familiar with the COFF stuff, but at least the support of
> objdump and objcopy seems to be working, that's what I can check the most
> currently.  Hope this helps before any expert comments appear ;)

So you think it's ready to merge, or did you want to look closer?

>
> Thanks
> Nelson


More information about the Binutils mailing list