This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


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

A patch for ELF visibility.


On Sun, May 21, 2000 at 11:38:08PM -0700, Ulrich Drepper wrote:
> "H . J . Lu" <hjl@valinux.com> writes:
> 
> > You may also need this patch against binutils in CVS to get it
> > to work. I am waiting for feedbacks before I check it in.
> 
> A patch like this is necessary in any case.  I would write it like this:
> 
>   /* If a symbol is not defined locally, we clear the visibility
>      field. */
>   if ((h->elf_link_hash_flags & ELF_LINK_HASH_DEF_REGULAR) == 0)
>     sym.st_other ^= ELF_ST_VISIBILITY (sym.st_other);
> 
> Saves an instructions or two.
> 

Thanks. I checked it in.


H.J.

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