On Fri, May 09, 2014 at 11:24:34PM -0400, Brian Callahan wrote: > > On 05/09/14 23:20, Tobias Ulmer wrote: > >On Fri, May 09, 2014 at 03:39:50PM -0400, Brian Callahan wrote: > >>On 05/09/14 14:41, Pascal Stumpf wrote: > >>>On Fri, 09 May 2014 01:22:45 -0400, Brian Callahan wrote: > >>>>On 05/08/14 19:39, Tobias Ulmer wrote: > >>>>>I've invested some time into adding the mips64(el) backend. It gets > >>>>>quite far (xgcc seems to be fine), but then our ld takes a dump: > >>>>> > >>>>>/usr/bin/ld: not enough GOT space for local GOT entries > >>>>>/usr/bin/ld: BFD 2.15 internal error, aborting at > >>>>>/usr/src/gnu/usr.bin/binutils > >>>>> /bfd/elfxx-mips.c line 6483 in _bfd_mips_elf_relocate_section > >>>>> > >>>>>/usr/bin/ld: Please report this bug. > >>>>> > >>>>>Log: http://www.tmux.org/~tobiasu/tmp/gcc48-mips64-build.txt > >>>>> > >>>>>Others have run into this, and it's possibly fixed in newer binutils, > >>>>>but I have not been able to make sense of the BFD guts enough to fix ld. > >>>>> > >>>>> > >>>>>Question is, should I commit this in its current form so others can try > >>>>>their luck? I'm pretty sure this patch is 95% there. > >>>>Yes, please. > >>>> > >>>> > >>>Seconded. It's a known bug that's fixed in 2.17, iirc. > >>Yup. I can confirm that. > >Wait, so did you try this patch? Does it build? mips64 or mips64el? > > > > I'm just confirming that the ld error is fixed with binutils-2.17: > it's the exact same error as gcc-4.6 and I did have a built > gcc-4.6/binutils-2.17 combo on loongson. No reason to suspect that > gcc-4.8 won't build with binutils-2.17 as well. I don't have the > time to test gcc-4.8/binutils-2.17 right now but I will if people > really want.
Thanks, I'll try that myself for now :)