In order for binutils-2.18 to function properly (that is, not segfault on every program), libiberty needs to be built with PIC, as described in the mailing list message below: http://sourceware.org/ml/binutils/2008-04/msg00077.html The actual patch to apply is here: http://sourceware.org/ml/binutils/2008-04/msg00080.html However, to apply that patch, two changes from Upstream need to be pulled: http://sourceware.org/cgi-bin/cvsweb.cgi/src/libiberty/configure.diff?r1=1.89&r2=1.90&cvsroot=src http://sourceware.org/cgi-bin/cvsweb.cgi/src/libiberty/configure.ac.diff?r1=1.37&r2=1.38&cvsroot=src Attached to this bug are two patches, one of which combines the above two from binutils upstream, and the other is the one from the mailing list to fix libiberty.
Created attachment 161600 [details, diff] Upstream patches to add PICFLAG to configure
Created attachment 161601 [details, diff] Build libiberty w/ PIC support on mips
Ping: Mips really needs these patches to be able to do much with binutils-2.18: * Switching to mips-unknown-linux-gnu-2.18 ... [ ok ] >>> Regenerating /etc/ld.so.cache... * Please remember to run: * # source /etc/profile >>> Regenerating /etc/ld.so.cache... >>> Original instance of package unmerged safely. >>> Auto-cleaning packages... >>> No outdated packages were found on your system. * Regenerating GNU info directory index... * Processed 5 info files. [root@dol-guldur babl]# source /etc/profile [root@dol-guldur babl]# ld Segmentation fault
In binutils-2.18-r4