[lld] r262910 - ELF: Add /lib and /usr/lib as default search paths.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 9 22:00:42 PST 2016


On Tue, Mar 8, 2016 at 10:33 PM, Joerg Sonnenberger via llvm-commits <
llvm-commits at lists.llvm.org> wrote:

> On Tue, Mar 08, 2016 at 01:10:50PM -0800, Rui Ueyama via llvm-commits
> wrote:
> > It is probably the same situation as --dynamic-linker? We expect that the
> > compiler always passes the correct dynamic linker path through the option
> > or we do not create .interp section.
>
> I disagree. The compiler doing it is with --dynamic-linker kind of cargo
> cult,
> because at some point linkers didn't have the correct choice, so they
> started doing it and never really stopped. Given that packagers have
> been training FOSS developers to not call the linker directly, it just
> isn't that visible in general.
>

LLD doesn't make any guess on --dynamic-linker value. If it is not present,
we don't add an .interp section at all, and that's it. We are not aiming
precise 100% compatibility with the exiting linkers -- if there is
something that can be simplified, we'd at least try. Compiler driver
already passes bunch of -L options to the linker, so requesting the
compiler driver to pass all of them does not sounds like an unreasonable
request to me.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160309/7a43bb26/attachment.html>


More information about the llvm-commits mailing list