On Mon, Dec 08, 2025 at 09:47:38PM +0100, Heinrich Schuchardt wrote:

> The objcopy man-page teaches:
> 
>     --target=bfdname
>       Use bfdname as the object format for
>       both the input and the output file
> 
> This implies for --target=efi-app-x86_64 that the input file would have
> to be an EFI app.
> 
> Objcopy in binutils 2.45 checks this more strictly than previous versions
> and refuses to accept an ELF file as input with --target=efi-app-x86_64.
> 
> Replace --target by --output-target for building sandbox and x86 EFI
> binaries.
> 
> Signed-off-by: Heinrich Schuchardt <[email protected]>

Reviewed-by: Tom Rini <[email protected]>

-- 
Tom

Attachment: signature.asc
Description: PGP signature

Reply via email to