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]

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






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






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