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

Segher Boessenkool segher@koffie.nl
Mon Jun 9 02:49:00 GMT 2003


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





More information about the Libc-alpha mailing list