how to access list of mappings created by ld.so?
Jean-Francois Panisset
panisset@imageworks.com
Sat Jun 7 01:05:00 GMT 2003
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
More information about the Libc-alpha
mailing list