lkml.org 
[lkml]   [2010]   [Jan]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Allow linker to eliminate unused functions in lib/*
On Sat, Jan 09, 2010 at 05:51:56PM +0100, Andi Kleen wrote:
> > Sneaky.
> >
> > It's a bit sad to reduce the code cleanliness and maintainability in
> > this way, but 1k is 1k.
>
> Yes. I had actually hoped for more too. I think it might bring
> more with -ffunction-sections/--gc-sections, but I haven't tried that.
>
> An alternative might be also to give some more of those explicit Kconfig
> symbols -- then kernels with module loading enabled would benefit more
> too -- but I haven't investigated how many changes that would need.
>
> But even with that it's a reasonable improvement and putting the exports
> separately is not too bad.
>
> > The patch assumes a pre-existing lib-syms.c. Confused.
>
> Sorry, some day I'll learn how to operate quilt properly.
>
> Updated patch with all files included appended.

Andi, how do you want to handle the overlap between this and the
list_sort() patch I sent? I'm going to need a list_sort() available
in the XFS tree well before the 2.6.34 merge window....
Cheers,

Dave.
--
Dave Chinner
david@fromorbit.com


\
 
 \ /
  Last update: 2010-01-11 00:19    [from the cache]
©2003-2011 Jasper Spaans