This is the mail archive of the
mailing list for the binutils project.
Re: Linking EFI applications with x86_64-pc-mingw32-ld
2012/4/2 Andreas Schwab <email@example.com>:
> NightStrike <firstname.lastname@example.org> writes:
>> I don't know the answer to your question, but at the very least, you
>> should try using the x86_64-w64-mingw32 target. ?Notice that the
>> middle part of the triplet is not -pc-.
> The vendor part of the triplet is just for information.
Right, the vendor-part in triplet for binutils is just for
information. But yes, it is possible to link EFI COFF code by it.
You need to specify the proper entry-point (by -e option) and you need
to set the proper sub-system There are pre-defined aliases for
So can specify subsystem by ld's option '-subsystem=". The argument
of this option is either one of the strings above or a number.