Re: [patch] elf.5 and ld.so.8: undeprecate DT_RPATH; explain DT_RPATH vs DT_RUNPATH

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx>

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: signature.asc
Description: PGP signature


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux