[PATCH] use per function sections + --gc-sections: saves ~5k

Rob Landley rob at landley.net
Fri Mar 3 17:47:05 UTC 2006


On Friday 03 March 2006 1:24 am, Denis Vlasenko wrote:
> Hi,
>
> This patch passes -ffunction-sections -fdata-sections to gcc
> and --gc-sections to ld. Result:
>
> # size busybox.org.tst/busybox busybox.sections.tst/busybox
>    text    data     bss     dec     hex filename
>  920143   12268 1047076 1979487  1e345f busybox.org.tst/busybox
>  915759   10616 1045572 1971947  1e16eb busybox.sections.tst/busybox

That's highly cool.  What exactly does this do?  (If somebody who understands 
what this does wants to apply it, I have no objections...)

Rob
-- 
Never bet against the cheap plastic solution.



More information about the busybox mailing list