This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Many tests fail when gcc passes --no-add-needed to linker
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Fri, 19 Mar 2010 15:57:38 -0700
- Subject: Many tests fail when gcc passes --no-add-needed to linker
Hi,
Many tests failed if gcc passes --no-add-needed to linker with
error messages like:
/usr/local/bin/ld:
/export/build/gnu/glibc/build-x86_64-linux/nptl/tst-_res1.o: undefined
reference to symbol '_res'
/usr/local/bin/ld: note: '_res' is defined in DSO
/export/build/gnu/glibc/build-x86_64-linux/nptl/tst-_res1mod1.so so
try adding it to the linker command line
/export/build/gnu/glibc/build-x86_64-linux/nptl/tst-_res1mod1.so:
could not read symbols: Invalid operation
collect2: ld returned 1 exit status
...
/usr/local/bin/ld:
/export/build/gnu/glibc/build-x86_64-linux/elf/tst-tls1.o: undefined
reference to symbol '__tls_get_addr@@GLIBC_2.3'
/usr/local/bin/ld: note: '__tls_get_addr@@GLIBC_2.3' is defined in DSO
/export/build/gnu/glibc/build-x86_64-linux/elf/ld-linux-x86-64.so.2 so
try adding it to the linker command line
/export/build/gnu/glibc/build-x86_64-linux/elf/ld-linux-x86-64.so.2:
could not read symbols: Invalid operation
collect2: ld returned 1 exit status
--
H.J.