Question about building binutils as cross-compiler for multiple targets

Nick Clifton nickc@redhat.com
Sat Nov 29 08:07:00 GMT 2008


Hi Kai, Hi NightStrike,

>> $ ../configure --target=x86_64-pc-mingw32
>> --enable-targets=x86_64-pc-mingw32,i686-pc-mingw32 --enable-multilib
>> --disable-nls --prefix=/home/ktietz/multiroot
>> --with-sysroot=/home/ktietz/multiroot --enable-64-bit-bfd'

Note: I would suggest dropping the "--target=x86_64-pc-mingw32".

> The attached patch is what Kai has so far.  The current roadblock is in ld:
> 
> root-x86_64-pc-linux/x86_64-pc-mingw32/bin/ld: unrecognised emulation
> mode: pe-i386
> Supported emulations: i386pep i386pe

How do I reproduce this roadblock ?

For the record the toolchain that I built today, configured as above, 
except without the --target switch, reports:

   .../bin/ld: supported targets: elf32-i386 a.out-i386-linux 
efi-app-ia32 efi-bsdrv-ia32 efi-rtdrv-ia32 elf64-x86-64 elf64-little 
elf64-big elf32-little elf32-big pe-x86-64 pei-x86-64 pe-i386 pei-i386 
srec symbolsrec tekhex binary ihex trad-core
   .../bin/ld: supported emulations: elf_i386 i386linux elf_x86_64 
i386pep i386pe


Which looks correct to me.

Cheers
   Nick



More information about the Binutils mailing list