Boot2Rust icon indicating copy to clipboard operation
Boot2Rust copied to clipboard

Linking with ld

Open gz opened this issue 9 years ago • 2 comments

Just wanted to mention that for me, linking with my regular ubuntu linker (GNU ld (GNU Binutils for Ubuntu) 2.24) seemed to work just fine with using LDEMULATION:

LDEMULATION="i386pe" ld --oformat pei-x86-64 --subsystem 10 -pie -e efi_start build/boot.o -o img/efi/boot/bootx64.efi

gz avatar Jan 06 '15 20:01 gz

Linking with link.exe on Windows works fine as well. It is in fact easier than linux because you don't need cross compilation. All you do is pass the flag /subsystem:EFI_APPLICATION to the native link.exe. After all an EFI application is nothing but a PE file which is a format native to Windows.

gurry avatar Feb 21 '18 11:02 gurry

Nice!

eholk avatar Feb 24 '18 19:02 eholk