This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]