This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ld emulation


2008/12/31 James Trickel <james7088@gmail.com>:
> 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
>

Hmm, well. This means that you need for the ld of pe-coff a runtime.
Maybe take a look on www.mingw.org

Cheers,
Kai
-- 
|  (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]