Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linking with ld #8

Open
gz opened this issue Jan 6, 2015 · 2 comments
Open

Linking with ld #8

gz opened this issue Jan 6, 2015 · 2 comments

Comments

@gz
Copy link

gz commented Jan 6, 2015

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

@gurry
Copy link

gurry commented Feb 21, 2018

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.

@eholk
Copy link
Owner

eholk commented Feb 24, 2018

Nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants