diff options
author | peter <peter@FreeBSD.org> | 2002-08-22 20:35:23 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2002-08-22 20:35:23 +0000 |
commit | 81d3ff3753abf2de072a5ad4cd511c745c7dddea (patch) | |
tree | ecd027e910ae9713be464e15adeb703c8e5e047a /sys/sys/link_aout.h | |
parent | 1f0d017c73ef69696bbb86031edfb368d4a63911 (diff) | |
download | FreeBSD-src-81d3ff3753abf2de072a5ad4cd511c745c7dddea.zip FreeBSD-src-81d3ff3753abf2de072a5ad4cd511c745c7dddea.tar.gz |
Repo copy link.h to sys/link_elf.h and sys/link_aout.h since they are
shared with the kernel. This should make it easier to #include them both
at once as well as stop grabbing stuff from /usr/include.
Diffstat (limited to 'sys/sys/link_aout.h')
-rw-r--r-- | sys/sys/link_aout.h | 36 |
1 files changed, 3 insertions, 33 deletions
diff --git a/sys/sys/link_aout.h b/sys/sys/link_aout.h index 6222baf..0d32a3b 100644 --- a/sys/sys/link_aout.h +++ b/sys/sys/link_aout.h @@ -38,36 +38,8 @@ * library scheme. */ -#ifndef _LINK_H_ -#define _LINK_H_ - -#if (defined(FREEBSD_ELF) || defined(__ELF__)) && !defined(FREEBSD_AOUT) - -#include <sys/types.h> - -struct link_map { - caddr_t l_addr; /* Base Address of library */ -#ifdef __mips__ - caddr_t l_offs; /* Load Offset of library */ -#endif - const char *l_name; /* Absolute Path to Library */ - const void *l_ld; /* Pointer to .dynamic in memory */ - struct link_map *l_next, *l_prev; /* linked list of of mapped libs */ -}; - -struct r_debug { - int r_version; /* not used */ - struct link_map *r_map; /* list of loaded images */ - void (*r_brk)(struct r_debug *, struct link_map *); - /* pointer to break point */ - enum { - RT_CONSISTENT, /* things are stable */ - RT_ADD, /* adding a shared library */ - RT_DELETE /* removing a shared library */ - } r_state; -}; - -#else /* !__ELF__ */ +#ifndef _SYS_LINK_AOUT_H_ +#define _SYS_LINK_AOUT_H_ struct dl_info; @@ -313,6 +285,4 @@ struct hints_bucket { #define _PATH_LD_HINTS "/var/run/ld.so.hints" -#endif /* !__ELF__ */ - -#endif /* _LINK_H_ */ +#endif /* _SYS_LINK_AOUT_H_ */ |