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

Jean-Francois Panisset panisset@imageworks.com
Fri Jun 6 22:53:00 GMT 2003


>
>
>  
>
On IRIX, the runtime loader defines an interface which allows user code to access
the current list of mappings in its address space. From the man page for rld:

SYSTEM DEVELOPER'S INTERFACE
     rld keeps a doubly linked list of structures.  crt1.o contains a
     pointer, __rld_obj_head, to the head of the list of object structures.
     This pointer's targets depend on the ABI, as follows:

     * For a new 32-bit executable, __rld_obj_head points to a linked list
       of Elf32_Obj_Info structures:  /usr/include/objlist.h.

So just by adding:

extern __rld_obj_head *mapping_list;

you can access the list of mappings. Is there an equivalent functionality
with glibc under Linux? I'm trying to find out what is being mapped
into my address space.


Thanks,
JF







More information about the Libc-alpha mailing list