[gPXE] EFI build not working?
Michael Brown
mbrown at fensystems.co.uk
Fri May 28 19:45:43 EDT 2010
On Friday 28 May 2010 20:02:07 Joshua Oreman wrote:
> > $ file bin-x86_64-efi/igb.efi
> > bin-x86_64-efi/igb.efi: MS-DOS executable
>
> Hm. I'm not sure how elf2efi works in 64-bit mode; could someone else
> clarify?
Almost identically to how it works in 32-bit mode. The PE64 file format is
slightly different, and not just by differing field widths.
Our EFI64 images have been tested on real hardware, and I don't think elf2efi.c
has changed since.
It's worth noting that with my toolchain, "file" identifies both 32-bit and 64-
bit EFI images as "MS-DOS executable". I don't think it's a reliable test.
objdump used to be able to dump out EFI images, but at some point around
2.17/2.18 the relevant part of BFD was broken, and it now fails with "File
format not recognized". If you have an older-but-not-too-old version of
binutils available, you may be able to try objdump.
Michael
More information about the gPXE
mailing list