|
Packit |
ba3681 |
/* Copyright (c) 1997 John D. Polstra.
|
|
Packit |
ba3681 |
All rights reserved.
|
|
Packit |
ba3681 |
|
|
Packit |
ba3681 |
Redistribution and use in source and binary forms, with or without
|
|
Packit |
ba3681 |
modification, are permitted provided that the following conditions
|
|
Packit |
ba3681 |
are met:
|
|
Packit |
ba3681 |
1. Redistributions of source code must retain the above copyright
|
|
Packit |
ba3681 |
notice, this list of conditions and the following disclaimer.
|
|
Packit |
ba3681 |
2. Redistributions in binary form must reproduce the above copyright
|
|
Packit |
ba3681 |
notice, this list of conditions and the following disclaimer in the
|
|
Packit |
ba3681 |
documentation and/or other materials provided with the distribution.
|
|
Packit |
ba3681 |
|
|
Packit |
ba3681 |
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
Packit |
ba3681 |
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
Packit |
ba3681 |
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
Packit |
ba3681 |
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
Packit |
ba3681 |
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
Packit |
ba3681 |
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
Packit |
ba3681 |
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
Packit |
ba3681 |
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
Packit |
ba3681 |
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
Packit |
ba3681 |
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
Packit |
ba3681 |
SUCH DAMAGE. */
|
|
Packit |
ba3681 |
|
|
Packit |
ba3681 |
#ifndef _ELF_HINTS_H_
|
|
Packit |
ba3681 |
#define _ELF_HINTS_H_
|
|
Packit |
ba3681 |
|
|
Packit |
ba3681 |
#include "bfd_stdint.h"
|
|
Packit |
ba3681 |
|
|
Packit |
ba3681 |
/* Hints file produced by ldconfig. */
|
|
Packit |
ba3681 |
struct elfhints_hdr
|
|
Packit |
ba3681 |
{
|
|
Packit |
ba3681 |
uint32_t magic; /* Magic number. */
|
|
Packit |
ba3681 |
uint32_t version; /* File version (1). */
|
|
Packit |
ba3681 |
uint32_t strtab; /* Offset of string table in file. */
|
|
Packit |
ba3681 |
uint32_t strsize; /* Size of string table. */
|
|
Packit |
ba3681 |
uint32_t dirlist; /* Offset of directory list in string table. */
|
|
Packit |
ba3681 |
uint32_t dirlistlen; /* strlen(dirlist). */
|
|
Packit |
ba3681 |
uint32_t spare[26]; /* Room for expansion. */
|
|
Packit |
ba3681 |
};
|
|
Packit |
ba3681 |
|
|
Packit |
ba3681 |
#define ELFHINTS_MAGIC 0x746e6845
|
|
Packit |
ba3681 |
|
|
Packit |
ba3681 |
#define _PATH_ELF_HINTS "/var/run/ld-elf.so.hints"
|
|
Packit |
ba3681 |
|
|
Packit |
ba3681 |
#endif /* !_ELF_HINTS_H_ */
|