[OLPC-devel] Re: linker garbage collection

Marcelo Tosatti mtosatti at redhat.com
Tue Aug 29 22:54:42 EDT 2006


On Tue, Aug 29, 2006 at 06:19:59PM -0700, Daniel Walker wrote:
> Hi,
> 
> I was wondering what happened to this patch? Have you created a better
> version, or was the response to soft that you aren't working on it?

Hi Daniel,

I will certainly continue to enhance the patch. Although I'm pretty busy
this week (help on the TODO items is welcome!)

What been done since the last submission to lkml:

* The --print-gc-sections patch has been merged to binutils CVS.
* end_rodata issue has been fixed and merged to mainline.

However, latest patch is still http://lkml.org/lkml/2006/6/4/169

Current TODO:

* Condition CONFIG_GC_SECTIONS on presence of a recent binutils 
* Extra config option to allow for non used exported symbols to be swept (must be 
non default behaviour) 
* Recursive make invocation from Makefile is sort of ugly, Makefile changes
can beautified.
* Do the same as done for ksymtab* to kcrctab* (CONFIG_MODVERSIONS)
* Cover other architectures with KEEP() directives

After fixing those trivial items garbage collection should be ready for
mainline merge.




More information about the Devel mailing list