/*-1* Copyright 1996, 1997, 1998, 1999, 2000 John D. Polstra.2* Copyright 2003 Alexander Kabaev <[email protected]>.3* All rights reserved.4*5* Redistribution and use in source and binary forms, with or without6* modification, are permitted provided that the following conditions7* are met:8* 1. Redistributions of source code must retain the above copyright9* notice, this list of conditions and the following disclaimer.10* 2. Redistributions in binary form must reproduce the above copyright11* notice, this list of conditions and the following disclaimer in the12* documentation and/or other materials provided with the distribution.13*14* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR15* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES16* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.17* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,18* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT19* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,20* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY21* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT22* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF23* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.24*/2526#ifndef _RTLD_PATHS_H27#define _RTLD_PATHS_H2829#undef _PATH_ELF_HINTS3031#ifndef _RTLD_COMPAT_LIB_SUFFIX32#ifdef COMPAT_libcompat33#define _RTLD_COMPAT_LIB_SUFFIX COMPAT_libcompat34#else35#define _RTLD_COMPAT_LIB_SUFFIX ""36#endif37#endif3839#ifndef _RTLD_COMPAT_ENV_SUFFIX40#ifdef COMPAT_LIBCOMPAT41#define _RTLD_COMPAT_ENV_SUFFIX COMPAT_LIBCOMPAT "_"42#else43#define _RTLD_COMPAT_ENV_SUFFIX ""44#endif45#endif4647#ifndef __PATH_ELF_HINTS48#define __PATH_ELF_HINTS(_lc) "/var/run/ld-elf" _lc ".so.hints"49#endif5051#ifndef _PATH_ELF_HINTS52#define _PATH_ELF_HINTS __PATH_ELF_HINTS(_RTLD_COMPAT_LIB_SUFFIX)53#endif5455#ifndef _PATH_LIBMAP_CONF56#define _PATH_LIBMAP_CONF "/etc/libmap" _RTLD_COMPAT_LIB_SUFFIX ".conf"57#endif5859#ifndef __BASENAME_RTLD60#define __BASENAME_RTLD(_lc) "ld-elf" _lc ".so.1"61#endif6263#ifndef _BASENAME_RTLD64#define _BASENAME_RTLD __BASENAME_RTLD(_RTLD_COMPAT_LIB_SUFFIX)65#endif6667#ifndef __PATH_RTLD68#define __PATH_RTLD(_lc) "/libexec/" __BASENAME_RTLD(_lc)69#endif7071#ifndef _PATH_RTLD72#define _PATH_RTLD __PATH_RTLD(_RTLD_COMPAT_LIB_SUFFIX)73#endif7475#ifndef STANDARD_LIBRARY_PATH76#define STANDARD_LIBRARY_PATH "/lib" _RTLD_COMPAT_LIB_SUFFIX ":/usr/lib" _RTLD_COMPAT_LIB_SUFFIX77#endif7879#ifndef LD_80#define LD_ "LD_" _RTLD_COMPAT_ENV_SUFFIX81#endif8283#ifndef TOKEN_LIB84#define TOKEN_LIB "lib" _RTLD_COMPAT_LIB_SUFFIX85#endif8687#ifdef IN_RTLD88extern const char *ld_elf_hints_default;89extern const char *ld_path_libmap_conf;90extern const char *ld_path_rtld;91extern const char *ld_standard_library_path;92extern const char *ld_env_prefix;93#endif9495#endif /* _RTLD_PATHS_H */969798