Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
ld.so(8)
Edit
PageHistory
Diff
Info
LikePages
ld.so !!!ld.so NAME DESCRIPTION ENVIRONMENT FILES SEE ALSO BUGS AUTHORS ---- !!NAME ld.so/ld-linux.so - dynamic linker/loader !!DESCRIPTION __ld.so__ loads the shared libraries needed by a program, prepares the program to run, and then runs it. Unless explicitly specified via the __-static__ option to __ld__ during compilation, all Linux programs are incomplete and require further linking at run time. The necessary shared libraries needed by the program are searched for in the following order o Using the environment variable __LD_LIBRARY_PATH__ (__LD_AOUT_LIBRARY_PATH__ for a.out programs). Except if the executable is a setuid/setgid binary, in which case it is ignored. o From the cache file __/etc/ld.so.cache__ which contains a compiled list of candidate libraries previously found in the augmented library path. o In the default path __/usr/lib__, and then __/lib__. !!ENVIRONMENT __LD_LIBRARY_PATH__ A colon-separated list of directories in which to search for ELF libraries at execution-time. Similar to the __PATH__ environment variable. __LD_PRELOAD__ A whitespace-separated list of additional, user-specified, ELF shared libraries to be loaded before all others. This can be used to selectively override functions in other shared libraries. For setuid/setgid ELF binaries, only libraries in the standard search directories that are also setgid will be loaded. __LD_TRACE_LOADED_OBJECTS__ If present, causes the program to list its dynamic library dependencies, as if run by ldd, instead of running normally. __LD_BIND_NOW__ If present, causes the dynamic linker to resolve all symbols at program startup instead of when they are first referenced. __LD_AOUT_LIBRARY_PATH__ A colon-separated list of directories in which to search for a.out libraries at execution-time. Similar to the __PATH__ environment variable. __LD_AOUT_PRELOAD__ The name of an additional, user-specified, a.out shared library to be loaded after all others. This can be used to selectively override functions in other shared libraries. __LD_NOWARN__ Suppress warnings about a.out libraries with incompatible minor version numbers. __LD_KEEPDIR__ Don't ignore the directory in the names of a.out libraries to be loaded. Use of this option is strongly discouraged. !!FILES __/lib/ld.so__ a.out dynamic linker/loader __/lib/ld-linux.so.*__ ELF dynamic linker/loader __/etc/ld.so.cache__ File containing a compiled list of directories in which to search for libraries and an ordered list of candidate libraries. __/etc/ld.so.preload__ File containing a whitespace separated list of ELF shared libraries to be loaded before the program. libraries and an ordered list of candidate libraries. __lib*.so*__ shared libraries !!SEE ALSO ldd(1), ldconfig(8). !!BUGS Currently __ld.so__ has no means of unloading and searching for compatible or newer version of libraries. __ld.so__ functionality is only available for executables compiled using libc version 4.4.3 or greater. !!AUTHORS David Engel, Eric Youngdale, Peter !MacDonald, Hongjiu Lu, Linus Torvalds, Lars Wirzenius and Mitch D'Souza (not necessarily in that order). ----
12 pages link to
ld.so(8)
:
uselib(2)
ldconfig(8)
ldd(1)
Man8l
execve(2)
dlclose(3)
dlerror(3)
dlopen(3)
EnvironmentVariable
CompilingHowto
dlsym(3)
LD_DEBUG
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.