Many tests fail when gcc passes --no-add-needed to linker
H.J. Lu
hjl.tools@gmail.com
Sat Mar 20 00:12:00 GMT 2010
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.
More information about the Libc-alpha
mailing list