Question about building binutils as cross-compiler for multiple targets
Nick Clifton
nickc@redhat.com
Mon Dec 1 16:20:00 GMT 2008
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 ?
Cheers
Nick
More information about the Binutils
mailing list