Back to index

cell-binutils  2.17cvs20070401
elf-hints-local.h
Go to the documentation of this file.
00001 /* Copyright (c) 1997 John D. Polstra.
00002    All rights reserved.
00003  
00004    Redistribution and use in source and binary forms, with or without
00005    modification, are permitted provided that the following conditions
00006    are met:
00007    1. Redistributions of source code must retain the above copyright
00008       notice, this list of conditions and the following disclaimer.
00009    2. Redistributions in binary form must reproduce the above copyright
00010       notice, this list of conditions and the following disclaimer in the
00011       documentation and/or other materials provided with the distribution.
00012  
00013    THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
00014    ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00015    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00016    ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
00017    FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00018    DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
00019    OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
00020    HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
00021    LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
00022    OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00023    SUCH DAMAGE.  */
00024 
00025 #ifndef       _ELF_HINTS_H_
00026 #define       _ELF_HINTS_H_
00027 
00028 /* Hints file produced by ldconfig.  */
00029 struct elfhints_hdr
00030 {
00031   u_int32_t magic;          /* Magic number.  */
00032   u_int32_t version;        /* File version (1).  */
00033   u_int32_t strtab;         /* Offset of string table in file.  */
00034   u_int32_t strsize;        /* Size of string table.  */
00035   u_int32_t dirlist;        /* Offset of directory list in string table.  */
00036   u_int32_t dirlistlen;            /* strlen(dirlist).  */
00037   u_int32_t spare[26];             /* Room for expansion.  */
00038 };
00039 
00040 #define ELFHINTS_MAGIC      0x746e6845
00041 
00042 #define _PATH_ELF_HINTS     "/var/run/ld-elf.so.hints"
00043 
00044 #endif /* !_ELF_HINTS_H_ */