This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
how to access list of mappings created by ld.so?
- From: Jean-Francois Panisset <panisset at imageworks dot com>
- To: libc-alpha at sources dot redhat dot com
- Date: Fri, 06 Jun 2003 15:53:32 -0700
- Subject: how to access list of mappings created by ld.so?
- References: <200306062243.PAA2864779@miyune.spimageworks.com>
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