Sync usage with man page.
[netbsd-mini2440.git] / include / link_elf.h
blobea7e4563c489d877e9398614013237f7837dcb70
1 /* $NetBSD: link_elf.h,v 1.7 2006/01/11 22:50:35 uwe Exp $ */
3 /*
4 * This only exists for GDB.
5 */
7 #ifndef _LINK_ELF_H_
8 #define _LINK_ELF_H_
10 #include <sys/types.h>
12 #include <machine/elf_machdep.h>
14 typedef 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 } Link_map;
25 struct r_debug {
26 int r_version; /* not used */
27 struct link_map *r_map; /* list of loaded images */
28 void (*r_brk)(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;
36 #endif /* _LINK_ELF_H_ */