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: lazy loading for glibc?


On 16.02.2015 07:54, Paul Wise wrote:
Hi all,

Does glibc have the ability to do lazy loading like Solaris libc?

http://docs.oracle.com/cd/E19253-01/817-1984/chapter3-27/index.html

Has anyone worked on this before?

The essential components appear to be:

ld -z lazyload
dlsym(RTLD_PROBE, "function_name")

This would allow shared libraries to become optional, which would be
useful for various reasons.


Dear Paul,

AFAIK, currently glibc does not support lazy loading like Solaris libc.

Lazy loading in glibc has been investigated some time ago.

Maybe the following threads will help you:
https://sourceware.org/ml/libc-help/2013-02/msg00017.html
http://comments.gmane.org/gmane.comp.handhelds.tizen.devel/4892

--
Ilya


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