1 .\" $NetBSD: ld.so.conf.5,v 1.19 2009/04/10 14:57:28 joerg Exp $
3 .\" Copyright (c) 1996 Matthew R. Green
4 .\" All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
15 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17 .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18 .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
20 .\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21 .\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
22 .\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
23 .\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 .Nd run-time link-editor configuration file
36 file specifies additional default directories (beyond the standard set,
42 systems, this file is scanned by
44 to create the hints files used by the run-time linker
45 .Pa /usr/libexec/ld.so
46 to locate shared libraries.
50 systems, this file is scanned directly by the run-time linker
51 .Pa /usr/libexec/ld.elf_so .
55 are treated as comments and ignored.
56 Any other non-blank lines beginning
59 are stripped of leading whitespace and trailing comments
62 together with any preceding whitespace, then treated as directories to be
63 scanned for shared libraries to add to the hints.
67 lines that do not begin with a
69 are parsed as hardware dependent per
72 \*[Lt]library\*[Gt] \*[Lt]sysctl\*[Gt] \*[Lt]variable\*[Gt][,...]:\*[Lt]library\*[Gt][,...] ...
75 If there is no match, the standard action is taken.
80 libm.so.0 machdep.fpu_present 1:libm387.so.0,libm.so.0
83 The above line loads both libm387 and libm when the
85 variable fpu_present has the value 1.
97 The ELF support for it was added in
100 Directory names containing the comment character
102 and/or leading or trailing whitespace cannot be included.
103 (Embedded blanks are allowed, however.)