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@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@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
-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss

Reply via email to