bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with dynamic symbols forced to local on Itanium linker


From: Alan Modra
Subject: Re: problem with dynamic symbols forced to local on Itanium linker
Date: Tue, 5 Mar 2002 15:02:06 +1030
User-agent: Mutt/1.3.25i

On Mon, Mar 04, 2002 at 08:19:04PM -0800, Lowney, Geoff wrote:
>        /* Decide whether to output this symbol in this pass.  */
>          if (eoinfo->localsyms)
>          {
>            if ((h->elf_link_hash_flags & ELF_LINK_FORCED_LOCAL) == 0)
>              return true;
>          }
>          else
>          {
>     #if 0
>             if ((h->elf_link_hash_flags & ELF_LINK_FORCED_LOCAL) != 0)
>               return true;
>     #endif
>          }
> 
> Is this correct?

No.

>  Why is the check there?

It's there because elf_link_output_extsym is called twice, firstly for
local syms, then for global syms.  At least that is the case for
shared libs.  I think the same thing should happen with applications.
See http://sources.redhat.com/ml/binutils/2002-02/msg00687.html
You've just given me a good reason to check it in.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



reply via email to

[Prev in Thread] Current Thread [Next in Thread]