<div dir="ltr"><div>As far as I know, no one has ever tried to add the -r option to the lld COFF linker. It shouldn't be super hard to add it to the COFF linker, but from our experience of implementing it to lld ELF linker, I can say that it was tricky and somewhat fragile. We had to add a number of small pieces of code here and there.<br></div><div><br></div><div>We wanted to support it in the ELF linker because that's an existing feature and people are actually using it. Otherwise, we wouldn't have added it. So, what is the motivation of adding the feature to the COFF linker? I don't think MSVC linker supports it.</div><div><br></div><div><div>(For those who are not familiar with -r, the option is to make the linker emit a .o file instead of an executable or a shared library. With the option, you can combine multiple object files into one object file.)</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 9, 2017 at 8:02 AM, kyra via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
How far are we from having '-r' in the LLD COFF linker?<br>
I'd try to implement this if not too much effort is required.<br>
Any suggestions and/or pointers?<br>
<br>
Cheers,<br>
Kyra<br>
<br>
<br>
______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
</blockquote></div><br></div></div>