This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Shared library load address (FAQ??)
- To: Bharadwaj Yadavalli <bharadwaj dot yadavalli at compaq dot com>
- Subject: Re: Shared library load address (FAQ??)
- From: Andreas Jaeger <aj at suse dot de>
- Date: 16 Apr 2001 18:11:40 +0200
- Cc: libc-alpha at sources dot redhat dot com
- References: <200104161600.MAA09964@ives.lkg.dec.com>
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