[PATCH] D13950: ELF2: Implement --gc-sections.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 21 12:25:17 PDT 2015


On Wed, Oct 21, 2015 at 11:14 AM, Davide Italiano <davide at freebsd.org>
wrote:

> On Wed, Oct 21, 2015 at 10:36 AM, Rui Ueyama via llvm-commits
> <llvm-commits at lists.llvm.org> wrote:
> > ruiu updated this revision to Diff 38029.
> > ruiu added a comment.
> >
> > Remove debug code.
> >
>
> Cool feature. Do you happen to have data about the gap in size between
> this and gold after this?


Here are sizes of Clang linked with ld, gold and LLD with or without
--gc-sections.

ld
56321983
56253215

gold
57765632
57696264

LLD
57765712
55296872

LLD produces the smallest executable as you can see, but that's so good
that that is odd. I don't have a good theory at this moment to describe the
difference.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151021/fd3f26c7/attachment.html>


More information about the llvm-commits mailing list