This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
A question about dynamic linking
- From: "Albert Miranda" <m dot b dot albert at gmail dot com>
- To: libc-alpha <libc-alpha at sourceware dot org>
- Date: Wed, 15 Mar 2006 20:40:14 +0100
- Subject: A question about dynamic linking
Hello,
I'm working on a project related with the dynamic linker and I need to
know which libraries have been loaded and where (in which base
addresses) from the same program that needs them to avoid mmapping a
library that's already been loaded.
Exploring through ld.so.1 code I've seen there's a list of link_map
structures that contains the information I need and is maintained
during the life of the loaded program (I assume this is done to
provide lazy binding), but when trying to access it through
dl_rtld_map I'm (logically) unable to do it (gcc doesn't complain but
ld.so.1 can't resolve the symbol).
Is there any way to do this?
Thanks,
Albert