check the patch attached to this mail. put this patch into /usr/local/lib/ct-ng-1.6.0/patches/binutils/2.19.1, recompile the toolchain, the ld will work just as i wished. the patch also works for binutils-2.20. for those who do not want to apply this patch, take a look at http://ftp.gnu.org/old-gnu/Manuals/binutils-2.12/html_node/binutils_20.html, the emulation can be selected at runtime. On Sun, Feb 21, 2010 at 2:59 AM, Yann E. MORIN wrote: > Hello Zhuang, All! > > On Saturday 20 February 2010 07:35:02 Zhuang Yuyao wrote: >> I am trying to compile a mips64 cross toolchain. the attached file >> ctng.1.6.0.mips64.patch contains some patches I made to crosstool-ng >> 1.6.0. > > Cool! It will be nice to have mips64 in crosstool-NG once this issue is > solved! :-) > I've used this toolchain to compile more than 130 different programs, including linux kernel 2.6.31, it works just fine for me. i will be glad to see more people use it on their own platforms and report that it is ok. >> ...... >> /opt/crosstool/gcc-4.4.3-glibc-2.9/mips64-octeon-linux-gnu/bin/mips64-octeon-linux-gnu-gcc > > This path looks like an /old/ installation of a toolchain built with the > original crosstool. Could you check that you do not have an old toolchain > in your PATH ? > the path does not matter, i just copied the toolchain from x-tools to this location. Zhuang Yuyao