On Wed, 2007-05-16 at 21:10 +0200, Sam Ravnborg wrote: > On Thu, May 17, 2007 at 12:34:33AM +0800, David Woodhouse wrote: > > A while ago, I played with using '-fwhole-program --combine' for > > building kernel objects -- http://lwn.net/Articles/197097/ > > To save binary size the approach used by Marcelo Tosatti > should be considered. > See http://lkml.org/lkml/2006/6/4/169
Yeah, I know about that -- I was the one who pointed him at it :) > But that also rely on newer toolchain and I do not > know if this has been added since then. Does it? I've been doing --gc-sections in the kernel for years. I thought the only thing we wanted a toolchain patch for was to _print_ the symbols which got discarded. Just throwing them away is something we've been able to do for ever. --gc-sections doesn't achieve as much as --combine does -- it can only throw away functions which are _entirely_ unused; it can't do any cross-unit optimising and inlining. -- dwmw2 - To unsubscribe from this list: send the line "unsubscribe linux-arch" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
