<div dir="ltr">Nice<br><br>FWIW I've a somewhat convoluted spreadsheet I used for analyzing debug info size differences between Clang and GCC which could be expanded/modified for this sort of thing. For example, recently looking into a difference between GCC and Clang: <a href="https://docs.google.com/spreadsheets/d/1z_45QMoWn336poNxujZ4Leq0XfQSF7UG57mW7nak1RQ/edit?usp=sharing">https://docs.google.com/spreadsheets/d/1z_45QMoWn336poNxujZ4Leq0XfQSF7UG57mW7nak1RQ/edit?usp=sharing</a><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 20, 2015 at 1:05 PM, Rafael Espíndola <span dir="ltr"><<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@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">This a small script I wrote for comparing the size of two ELF binaries.<br>
<br>
For example, this is what it prints when comparing a gold and a lld<br>
linked clang:<br>
<br>
.rodata 13979004 24179137<br>
.eh_frame 1967596 2475516<br>
.comment 100 83161<br>
.rela.dyn 480 20400<br>
.data 3728960 3729104<br>
.bss 144124 144152<br>
.hash 2184 2192<br>
.interp 28 28<br>
.init 26 26<br>
.got 18864 18864<br>
.tm_clone_table 0 0<br>
.note.ABI-tag 32 32<br>
.fini 9 9<br>
.note.GNU-stack 0 0<br>
.fini_array 8 8<br>
.init_array 1880 1880<br>
.jcr 8 8<br>
.note.gnu.gold-version 28 0<br>
.got.plt 2048 2016<br>
.plt 4064 4000<br>
.shstrtab 298 231<br>
.symtab 5667000 5666928<br>
.rela.plt 6072 5976<br>
.dynamic 592 448<br>
.dynsym 6744 6552<br>
.gnu.version_r 336 0<br>
.dynstr 5315 4962<br>
.gnu.version 562 0<br>
.text 41531081 41527673<br>
.strtab 7841007 6802265<br>
<br>
So yes, SHF_STRING handling is next for me :-)<br>
<br>
Cheers,<br>
Rafael<br>
<br>_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
<br></blockquote></div><br></div>