<div dir="auto"><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Jan 19, 2017 2:48 AM, "Ed Maste" <<a href="mailto:emaste@freebsd.org">emaste@freebsd.org</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 4 January 2017 at 13:34, Peter Smith via llvm-dev<br>
<div class="quoted-text"><<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br>
> I'm about to start working on range extension thunks in lld. This is<br>
> an attempt to summarize the approach I'd like to take and what the<br>
> impact will be on lld outside of thunks.<br>
<br>
</div>Now that LLD works well for FreeBSD/amd64 (and arm64 is very close)<br>
I'm looking at other architectures, starting with mips64. The<br>
statically-linked toolchain components currently fail to link with an<br>
out of range jump, so I'm very interested in seeing this work<br>
progress. Are you looking at only arm and AArch64? Once the<br>
infrastructure is in I'll try to take a look at mips if nobody else<br>
does first.<br>
</blockquote></div><br></div></div><div class="gmail_extra" dir="auto">I'm waiting for this changes too. Now mips thunks places at the end of the corresponding section. Not sure about FreeBSD but on Linux that leads to incorrect code in case of static linking -- a thunk goes between crt*.o files which needs to be "joined" together. Gnu linker puts thunks to the separate section. We need to do the same thing.</div></div>