This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Many tests fail when gcc passes --no-add-needed to linker
- From: Ulrich Drepper <drepper at redhat dot com>
- To: libc-alpha at sourceware dot org
- Date: Thu, 08 Apr 2010 19:38:05 -0700
- Subject: Re: Many tests fail when gcc passes --no-add-needed to linker
- References: <6dc9ffc81003191557k188c5242h504a0c39c5d99285@mail.gmail.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 03/19/2010 03:57 PM, H.J. Lu wrote:
> Many tests failed if gcc passes --no-add-needed to linker with
> error messages like:
These all look like bugs in the linker to me. The symbols in question
are contained in DSOs which are linked in. Aside, the tst-tls1 error
looks like this:
/usr/bin/ld: : invalid DSO for symbol `__tls_get_addr@@GLIBC_2.3'
definition
/home/drepper/local/glibc-builds/20100408/elf/ld-linux-x86-64.so.2:
could not read symbols: Bad value
This works fine with --no-add-needed.
(Yes, there is a bogus character near the beginning of the message.)
Somebody hacking on ld might want to build the glibc test suite with
this option.
- --
â Ulrich Drepper â Red Hat, Inc. â 444 Castro St â Mountain View, CA â
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAku+kw0ACgkQ2ijCOnn/RHTurACfT/Z79tumzR+9mLW7SSxPd7GO
ZFwAoIHhgFkqsV8rZincLMQsn9tKiu/V
=Ay6p
-----END PGP SIGNATURE-----