diff options
| author | John Polstra <jdp@FreeBSD.org> | 1998-09-05 00:53:53 +0000 |
|---|---|---|
| committer | John Polstra <jdp@FreeBSD.org> | 1998-09-05 00:53:53 +0000 |
| commit | 512a3bb59bef108a1fe7ec9701c16f8634c06f20 (patch) | |
| tree | ed8e5883a44ef799b4cd192132bf4c6ea6cec7ba /include | |
| parent | adae65a188518de037493f3243058570fd8b7aa0 (diff) | |
Notes
Diffstat (limited to 'include')
| -rw-r--r-- | include/elf-hints.h | 20 | ||||
| -rw-r--r-- | include/elf.h | 20 |
2 files changed, 38 insertions, 2 deletions
diff --git a/include/elf-hints.h b/include/elf-hints.h index 0e45bbf53499..f4ee8d4291e6 100644 --- a/include/elf-hints.h +++ b/include/elf-hints.h @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: elf.h,v 1.1 1997/05/21 23:07:27 jdp Exp $ */ #ifndef _ELF_H_ @@ -32,4 +32,22 @@ #include <sys/types.h> #include <machine/elf.h> +/* + * Hints file produced by ldconfig. + */ +struct elfhints_hdr { + u_int32_t magic; /* Magic number */ + u_int32_t version; /* File version (1) */ + u_int32_t strtab; /* Offset of string table in file */ + u_int32_t strsize; /* Size of string table */ + u_int32_t dirlist; /* Offset of directory list in + string table */ + u_int32_t dirlistlen; /* strlen(dirlist) */ + u_int32_t spare[26]; /* Room for expansion */ +}; + +#define ELFHINTS_MAGIC 0x746e6845 + +#define _PATH_ELF_HINTS "/var/run/ld-elf.so.hints" + #endif /* !_ELF_H_ */ diff --git a/include/elf.h b/include/elf.h index 0e45bbf53499..f4ee8d4291e6 100644 --- a/include/elf.h +++ b/include/elf.h @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: elf.h,v 1.1 1997/05/21 23:07:27 jdp Exp $ */ #ifndef _ELF_H_ @@ -32,4 +32,22 @@ #include <sys/types.h> #include <machine/elf.h> +/* + * Hints file produced by ldconfig. + */ +struct elfhints_hdr { + u_int32_t magic; /* Magic number */ + u_int32_t version; /* File version (1) */ + u_int32_t strtab; /* Offset of string table in file */ + u_int32_t strsize; /* Size of string table */ + u_int32_t dirlist; /* Offset of directory list in + string table */ + u_int32_t dirlistlen; /* strlen(dirlist) */ + u_int32_t spare[26]; /* Room for expansion */ +}; + +#define ELFHINTS_MAGIC 0x746e6845 + +#define _PATH_ELF_HINTS "/var/run/ld-elf.so.hints" + #endif /* !_ELF_H_ */ |
