[LLD] Cyclic dependency between ReaderWriter and YAML backend
Shankar Easwaran
shankare at codeaurora.org
Mon Sep 2 20:34:27 PDT 2013
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.
Thanks
Shankar Easwaran
On 9/2/2013 10:14 PM, Chandler Carruth wrote:
> On Mon, Sep 2, 2013 at 8:02 PM, Shankar Easwaran <shankare at codeaurora.org>wrote:
>
>> PS : If there is any sort of cyclic dependency, that should just be
>> enclosed within --start-group/--end-group to avoid the dependency.
>
> I strongly disagree. LLVM (and all of its accompanying tools) need to build
> in environments which do not support resolving cyclic depndencies at link
> times. It is really important to structure and layer the libraries to avoid
> cycles. This may mean fewer and more coarse grained libraries, but it's
> important to take that approach rather than assume the availability of
> facilities like --start-group/--end-group.
>
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by the Linux Foundation
More information about the llvm-commits
mailing list