Bug 1882 - ld 2.16.90.0.3 link failure on MIPS64: "not enough GOT space for local GOT entries"
Summary: ld 2.16.90.0.3 link failure on MIPS64: "not enough GOT space for local GOT en...
Status: RESOLVED FIXED
Alias: None
Product: binutils
Classification: Unclassified
Component: ld (show other bugs)
Version: 2.17
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
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:


Attachments

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 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
Comment 1 H.J. Lu 2005-12-06 01:04:23 UTC
Can you try binutils 2.16.91.0.4?
Comment 2 Karl-Johan Karlsson 2005-12-08 15:02:57 UTC
Yes, it works with binutils 2.16.91.0.4.
Comment 3 H.J. Lu 2005-12-22 17:07:32 UTC
It should be fixed in binutils 2.16.91.0.5.