The string table is very small. The symbols and sections all have the same name. It's also highly compressible which means I can upload it via svn and then use the same binary in multiple tests without incurring the cost of regenerating the same sort of large binary for every test. On my system the generation of the binary using assembly macros takes 3 seconds. Over 7-8 tests that adds up. It would increase overall test running times by a few percent at least (probably more like 8% for most people). LLD only has one test of this sort so it isn't a big deal.<br><br><div class="gmail_quote"><div dir="ltr">On Thu, Feb 22, 2018, 12:21 PM Rafael Avila de Espindola <<a href="mailto:rafael.espindola@gmail.com">rafael.espindola@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Jake Ehrlich via Phabricator via llvm-commits<br>
<<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a>> writes:<br>
<br>
> jakehehrlich added a comment.<br>
><br>
> In <a href="https://reviews.llvm.org/D42516#1015427" rel="noreferrer" target="_blank">https://reviews.llvm.org/D42516#1015427</a>, @emaste wrote:<br>
><br>
>> In <a href="https://reviews.llvm.org/D42516#1015414" rel="noreferrer" target="_blank">https://reviews.llvm.org/D42516#1015414</a>, @jakehehrlich wrote:<br>
>><br>
>> > You can download the zip file that I'm using here: <a href="https://drive.google.com/file/d/1u6W1mUHkFBPsLzEV4u50M_BeiPKMyipM/view?usp=sharing" rel="noreferrer" target="_blank">https://drive.google.com/file/d/1u6W1mUHkFBPsLzEV4u50M_BeiPKMyipM/view?usp=sharing</a><br>
>><br>
>><br>
>> Thanks for this. It demonstrates some particularly poor behaviour in ELF Tool Chain's elfcopy (so, if anyone's comparing objcopy versions, there's not much value in including ELF Tool Chain right now).<br>
><br>
><br>
> I had to commit many atrocities to make that file. I actually have a desire for a yaml2obj like tool that would let me construct ELFs more succinctly. That binary was produced by getting as close as I could with a generated .s and then using many different tools to tweak the results. It wasn't pretty.<br>
<br>
Out of curiosity, what properties does it have in addition to what lld's<br>
many-sections.s provide?<br>
<br>
Cheers,<br>
Rafael<br>
</blockquote></div>