mirror of
https://git.FreeBSD.org/src.git
synced 2025-02-05 18:05:16 +00:00
Add hints file structures and defines.
This commit is contained in:
parent
adae65a188
commit
512a3bb59b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=38830
@ -23,7 +23,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id$
|
* $Id: elf.h,v 1.1 1997/05/21 23:07:27 jdp Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _ELF_H_
|
#ifndef _ELF_H_
|
||||||
@ -32,4 +32,22 @@
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <machine/elf.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_ */
|
#endif /* !_ELF_H_ */
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id$
|
* $Id: elf.h,v 1.1 1997/05/21 23:07:27 jdp Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _ELF_H_
|
#ifndef _ELF_H_
|
||||||
@ -32,4 +32,22 @@
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <machine/elf.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_ */
|
#endif /* !_ELF_H_ */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user