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