PATCH: Fix EFI support

Nick Clifton nickc@redhat.com
Thu Apr 16 08:18:00 GMT 2009


Hi H.J.

> The more I look at, the more I don't like the current solution.
> If I understand it correctly, we added 2 EFI targets for
> each arch just so that we can do
> 
> # objcopy  -O efi-XXX-x86_64 HelloWorld.elf HelloWorld.efi
> 
> The only difference between 3 EFI targets is different
> IMAGE_SUBSYSTEM_EFI_XXX. Why not just have one EFI
> target, efi-x8_64, defaulting to IMAGE_SUBSYSTEM_EFI_APPLICATION??
> We can add a switch to objcopy with
> 
> --efi=app|bsdrv|rtdrv
> 
> We can provide backward compatibility for efi-XXX-x86_64.
> Any comments?

This sounds a lot cleaner to me.  Can you prepare a patch that 
implements this ?

Cheers
   Nick




More information about the Binutils mailing list