Repro:
1. build with gcc
2. build with clang
3. run "supersize archive" on them both, and then "supersize diff"
This shows:
Section Sizes (Total=-280kb (-287355 bytes)):
.bss: 10.2kb (10496 bytes) (not included in totals)
.data: -52.6kb (-53912 bytes) (18.8%)
.data.rel.ro: 816kb (835584 bytes) (-290.8%)
.data.rel.ro.local: -806kb (-825344 bytes) (287.2%)
.rel.dyn: 14.6kb (14944 bytes) (-5.2%)
.rodata: -53.6kb (-54856 bytes) (19.1%)
.text: -205kb (-210236 bytes) (73.2%)
Showing 409,640 symbols (323,590 unique) with total pss: -1229674 bytes
.text=-1.08mb .rodata=-53.0kb .data*=-42.5kb .bss=10.7kb total=-1.17mb
Number of unique paths: 14920
Clearly, .text=-1.08mb is wrong.
Comment 1 by bugdroid1@chromium.org
, Jun 15 2017