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