This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: how to access list of mappings created by ld.so?
- From: Jean-Francois Panisset <panisset at imageworks dot com>
- To: Roland McGrath <roland at redhat dot com>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Fri, 06 Jun 2003 18:05:26 -0700
- Subject: Re: how to access list of mappings created by ld.so?
- References: <200306062325.h56NPcB17244@magilla.sf.frob.com>
Roland McGrath wrote:
Use dl_iterate_phdr from <link.h>.
Looks promising. At first, my callback was only
getting called once, until looking at the source for
dl-iteratephdr.c showed that it is preferable for that
callback to return 0 if you want to get the whole list.
I'm assuming that the first mapping which has dlpi_name set
to nil and lives around 0x400112c0 is ld.so itself?
Thanks a lot for the quick responce, this will be very useful.
JF