Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Jul 2012 17:22:58 +0800
From:      Luba Tang <lubatang@gmail.com>
To:        freebsd-toolchain@freebsd.org
Subject:   MCLinker and llvm-config
Message-ID:  <CAMW0cx=hw=OaJVOHWQKkbgzJq1XNbMn5KjDYKEVkp-tffFqNFw@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
> On 24 Jul 2012, at 10:39, Erik Cederstrand wrote:

>> Btw, do you guys have any plans for a GNU ld replacement? Progress on
the more "official" lld (http://lld.llvm.org/) seems slow, and MCLinker
more promising. Hence my feeble attempts :-)

> Most of the progress in lld is not in lld itself, but in the underlying
frameworks.  The tool is expected to be a fairly thin wrapper.  The Object
code in the main llvm repository is where the real work happens.
>
> MCLinker is likely a dead end.  It was intended as a quick-and-dirty hack
to get a working linker for a small subset of the problem, with no thought
as to how to solve the general case.
>
> David
Dears,

Let me explain the status of MCLinker.
MCLinker now is one of the standard system linkers in Android system.
https://android.googlesource.com/platform/frameworks/compile/mclinker

Since there are many practical issues in ELF system (some of them are
undocumented :'( ), I think MCLinker could be said as a linker who is
robust enough to handle with wrapped symbols, segments, .group section,
exception, DWRAF, and many many ELF unique features. :)

In our plan, we will get rid of LLVM in this September. At that time,
MCLinker wil be able to handle archives, and has some basic support for
link script.
We have promised BSD systems have higher priority than Linux systems, and
we will keep our promise.

BTW, I think llvm-config is necessary for every LLVM-based project. If it
will not be in BSD system, I think we can negotiate an approach to get rid
of it.
Just like what Android did.

Best regards,
Luba



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMW0cx=hw=OaJVOHWQKkbgzJq1XNbMn5KjDYKEVkp-tffFqNFw>