Add hints file structures and defines.
This commit is contained in:
parent
adae65a188
commit
512a3bb59b
@ -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_ */
|
||||
|
@ -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_ */
|
||||
|
Loading…
Reference in New Issue
Block a user