bug-binutils
[Top][All Lists]
Advanced

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

Re: elf(5) and ld.so(8): DT_RPATH deprecated - really?


From: Joseph Myers
Subject: Re: elf(5) and ld.so(8): DT_RPATH deprecated - really?
Date: Mon, 22 Apr 2024 16:22:13 +0000 (UTC)

On Mon, 22 Apr 2024, Alejandro Colomar wrote:

> Nobody said it would be removed soon.  But it seems people want to
> remove it "eventually", with that eventually possibly being in a couple
> of centuries, if computers still exist.
> 
> But if you have the intention of using it in new software, or keeping it
> in existing software, maybe you could give your reasons to those who
> deprecated it, so that either you convince them of its usefulness, or
> they convince you of not using it.

DT_RPATH is just as useful as it always was for testing purposes, when 
you're building binaries against a sysroot and use -rpath and 
-dynamic-linker pointing to that sysroot, and you really do want the RPATH 
used at runtime to find both direct and indirect dependencies and 
DT_RUNPATH would *not* serve the same purpose (because the sysroot is 
intended to have exactly the same binaries that would eventually be used 
in the root filesystem of the target in production, it would not be 
appropriate to set DT_RUNPATH in any of those binaries).

-- 
Joseph S. Myers
josmyers@redhat.com




reply via email to

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