Home | History | Annotate | Line # | Download | only in include
link_elf.h revision 1.4
      1  1.4  christos /*	$NetBSD: link_elf.h,v 1.4 1999/03/01 16:40:07 christos Exp $	*/
      2  1.1       cgd 
      3  1.1       cgd /*
      4  1.1       cgd  * This only exists for GDB.
      5  1.1       cgd  */
      6  1.1       cgd #ifndef _LINK_H
      7  1.1       cgd #define	_LINK_H
      8  1.1       cgd 
      9  1.1       cgd #include <sys/types.h>
     10  1.3  jonathan 
     11  1.3  jonathan #include <machine/elf_machdep.h>
     12  1.1       cgd 
     13  1.1       cgd struct link_map {
     14  1.4  christos 	caddr_t		 l_addr;	/* Base Address of library */
     15  1.2    mhitch #ifdef __mips__
     16  1.4  christos 	caddr_t		 l_offs;	/* Load Offset of library */
     17  1.2    mhitch #endif
     18  1.4  christos 	const char	*l_name;	/* Absolute Path to Library */
     19  1.4  christos 	void		*l_ld;		/* Pointer to .dynamic in memory */
     20  1.4  christos 	struct link_map	*l_next;	/* linked list of of mapped libs */
     21  1.4  christos 	struct link_map *l_prev;
     22  1.1       cgd };
     23  1.1       cgd 
     24  1.1       cgd struct r_debug {
     25  1.4  christos 	int r_version;			/* not used */
     26  1.4  christos 	struct link_map *r_map;		/* list of loaded images */
     27  1.4  christos 	void (*r_brk) __P((void));	/* pointer to break point */
     28  1.1       cgd 	enum {
     29  1.4  christos 		RT_CONSISTENT,		/* things are stable */
     30  1.4  christos 		RT_ADD,			/* adding a shared library */
     31  1.4  christos 		RT_DELETE		/* removing a shared library */
     32  1.4  christos 	} r_state;
     33  1.1       cgd };
     34  1.4  christos 
     35  1.1       cgd #endif	/* _LINK_H */
     36  1.1       cgd 
     37