<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Feb 23, 2016 at 12:19 AM, Ed Schouten <span dir="ltr"><<a href="mailto:ed@nuxi.nl" target="_blank">ed@nuxi.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">ed added a comment.<br>
<span class=""><br>
In <a href="http://reviews.llvm.org/D17502#359151" rel="noreferrer" target="_blank">http://reviews.llvm.org/D17502#359151</a>, @ruiu wrote:<br>
<br>
> Although I understand the point of this patch, is this significant? Do you need this to link some specific program?<br>
<br>
<br>
</span>Yes. The unit testing binary for CloudABI's C library: <a href="https://github.com/NuxiNL/cloudlibc" rel="noreferrer" target="_blank">https://github.com/NuxiNL/cloudlibc</a>.<br>
<br>
Each of the individual unit tests place a structure in a separate section, so they are registered automatically. The unit testing binary's entry point then iterates over all of the structures placed in this section and invokes the callbacks. Relevant sources:<br>
<br>
<a href="https://github.com/NuxiNL/cloudlibc/blob/master/src/include/testing.h#L74-L101" rel="noreferrer" target="_blank">https://github.com/NuxiNL/cloudlibc/blob/master/src/include/testing.h#L74-L101</a><br>
<a href="https://github.com/NuxiNL/cloudlibc/blob/master/src/libc/testing/testing_execute.c#L28-L30" rel="noreferrer" target="_blank">https://github.com/NuxiNL/cloudlibc/blob/master/src/libc/testing/testing_execute.c#L28-L30</a><br>
<br>
CloudABI recently switched over to LLD on x86-64. The only regression we run in to compared to GNU ld is this specific issue.<br></blockquote><div><br></div><div>This is the first user report for me that they switched over to LLD. Thank you for using our linker!</div></div></div></div>