diff options
author | jdp <jdp@FreeBSD.org> | 1998-09-05 00:53:53 +0000 |
---|---|---|
committer | jdp <jdp@FreeBSD.org> | 1998-09-05 00:53:53 +0000 |
commit | f5014f7cc0caa2a0b89ffad63767c50e0c7a8d49 (patch) | |
tree | f8da102df1518b7294d782323068d15ded7f8dc4 | |
parent | c9603566dc6ddea0fab444f06d743c78d2d9bad2 (diff) | |
download | FreeBSD-src-f5014f7cc0caa2a0b89ffad63767c50e0c7a8d49.zip FreeBSD-src-f5014f7cc0caa2a0b89ffad63767c50e0c7a8d49.tar.gz |
Add hints file structures and defines.
-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 0e45bbf..f4ee8d4 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 0e45bbf..f4ee8d4 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_ */ |