All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alejandro Colomar <alx@kernel.org>
To: Joachim Wuttke <j.wuttke@fz-juelich.de>
Cc: bug-binutils@gnu.org, linux-man@vger.kernel.org,
	Mike Frysinger <vapier@gentoo.org>,
	Joseph Myers <josmyers@redhat.com>
Subject: Re: [patch] elf.5 and ld.so.8: undeprecate DT_RPATH; explain DT_RPATH vs DT_RUNPATH
Date: Tue, 7 May 2024 15:12:11 +0200	[thread overview]
Message-ID: <Zjooq_8IKPdvfuk1@debian> (raw)
In-Reply-To: <9674d2f0-6455-4233-8da6-4181d8e57781@fz-juelich.de>

[-- Attachment #1: Type: text/plain, Size: 2162 bytes --]

Hi Joachim,

On Tue, Apr 23, 2024 at 09:53:03AM +0200, Joachim Wuttke wrote:
> In elf.5 and ld.so.8, remove deprecation of DT_RPATH
> In elf.5, amend the description of DT_RUNPATH and DT_RPATH.
> 
> Rationale:
> There is no credible path towards removal of DT_RPATH.
> Lots of software depend on DT_RPATH as is.
> It is used e.g. for testing and in binary installers.
> 
> Signed-off-by: Joachim Wuttke <j.wuttke@fz-juelich.de>

Patch applied.  Thanks!
<https://www.alejandro-colomar.es/src/alx/linux/man-pages/man-pages.git/commit/?h=contrib&id=5fe3738ffceec44fac809fd1acfd65e74b84ff93>

Have a lovely day!
Alex

> ---
>  man5/elf.5   | 4 ++--
>  man8/ld.so.8 | 1 -
>  2 files changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/man5/elf.5 b/man5/elf.5
> index 9aff88afb..57136159c 100644
> --- a/man5/elf.5
> +++ b/man5/elf.5
> @@ -1787,7 +1787,7 @@ Address of the termination function
>  String table offset to name of shared object
>  .TP
>  .B DT_RPATH
> -String table offset to library search path (deprecated)
> +String table offset to search path for direct and indirect library dependencies
>  .TP
>  .B DT_SYMBOLIC
>  Alert linker to search this shared object before the executable for symbols
> @@ -1819,7 +1819,7 @@ Instruct dynamic linker to process all relocations before
>  transferring control to the executable
>  .TP
>  .B DT_RUNPATH
> -String table offset to library search path
> +String table offset to search path for direct library dependencies
>  .TP
>  .B DT_LOPROC
>  .TQ
> diff --git a/man8/ld.so.8 b/man8/ld.so.8
> index fa75b7820..23cddb9df 100644
> --- a/man8/ld.so.8
> +++ b/man8/ld.so.8
> @@ -61,7 +61,6 @@ then it is searched for in the following order:
>  Using the directories specified in the
>  DT_RPATH dynamic section attribute
>  of the binary if present and DT_RUNPATH attribute does not exist.
> -Use of DT_RPATH is deprecated.
>  .IP (2)
>  Using the environment variable
>  .BR LD_LIBRARY_PATH ,
> -- 
> 2.43.0
> 

-- 
<https://www.alejandro-colomar.es/>
A client is hiring kernel driver, mm, and/or crypto developers;
contact me if interested.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

      reply	other threads:[~2024-05-07 13:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-19  6:43 elf(5) and ld.so(8): DT_RPATH deprecated - really? Joachim Wuttke
2024-04-22  4:35 ` Alejandro Colomar
2024-04-22 16:22   ` Joseph Myers
2024-04-22 17:58     ` Alejandro Colomar
2024-04-22 21:08       ` Joachim Wuttke
2024-04-23  7:53       ` [patch] elf.5 and ld.so.8: undeprecate DT_RPATH; explain DT_RPATH vs DT_RUNPATH Joachim Wuttke
2024-05-07 13:12         ` Alejandro Colomar [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Zjooq_8IKPdvfuk1@debian \
    --to=alx@kernel.org \
    --cc=bug-binutils@gnu.org \
    --cc=j.wuttke@fz-juelich.de \
    --cc=josmyers@redhat.com \
    --cc=linux-man@vger.kernel.org \
    --cc=vapier@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.