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