]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
dlopen.3: Clarify DT_RUNPATH/DT_RPATH details
authorMichael Kerrisk <mtk.manpages@gmail.com>
Thu, 10 Sep 2020 09:46:21 +0000 (11:46 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Thu, 10 Sep 2020 09:48:08 +0000 (11:48 +0200)
It is the DT_RUNPATH/DT_RPATH of the calling object (not the
executable) that is relevant for the library search. Verified
by experiment.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man3/dlopen.3

index 8e18f70c077dfb2360d1742a23f88e7d76af897a..ec8df1b585ef991b7250f08c26b373f5fc587580 100644 (file)
@@ -85,7 +85,10 @@ Otherwise, the dynamic linker searches for the object as follows
 .BR ld.so (8)
 for further details):
 .IP o 4
-(ELF only) If the executable file for the calling program
+(ELF only) If the calling object
+(i.e., the shared library or executable from which
+.BR dlopen ()
+is called)
 contains a DT_RPATH tag, and does not contain a DT_RUNPATH tag,
 then the directories listed in the DT_RPATH tag are searched.
 .IP o
@@ -96,7 +99,7 @@ then these are searched.
 (As a security measure, this variable is ignored for set-user-ID and
 set-group-ID programs.)
 .IP o
-(ELF only) If the executable file for the calling program
+(ELF only) If the calling object
 contains a DT_RUNPATH tag, then the directories listed in that tag
 are searched.
 .IP o