Shared library load address (FAQ??)

Andreas Jaeger aj@suse.de
Mon Apr 16 09:14:00 GMT 2001


Bharadwaj Yadavalli <sby@ives.lkg.dec.com> writes:

> Apologies if this is an FAQ - web and glibc source search did not
> yield an answer.
> 
> Is there a way to find out the address at which a shared library is
> loaded (via dlopen)?

Shared libraries are position independend and can be loaded at any
address.  

If you like to know the address of an already loaded library, you can
use dladdr or look (this works only in Linux) at /proc/<pid>/maps.

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj



More information about the Libc-alpha mailing list