Fixed
Created: Jul 23, 2014
Updated: Dec 3, 2018
Resolved Date: Jan 20, 2015
Found In Version: 6.0.0.5
Fix Version: 6.0.0.17
Severity: Severe
Applicable for: Wind River Linux 6
Component/s: Toolchain
when customer try to link a mips program, ld print 'not enough GOT space for local GOT entries', then link fail. logs are as below:
/home/cso/sdk/6.0-bcm-xlp/sysroots/x86_64-wrlinuxsdk-linux/usr/toolchain/bin/../lib/gcc/mips-wrs-linux-gnu/4.8.1/../../../../mips-wrs-linux-gnu/bin/ld: not enough GOT space for local GOT entries
/home/cso/sdk/6.0-bcm-xlp/sysroots/x86_64-wrlinuxsdk-linux/usr/toolchain/bin/../lib/gcc/mips-wrs-linux-gnu/4.8.1/../../../../mips-wrs-linux-gnu/bin/ld: BFD (Wind River Linux Sourcery CodeBench 4.8-30) 2.23.2 internal error, aborting at /scratch/jmyers/wrs/4.8/obj/binutils-src-4.8-30-mips-wrs-linux-gnu-i686-pc-linux-gnu/bfd/elfxx-mips.c line 9685 in _bfd_mips_elf_relocate_section
/home/cso/sdk/6.0-bcm-xlp/sysroots/x86_64-wrlinuxsdk-linux/usr/toolchain/bin/../lib/gcc/mips-wrs-linux-gnu/4.8.1/../../../../mips-wrs-linux-gnu/bin/ld: Please report this bug.
collect2: error: ld returned 1 exit status
1. create a wrlinux project: /home/cso/WindRiver-6.0.0/wrlinux-6/wrlinux/configure --enable-kernel=standard --enable-board=bcm-xlp --enable-rootfs=glibc_core --enable-parallel-pkgbuilds=4 --enable-jobs=4
2. make export-sdk
3. install exported sdk
4. cd sdk_install_dir; source env.sh
5. unzip scu.tar.bz2 attached
6. $CC -o scu_r810 bits.o crc.o deflate.o inflate.o nmunet.o nmualm.o nmucfg.o nmumain.o nmupfm.o poll.o sub1.o trees.o util.o zip.o nmuinfo.o nmualmfun.o match.o osdep.o nmuswitch.o nmuevents.o neglobalupdate.o rinetd.o os_api.o ipcom.o ipnet2.o iptcp.o ipppp.o ipmpls.o ipcrypto.o ipappl.o ipradius.o iptacacs.o ipdhcpr.o ipdhcps.o ipconf.o lib.o imi.o hal.o pal.o nsm.o bgpd.o ospfd.o pimd.o isisd.o ospf6d.o oamd.o ldpd.o rsvpd.o dump.o pkcap.o snmp.o tne.o cal.o mplsonm.o dhcpd.o lacpd.o pim6d.o mas.o vrrpd.o ntpd.o onmd.o device_minm.o if_mpc854x_eth.o main.o mas_packet.o pf_packet_com.o rcu_pkt.o -lm -lpthread -lrt