* [patch] ld.so.8: Expand DT_RUNPATH details.
@ 2017-06-29 16:21 Carlos O'Donell
[not found] ` <b61939ec-ab27-59d0-bd6c-570b4055aea3-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Carlos O'Donell @ 2017-06-29 16:21 UTC (permalink / raw)
To: Michael Kerrisk, linux-man-u79uwXL29TY76Z2rM5mHXA
ld.so.8: Expand DT_RUNPATH details.
Every 3 years we get asked why DT_RUNPATH doesn't work like DT_RPATH.
The most recent question was here:
https://www.sourceware.org/ml/libc-help/2017-06/msg00013.html
We need to expand the description of DT_RUNPATH to cover this situation
and explain that the DT_RUNPATH entries apply only to the immediate
DT_NEEDED, not that of another, say dlopen'd child object.
Applies to master.
Signed-off-by: Carlos O'Donell <carlos-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
---
diff --git a/man8/ld.so.8 b/man8/ld.so.8
index 89965a1..e9e320d 100644
--- a/man8/ld.so.8
+++ b/man8/ld.so.8
@@ -68,7 +68,11 @@ in which case it is ignored.
.IP o
Using the directories specified in the
DT_RUNPATH dynamic section attribute
-of the binary if present.
+of the binary if present. Such directories are only searched to
+find those objects required by DT_NEEDED (direct dependencies) entries
+and do not apply to those object's children who must themselves have
+their own DT_RUNPATH entries. This is unlike DT_RPATH which is applied
+to searches for all children in the dependency tree.
.IP o
From the cache file
.IR /etc/ld.so.cache ,
--
Cheers,
Carlos.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [patch] ld.so.8: Expand DT_RUNPATH details.
[not found] ` <b61939ec-ab27-59d0-bd6c-570b4055aea3-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2017-07-05 8:36 ` Michael Kerrisk (man-pages)
0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2017-07-05 8:36 UTC (permalink / raw)
To: Carlos O'Donell, linux-man-u79uwXL29TY76Z2rM5mHXA
Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w
On 06/29/2017 06:21 PM, Carlos O'Donell wrote:
> ld.so.8: Expand DT_RUNPATH details.
>
> Every 3 years we get asked why DT_RUNPATH doesn't work like DT_RPATH.
> The most recent question was here:
> https://www.sourceware.org/ml/libc-help/2017-06/msg00013.html
>
> We need to expand the description of DT_RUNPATH to cover this situation
> and explain that the DT_RUNPATH entries apply only to the immediate
> DT_NEEDED, not that of another, say dlopen'd child object.
>
> Applies to master.
Thanks, Carlos. Applied.
Cheers,
Michael
> Signed-off-by: Carlos O'Donell <carlos-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> ---
> diff --git a/man8/ld.so.8 b/man8/ld.so.8
> index 89965a1..e9e320d 100644
> --- a/man8/ld.so.8
> +++ b/man8/ld.so.8
> @@ -68,7 +68,11 @@ in which case it is ignored.
> .IP o
> Using the directories specified in the
> DT_RUNPATH dynamic section attribute
> -of the binary if present.
> +of the binary if present. Such directories are only searched to
> +find those objects required by DT_NEEDED (direct dependencies) entries
> +and do not apply to those object's children who must themselves have
> +their own DT_RUNPATH entries. This is unlike DT_RPATH which is applied
> +to searches for all children in the dependency tree.
> .IP o
> From the cache file
> .IR /etc/ld.so.cache ,
>
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-07-05 8:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-29 16:21 [patch] ld.so.8: Expand DT_RUNPATH details Carlos O'Donell
[not found] ` <b61939ec-ab27-59d0-bd6c-570b4055aea3-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2017-07-05 8:36 ` Michael Kerrisk (man-pages)
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.