10SN/A/* Copyright (c) 1997 John D. Polstra. 217234Salanb All rights reserved. 30SN/A 40SN/A Redistribution and use in source and binary forms, with or without 50SN/A modification, are permitted provided that the following conditions 60SN/A are met: 72362SN/A 1. Redistributions of source code must retain the above copyright 80SN/A notice, this list of conditions and the following disclaimer. 92362SN/A 2. Redistributions in binary form must reproduce the above copyright 100SN/A notice, this list of conditions and the following disclaimer in the 110SN/A documentation and/or other materials provided with the distribution. 120SN/A 130SN/A THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 140SN/A ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 150SN/A IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 160SN/A ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 170SN/A FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 180SN/A DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 190SN/A OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 200SN/A HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 212362SN/A LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 222362SN/A OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 232362SN/A SUCH DAMAGE. */ 240SN/A 250SN/A#ifndef _ELF_HINTS_H_ 260SN/A#define _ELF_HINTS_H_ 270SN/A 280SN/A#include "bfd_stdint.h" 290SN/A 300SN/A/* Hints file produced by ldconfig. */ 310SN/Astruct elfhints_hdr 320SN/A{ 330SN/A uint32_t magic; /* Magic number. */ 340SN/A uint32_t version; /* File version (1). */ 350SN/A uint32_t strtab; /* Offset of string table in file. */ 360SN/A uint32_t strsize; /* Size of string table. */ 370SN/A uint32_t dirlist; /* Offset of directory list in string table. */ 380SN/A uint32_t dirlistlen; /* strlen(dirlist). */ 390SN/A uint32_t spare[26]; /* Room for expansion. */ 400SN/A}; 410SN/A 420SN/A#define ELFHINTS_MAGIC 0x746e6845 430SN/A 440SN/A#define _PATH_ELF_HINTS "/var/run/ld-elf.so.hints" 450SN/A 460SN/A#endif /* !_ELF_HINTS_H_ */ 470SN/A