http://sourceware.org/bugzilla/show_bug.cgi?id=12324
--- Comment #2 from jh at suse dot de 2010-12-15 13:39:18 UTC --- With GNU ld I get: /abuild/jh/trunk-install/bin/gcc -O3 -flto -flto-partition=none -fuse-linker-plugin -shared -Wl,-soname -Wl,libnspr4.so -o libnspr4.so ./prvrsion.o io/./prfdcach.o io/./prmwait.o io/./prmapopt.o io/./priometh.o io/./pripv6.o io/./prlayer.o io/./prlog.o io/./prmmap.o io/./prpolevt.o io/./prprf.o io/./prscanf.o io/./prstdio.o threads/./prcmon.o threads/./prrwlock.o threads/./prtpd.o linking/./prlink.o malloc/./prmalloc.o malloc/./prmem.o md/./prosdep.o memory/./prshm.o memory/./prshma.o memory/./prseg.o misc/./pralarm.o misc/./pratom.o misc/./prcountr.o misc/./prdtoa.o misc/./prenv.o misc/./prerr.o misc/./prerror.o misc/./prerrortable.o misc/./prinit.o misc/./prinrval.o misc/./pripc.o misc/./prlog2.o misc/./prlong.o misc/./prnetdb.o misc/./praton.o misc/./prolock.o misc/./prrng.o misc/./prsystem.o misc/./prthinfo.o misc/./prtpool.o misc/./prtrace.o misc/./prtime.o pthreads/./ptsynch.o pthreads/./ptio.o pthreads/./ptthread.o pthreads/./ptmisc.o md/unix/./unix.o md/unix/./unix_errors.o md/unix/./uxproces.o md/unix/./uxrng.o md/unix/./uxshm.o md/unix/./uxwrap.o md/unix/./linux.o md/unix/./os_Linux_x86_64.o -lpthread -ldl /abuild/jh/trunk-install/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../x86_64-unknown-linux-gnu/bin/ld: /tmp/ccoCztSC.lto.o: relocation R_X86_64_PC32 against symbol `PR_Unlock' can not be used when making a shared object; recompile with -fPIC /abuild/jh/trunk-install/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../x86_64-unknown-linux-gnu/bin/ld: final link failed: Bad value with gold build passes. GNU ld is right that GCC produce non-PIC code here and adding -fPIC fixes the problem. evans:/abuild/jh/build-mozilla-new7/:[2]# /abuild/jh/trunk-install/bin/ld-goldnew --version GNU gold (GNU Binutils 2.20.51.20100706) 1.9 Copyright 2010 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or (at your option) a later version. This program has absolutely no warranty. more recent golds do not build for me with syntax errors: In file included from ../../gold/script-c.h:211, from yyscript.y:35: ../../gold/yyscript.h:195:1: error: "LENGTH" redefined yyscript.c:124:1: error: this is the location of the previous definition ../../gold/yyscript.h:196:1: error: "LOADADDR" redefined yyscript.c:125:1: error: this is the location of the previous definition ../../gold/yyscript.h:197:1: error: "LOCAL" redefined yyscript.c:126:1: error: this is the location of the previous definition ../../gold/yyscript.h:198:1: error: "LONG" redefined didn't looked yet into why. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils