[PATCH] Remove unnecessary IFUNC dispatch for __memset_chk.

Zack Weinberg zackw@panix.com
Tue Aug 11 18:52:00 GMT 2015


On 08/11/2015 02:40 PM, Andreas Schwab wrote:
> Zack Weinberg <zackw@panix.com> writes:
> 
>> Not true.  Maybe this isn't how it works right now, maybe this violates
>> observable ELF semantics, and maybe this would wind up eliminating all
>> the benefit of lazy loading, but it is *possible* for the dynamic loader
>> to point the GOT entry for each imported function at a canonical PLT
>> entry from the library that defines that function.  That is a thing it
>> could do.
> 
> To find the canonical PLT it needs to resolve the symbol, which defeats
> the purpose of lazy linking.  If you want that use LD_BIND_NOW.

Yah, that's what I suspected.  But that doesn't mean it's *impossible*
for there to be one canonical PLT, only that it is incompatible with
lazy linking.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20150811/41373e46/attachment.sig>


More information about the Libc-alpha mailing list