elf-hints.h revision 330897
1290650Shselasky/*-
2337115Shselasky * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3290650Shselasky *
4290650Shselasky * Copyright (c) 1997 John D. Polstra.
5290650Shselasky * All rights reserved.
6290650Shselasky *
7290650Shselasky * Redistribution and use in source and binary forms, with or without
8290650Shselasky * modification, are permitted provided that the following conditions
9290650Shselasky * are met:
10290650Shselasky * 1. Redistributions of source code must retain the above copyright
11290650Shselasky *    notice, this list of conditions and the following disclaimer.
12290650Shselasky * 2. Redistributions in binary form must reproduce the above copyright
13290650Shselasky *    notice, this list of conditions and the following disclaimer in the
14290650Shselasky *    documentation and/or other materials provided with the distribution.
15290650Shselasky *
16290650Shselasky * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17290650Shselasky * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18290650Shselasky * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19290650Shselasky * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20290650Shselasky * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21290650Shselasky * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22290650Shselasky * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23290650Shselasky * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24290650Shselasky * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25290650Shselasky * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26290650Shselasky * SUCH DAMAGE.
27290650Shselasky *
28290650Shselasky * $FreeBSD: stable/11/include/elf-hints.h 330897 2018-03-14 03:19:51Z eadler $
29290650Shselasky */
30290650Shselasky
31290650Shselasky#ifndef	_ELF_HINTS_H_
32290650Shselasky#define	_ELF_HINTS_H_
33331807Shselasky
34331807Shselasky/*
35331807Shselasky * Hints file produced by ldconfig.
36331807Shselasky */
37331807Shselaskystruct elfhints_hdr {
38331807Shselasky	u_int32_t	magic;		/* Magic number */
39331807Shselasky	u_int32_t	version;	/* File version (1) */
40331807Shselasky	u_int32_t	strtab;		/* Offset of string table in file */
41331807Shselasky	u_int32_t	strsize;	/* Size of string table */
42331807Shselasky	u_int32_t	dirlist;	/* Offset of directory list in
43331807Shselasky					   string table */
44331807Shselasky	u_int32_t	dirlistlen;	/* strlen(dirlist) */
45331807Shselasky	u_int32_t	spare[26];	/* Room for expansion */
46331807Shselasky};
47331807Shselasky
48331807Shselasky#define ELFHINTS_MAGIC	0x746e6845
49331807Shselasky
50331807Shselasky#define _PATH_ELF_HINTS	"/var/run/ld-elf.so.hints"
51331807Shselasky
52331807Shselasky#endif /* !_ELF_HINTS_H_ */
53331807Shselasky