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]
Other format: [Raw text]

Re: how to access list of mappings created by ld.so?


Jean-Francois Panisset wrote:
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?

No, it's the main program.



Segher





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