Bug 1882 - ld link failure on MIPS64: "not enough GOT space for local GOT entries"
Summary: ld link failure on MIPS64: "not enough GOT space for local GOT en...
Alias: None
Product: binutils
Classification: Unclassified
Component: ld (show other bugs)
Version: 2.17
: P2 normal
Target Milestone: ---
Assignee: unassigned
Depends on:
Reported: 2005-11-18 10:20 UTC by Karl-Johan Karlsson
Modified: 2005-12-22 17:07 UTC (History)
1 user (show)

See Also:
Host: mips64-unknown-linux-gnu
Target: mips64-unknown-linux-gnu
Build: mips64-unknown-linux-gnu
Last reconfirmed:


Note You need to log in before you can comment on or make changes to this bug.
Description Karl-Johan Karlsson 2005-11-18 10:20:56 UTC
On MIPS64 (SGI Octane with one R10k running Gentoo Linux) ld 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, and Shadow 4.0.13 builds with binutils 

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
bin/ld: not enough GOT space for local GOT entries
bin/ld: BFD 20050510 internal error, aborting at /var/tmp/portage/
binutils- line 7209 in 

bin/ld: Please report this bug.

collect2: ld returned 1 exit status
Comment 1 H.J. Lu 2005-12-06 01:04:23 UTC
Can you try binutils
Comment 2 Karl-Johan Karlsson 2005-12-08 15:02:57 UTC
Yes, it works with binutils
Comment 3 H.J. Lu 2005-12-22 17:07:32 UTC
It should be fixed in binutils