xref: /openbsd-src/include/link_elf.h (revision db3296cf5c1dd9058ceecc3a29fe4aaa0bd26000)
1 /*	$OpenBSD: link_elf.h,v 1.4 2002/09/08 17:55:37 drahn Exp $	*/
2 
3 /*
4  * Public domain.
5  */
6 
7 #ifndef _LINK_ELF_H
8 #define _LINK_ELF_H
9 
10 #include <elf_abi.h>
11 
12 #ifndef DT_PROCNUM
13 #define DT_PROCNUM 0
14 #endif
15 
16 /*
17  * struct link_map is a part of the protocol between the debugger and
18  * ld.so. ld.so may have additional fields in it's version of this
19  * stucture but those are ld.so private fields.
20  */
21 struct link_map {
22 	caddr_t		l_addr;		/* Base address of library */
23 	const char	*l_name;	/* Absolute path to library */
24 	void		*l_ld;		/* pointer to _DYNAMIC */
25 	struct link_map	*l_next;
26 	struct link_map	*l_prev;
27 };
28 #endif /* !_LINK_ELF_H */
29