summaryrefslogtreecommitdiff
path: root/include/link_elf.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/link_elf.h')
-rw-r--r--include/link_elf.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/link_elf.h b/include/link_elf.h
new file mode 100644
index 00000000000..71488c818ce
--- /dev/null
+++ b/include/link_elf.h
@@ -0,0 +1,24 @@
+/* $OpenBSD: link_elf.h,v 1.1 2002/06/07 03:00:01 art Exp $ */
+
+/*
+ * Public domain.
+ */
+
+#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.
+ */
+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;
+};
+