This is the mail archive of the libc-alpha@sources.redhat.com 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]

Re: Shared library load address (FAQ??)


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


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