[lld] r247475 - Implement -rpath.
Joerg Sonnenberger via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 12 08:33:22 PDT 2015
On Fri, Sep 11, 2015 at 04:00:51PM -0700, Davide Italiano wrote:
> On Fri, Sep 11, 2015 at 3:26 PM, Joerg Sonnenberger via llvm-commits
> <llvm-commits at lists.llvm.org> wrote:
> > On Fri, Sep 11, 2015 at 09:18:57PM -0000, Rafael Espindola via llvm-commits wrote:
> >> URL: http://llvm.org/viewvc/llvm-project?rev=247475&view=rev
> >> Log:
> >> Implement -rpath.
> > Should we really unconditionally generate RUNPATH? IMO that's a bug
> > created by GNU for the semi-broken behavior of glibc's dynamic linker.
> > This is certainly going to create problems at least for NetBSD.
> It's been already discussed that this DT_RPATH behaviour is as
> specified in http://www.sco.com/developers/devspecs/gabi41.pdf when I
> implemented this feature for the old lld. I don't have problems
> changing it if there's a reason for.
Yes, but that's not the behavior sane system implemented. Sane systems
used DT_RPATH exactly like DT_RUNPATH is now used. As such, NetBSD never
bothered to support the latter. It's also pretty new in FreeBSD, BTW.
More information about the llvm-commits