This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: ld emulation
On Wed, Dec 31, 2008 at 2:02 PM, James Trickel <james7088@gmail.com> wrote:
> Question:
> How do I compile 'ld' to give me the emulation option of i386pe.
>
> Thanks In Advance,
> -James
A better question would be what does the following error mean?
crt2.o: file not recognized: File format is ambiguous
crt2.o: matching formats: coff-i386 pe-i386
from
ld -mi386pe --oformat pei-i386 --subsystem console -s crt2.o
<snip(more .o's)> -o file.exe
ld shows the following:
supported emulations: elf_i386_ldso elf_i386 elf_x86_64 i386pe
supported targets: elf32-i386 coff-i386 elf64-x86-64 elf64-little
elf64-big elf32-little elf32-big pe-i386 pei-i386 srec symbolsrec
tekhex binary ihex
TIA,
-James