Add hints file structures and defines.

This commit is contained in:
John Polstra 1998-09-05 00:53:53 +00:00
parent adae65a188
commit 512a3bb59b
2 changed files with 38 additions and 2 deletions

View File

@ -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_ */

View File

@ -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_ */