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: Question about building binutils as cross-compiler for multiple targets


On Fri, Nov 28, 2008 at 2:48 PM, Kai Tietz <ktietz70@googlemail.com> wrote:
>
> Hello,
>
> maybe somebody could give me a hint about how to configure binutils to
> support x86_64-pc-mingw32 and i686-pc-mingw32 targets as cross
> toolchain x86_64-pc-mingw32?
> I tried the configuration
>
> $ ../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'
> make
> make install
>
> But at the end, I had just the x86_64-pc-mingw32 target support
> (pe-x86-64,pei-x86-64) and no i686-pc-mingw32 (pe-i686, pei-i686).
> What I am doing wrong?


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


Where to look next?

Attachment: patch.txt
Description: Text document


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