This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: lazy loading for glibc?
- From: Ilya Palachev <i dot palachev at samsung dot com>
- To: Paul Wise <pabs3 at bonedaddy dot net>, libc-alpha at sourceware dot org
- Date: Tue, 17 Feb 2015 12:33:00 +0300
- Subject: Re: lazy loading for glibc?
- Authentication-results: sourceware.org; auth=none
- References: <1424062460 dot 6609 dot 22 dot camel at bonedaddy dot net>
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