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