A patch for STV_PROTECTED

Ulrich Drepper drepper@redhat.com
Mon May 22 00:10:00 GMT 2000


"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.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------


More information about the Libc-hacker mailing list