more optimizations

Ulrich Drepper drepper@redhat.com
Mon Feb 25 19:39:00 GMT 2002


Richard Henderson <rth@twiddle.net> writes:

> Incidentally, why does INTDEF not make use of STV_PROTECTED instead?
> Then we wouldn't need to clutter up the source with INTUSE.

This isn't the same.  The handling of STV_PROTECTED is actually more
expensive than a normal symbol lookup because of the requirement of C
that function pointers are unique.  And function pointers in this case
would be the address of the PLT entry.  Look into elf/dl-lookup.c to
see what hoops we have to jump through.

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



More information about the Libc-hacker mailing list