This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: IA64 linker is broken
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: "H. J. Lu" <hjl at lucon dot org>
- Cc: binutils at sources dot redhat dot com
- Date: Mon, 31 Jan 2005 10:32:27 +1030
- Subject: Re: IA64 linker is broken
- References: <20050130192249.GA21997@lucon.org>
On Sun, Jan 30, 2005 at 11:22:49AM -0800, H. J. Lu wrote:
> /usr/lib/crt1.o:(.dynamic+0x0): multiple definition of `_DYNAMIC'
[snip]
> The 2005-01-24 binutils is OK. It may have something to do with
>
> http://sources.redhat.com/ml/binutils/2005-01/msg00405.html
Possible, I suppose. An as-needed shared lib will define syms whether
or not the lib is actually linked. It will be linked if any symbol it
defines satisfies an undefined reference, and conversely it isn't linked
then there are no references to its symbols. That should make it safe
to leave its symbols in the symbol table, so long as we properly treat
them in _bfd_elf_merge_symbol. If there is a problem, it's likely to be
in _bfd_elf_merge_symbol.
--
Alan Modra
IBM OzLabs - Linux Technology Centre