ver_test_8_2.so

David Miller davem@davemloft.net
Tue May 20 06:28:00 GMT 2008


From: Ian Lance Taylor <iant@google.com>
Date: Mon, 19 May 2008 23:17:07 -0700

> I don't understand this.  The command to generate ver_test_8_2.so
> doesn't look much different from the command to generate any other
> shared library in the testsuite.  The -shared option should get gcc to
> link in the right set of CRT files.

Right.

> Hmmmm, I bet the problem is the version script used with
> ver_test_8_2.so.  That version script makes everything global--which
> is not a good idea, but was the only way I could find to recreate the
> problem report with the openssl libraries with KDE.  Does something
> like this patch fix the problem?

No, it doesn't, same problem:

g++ -m32 -W -Wall   -Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -g -O2   -o ver_test_8_2.so -Bgcctestdir/ -shared -Wl,--version-script,../../../src/gold/testsuite/ver_test_8.script two_file_test_2_pic.o
gcctestdir/ld: /usr/lib/gcc/sparc-linux-gnu/4.1.3/../../../../lib/crti.o: requires unsupported dynamic reloc 17; recompile with -fPIC
gcctestdir/ld: /usr/lib/gcc/sparc-linux-gnu/4.1.3/crtbeginS.o: requires unsupported dynamic reloc 17; recompile with -fPIC
gcctestdir/ld: two_file_test_2_pic.o: requires unsupported dynamic reloc 17; recompile with -fPIC
gcctestdir/ld: /usr/lib/gcc/sparc-linux-gnu/4.1.3/crtendS.o: requires unsupported dynamic reloc 17; recompile with -fPIC
collect2: ld returned 1 exit status
make[3]: *** [ver_test_8_2.so] Error 1
make[3]: Leaving directory `/home/davem/src/BINUTILS/cvs/build-sparc-linux/gold/testsuite'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory `/home/davem/src/BINUTILS/cvs/build-sparc-linux/gold/testsuite'
make[1]: *** [check] Error 2
make[1]: Leaving directory `/home/davem/src/BINUTILS/cvs/build-sparc-linux/gold/testsuite'
make: *** [check-recursive] Error 1



More information about the Binutils mailing list