From 8a7f3759b37785fa72113e7f3849133ace32778d Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Mon, 27 Oct 2008 20:02:28 -0500 Subject: [PATCH] ld.so.8: Fix description of LD_PROFILE and LD_PROFILE_OUTPUT Clarify that LD_PROFILE is pathname or a soname, and identify name of profiling output file. Fix description of LD_PROFILE_OUTPUT, which wasn't even close to the truth. (But why did it remain unfixed for so many years?) Signed-off-by: Michael Kerrisk --- man8/ld.so.8 | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/man8/ld.so.8 b/man8/ld.so.8 index 5a0226ddf..ce63c4c46 100644 --- a/man8/ld.so.8 +++ b/man8/ld.so.8 @@ -240,15 +240,23 @@ is ignored for set-user-ID/set-group-ID binaries. .TP .B LD_PROFILE (glibc since 2.1) -Shared object to be profiled. +Shared object to be profiled, +specified either as a pathname or a soname. +Profiling output is written to the file whose name is: +"\fI$LD_PROFILE_OUTPUT\fP/\fI$LD_PROFILE\fP.profile". .TP .B LD_PROFILE_OUTPUT (glibc since 2.1) -File where +Directory where .B LD_PROFILE -output should be written; default is standard output. +output should be written. +If this variable is not defined, or is defined as an empty string, +then the default is +.IR /var/tmp . .B LD_PROFILE_OUTPUT -is ignored for set-user-ID/set-group-ID binaries. +is ignored for set-user-ID and set-group-ID programs, +which always use +.IR /var/profile . .TP .B LD_SHOW_AUXV (glibc since 2.1)