From 95b6bd72bde279187187e14b30757a2dafbd4bc0 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Wed, 3 May 2017 07:09:56 +0200 Subject: [PATCH] ld.so.8: Expand description of /etc/ld.so.preload Signed-off-by: Michael Kerrisk --- man8/ld.so.8 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/man8/ld.so.8 b/man8/ld.so.8 index bb65b4baa..60581b507 100644 --- a/man8/ld.so.8 +++ b/man8/ld.so.8 @@ -589,6 +589,23 @@ shared objects and an ordered list of candidate shared objects. .I /etc/ld.so.preload File containing a whitespace-separated list of ELF shared objects to be loaded before the program. +See the discussion of +.BR LD_PRELOAD +above. +If both +.BR LD_PRELOAD +and +.I /etc/ld.so.preload +are employed, the libraries specified by +.BR LD_PRELOAD +are preloaded first. +.I /etc/ld.so.preload +has a system-wide effect, +causing the specified libraries to be preloaded for +all programs that are executed on the system. +(This is usually undesirable, +and is typically employed only as an emergency remedy, for example, +as a temporary workaround to a library misconfiguration issue.) .TP .B lib*.so* shared objects