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 Mon, Dec 1, 2008 at 11:18 AM, Nick Clifton <nickc@redhat.com> wrote:
> Hi Kai, Hi Nightstrike,
>
>>>>> root-x86_64-pc-linux/x86_64-pc-mingw32/bin/ld: unrecognised emulation
>>>>> mode: pe-i386
>
>> The name of 32-bit emulation is i386pe, and for the 64-bit it is
>> i386pep. Gcc specifies by the -m option for ld the emulation, not the
>> internal target name IIUC.
>
> So, if I have understood this correctly the problem is this part of
> Nightstrike's gcc patch:
>
>> +#if TARGET_64BIT_DEFAULT
>> +#define SUB_LINK_SPEC "%{" SPEC_64 ":-m pe-x86_64} %{" SPEC_32 ":-m
>> pe-i386}"
>> +#else
>
> Which should be using "-m i386pep" and "-m i386pe" as the linker command
> line switches to select the emulations.  Yes ?

Apparently so :)

Grrrr @ naming conventions....

Now the next roadblock is getting ld to accept the libraries that are
built with -m32.  We are getting closer......


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