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