main.efi: PE Unknown PE signature 0x642e x86-64
Paul Dufresne
dufresnep at zoho.com
Thu Feb 2 01:32:42 UTC 2023
I have tried to build a efi test file by reading:
https://wiki.osdev.org/GNU-EFI
but the file did not loaded...
and then I saw that file show what seems an invalid file format:
paul at starman:~/efitest$ file main.efi
main.efi: PE Unknown PE signature 0x642e x86-64 (stripped to external PDB), for MS Windows
where when I do:
paul at starman:~/efitest$ file /media/paul/VTOYEFI/EFI/BOOT/BOOTX64.EFI
/media/paul/VTOYEFI/EFI/BOOT/BOOTX64.EFI: PE32+ executable (EFI application) x86-64 (stripped to external PDB), for MS Windows
(I test it by copying main.efi over BOOTX64.EFI on the Ventoy USB key).
Why I don't get the same file format?
I suspect this is a bug, but I am writing to ask before filing one.
Also this seems to exist since 2015:
"
# $(OBJCOPY) -B i386 -I binary -O pei-i386 $(INSERT_NAME) $(INSERT_NAME).o
# This objcopy produces .o file, for which file says: "foo.bar.o: PE Unknown PE signature 0x642e (Unknown subsystem 0x0) Intel 80386 (stripped to external PDB), for MS Windows"
"
taken from: https://ubuntuforums.org/archive/index.php/t-2288915.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-devel-discuss/attachments/20230201/77b73b0c/attachment.html>
More information about the Ubuntu-devel-discuss
mailing list