[LLD] Cyclic dependency between ReaderWriter and YAML backend

Chandler Carruth chandlerc at google.com
Mon Sep 2 21:09:49 PDT 2013


On Mon, Sep 2, 2013 at 8:34 PM, Shankar Easwaran <shankare at codeaurora.org>wrote:

> Hi Chandler,
>
> Thanks for the inputs, Chandler.
>
> This is more or less to be designed for lld to make lld a shared library,
>
> For example, the current linker-script-test(which triggers the build
> failure using shared libraries) doesnot use liblldELF or liblldPECOFF etc.
> The test will still fail with this change, if linker-script-test happens to
> use ELF functionality.
>
> For the broader picture of using lld as a shared library, I think
> llvm-config should provide the explicit set of libraries to link with.
>

I really don't follow what you're saying.

Not all linkers are capable of resolving cyclic references using
start-group/end-group even for static links. Thus, I'm suggesting we
shouldn't include such patterns in any art of our design.

I don't know if it does today or not, I'm merely responding to your comment
that cyclic dependencies could be handled with start-group/end-group to
clarify that this isn't a viable solution on all platforms where LLVM
projects are being built.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130902/397fa31d/attachment.html>


More information about the llvm-commits mailing list