[PATCH] RFC: garbage collect unused code/data?

Bernhard Fischer rep.nop at aon.at
Wed Apr 5 09:15:40 UTC 2006


On Wed, Apr 05, 2006 at 11:19:33AM +0300, Denis Vlasenko wrote:
>On Wednesday 05 April 2006 10:32, Bernhard Fischer wrote:
>> 2) I think that we would be better off to just delete the unused
>> functions instead of relying on the toolchain to catch them all.
>> As already stated here, it really looks like networking/* could need
>> some love..
>
>gc-sections deals with functions which are unused _with particular .config_,
>not just stray dead code.

Right.
>
>Without gc-sections, we need to split source into gazillion tiny .c files
>to achieve the same result.

.. or sprinkle a bunch of if ENABLE_ all over the sources so they don't
get built.

I like your proposal, fwiw.



More information about the busybox mailing list