This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


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: [PATCH] Remove unnecessary IFUNC dispatch for __memset_chk.


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.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


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