bug-binutils
[Top][All Lists]
Advanced

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

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


From: Joachim Wuttke
Subject: [patch] elf.5 and ld.so.8: undeprecate DT_RPATH; explain DT_RPATH vs DT_RUNPATH
Date: Tue, 23 Apr 2024 09:53:03 +0200
User-agent: Mozilla Thunderbird

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

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]