This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: more optimizations


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   `------------------------


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