On MIPS64 (SGI Octane with one R10k running Gentoo Linux) ld 2.16.90.0.3 fails with the message "not enough GOT space for local GOT entries" when attempting to link some programs ("login" when building with Portage, "groupadd" when building manually, but always the same program when built the same way) from Shadow 4.0. 13 (I'm working on a smaller test case). All other programs from the same package, and all other packages I've tried, build without incident. Shadow 4.0. 12 builds fine with binutils 2.16.90.0.3, and Shadow 4.0.13 builds with binutils 2.16.1. Steps to reproduce: 1. wget ftp://ftp.pld.org.pl/software/shadow/shadow-4.0.13.tar.bz2 2. tar -xjf shadow-4.0.13.tar.bz2 3. cd shadow-4.0.13 4. configure --without-selinux 5. make Error messages: if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../libmisc -DLOCALEDIR=\"/usr/ share/locale\" -g -O2 -MT groupadd.o -MD -MP -MF ".deps/groupadd.Tpo" -c -o groupadd.o groupadd.c; \ then mv -f ".deps/groupadd.Tpo" ".deps/groupadd.Po"; else rm -f ".deps/groupadd. Tpo"; exit 1; fi /bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -o groupadd groupadd.o .. /libmisc/libmisc.a ../lib/libshadow.la -lpam -lpam_misc gcc -g -O2 -o groupadd groupadd.o ../libmisc/libmisc.a ../lib/.libs/libshadow.a -lcrypt -lpam -lpam_misc /usr/lib/gcc/mips-unknown-linux-gnu/3.4.4/../../../../mips-unknown-linux-gnu/ bin/ld: not enough GOT space for local GOT entries /usr/lib/gcc/mips-unknown-linux-gnu/3.4.4/../../../../mips-unknown-linux-gnu/ bin/ld: BFD 2.16.90.0.3 20050510 internal error, aborting at /var/tmp/portage/ binutils-2.16.90.0.3/work/binutils-2.16.90.0.3/bfd/elfxx-mips.c line 7209 in _bfd_mips_elf_relocate_section /usr/lib/gcc/mips-unknown-linux-gnu/3.4.4/../../../../mips-unknown-linux-gnu/ bin/ld: Please report this bug. collect2: ld returned 1 exit status
Can you try binutils 2.16.91.0.4?
Yes, it works with binutils 2.16.91.0.4.
It should be fixed in binutils 2.16.91.0.5.