<div dir="ltr">I ported LLD to Windows. I added a new file format, new driver, new relocation types, new linking semantics and those kind of stuffs. I remember that it took me a month or two to link a small executable, starting from having no knowledge on Windows linker, and after about six months I succeeded to self-link it. After one year it's now able to link real large programs such as Chromium. I wanted to make it work as a drop in replacement of link.exe, so I had to work on the driver -- if I only focused on the core linking it would have been shorter.<div>
<div><div><div><br></div><div>From that experience I would say that you'd probably be able to get a preliminary support of what you want in a few weeks to a few months. Of course that depends on your knowledge of the target platform, availability of the documents, etc. It shouldn't at least take years.</div>
</div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 21, 2014 at 4:43 PM, Daniel Dilts <span dir="ltr"><<a href="mailto:diltsman@gmail.com" target="_blank">diltsman@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Right now I am working a proof of concept at work that I can use Clang and associated tools to compile for a bare metal ARM processor (Beaglebone Black). The biggest issue seems to be that we develop on Windows and most cross linkers (ld, gold) seem to only want to work on POSIX, which is not Windows. So far I have spent a day fighting binutils to get ld to compile on Windows to target ARM.</div>
<div><br></div><div>For a complete novice, what would be the expected amount of effort (days, weeks, months, years) to add support for a new target?</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra">
<br><br><div class="gmail_quote">On Thu, Aug 21, 2014 at 1:31 PM, Renato Golin <span dir="ltr"><<a href="mailto:renato.golin@linaro.org" target="_blank">renato.golin@linaro.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On 21 August 2014 17:20, Daniel Dilts <<a href="mailto:diltsman@gmail.com" target="_blank">diltsman@gmail.com</a>> wrote:<br>
> I'm seeing that LLD has the initial framework for linking AArch64 (ARM<br>
> 64-bit, right?). Is there a plan or timeframe to support 32-bit ARM?<br>
<br>
</div>Hi Daniel,<br>
<br>
The quick answer is "sort of".<br>
<br>
There is interest in having lld working well on both ARM Linux and<br>
Darwin and some people are already gathering forces to do this, but<br>
the interest is still not *that* great to make people jump on it right<br>
now. Are you volunteering or needing this for any project? We could<br>
certainly do with the help, or at least understand what are your<br>
plans, so that we can align with them.<br>
<br>
cheers,<br>
--renato<br>
</blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div>