Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753969AbZDXAUF (ORCPT ); Thu, 23 Apr 2009 20:20:05 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751536AbZDXATx (ORCPT ); Thu, 23 Apr 2009 20:19:53 -0400 Received: from 124x34x33x190.ap124.ftth.ucom.ne.jp ([124.34.33.190]:53344 "EHLO master.linux-sh.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750859AbZDXATv (ORCPT ); Thu, 23 Apr 2009 20:19:51 -0400 Date: Fri, 24 Apr 2009 09:14:40 +0900 From: Paul Mundt To: Tim Abbott Cc: Linus Torvalds , Linux kernel mailing list , Anders Kaseorg , Waseem Daher , Denys Vlasenko , Rusty Russell , Andi Kleen , "H. Peter Anvin" , Stephen Rothwell , Jeff Arnold , Andrew Morton , Jon Masters , Masami Hiramatsu , "Theodore Ts'o" , Nikanth Karthikesan , Arjan van de Ven , Am?rico Wang , Ralf Baechle , Kyle McMartin , David Howells Subject: Re: [PATCH v3 0/3] Add support for compiling with -ffunction-sections -fdata-sections Message-ID: <20090424001439.GA27897@linux-sh.org> Mail-Followup-To: Paul Mundt , Tim Abbott , Linus Torvalds , Linux kernel mailing list , Anders Kaseorg , Waseem Daher , Denys Vlasenko , Rusty Russell , Andi Kleen , "H. Peter Anvin" , Stephen Rothwell , Jeff Arnold , Andrew Morton , Jon Masters , Masami Hiramatsu , Theodore Ts'o , Nikanth Karthikesan , Arjan van de Ven , Am?rico Wang , Ralf Baechle , Kyle McMartin , David Howells References: <1238973278-31735-1-git-send-email-tabbott@mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1803 Lines: 39 On Thu, Apr 23, 2009 at 04:48:52PM -0400, Tim Abbott wrote: > On Mon, 20 Apr 2009, Linus Torvalds wrote: > > > I'd be ok with merging it, but I haven't really gotten a strong feeling > > that anybody is going to enable it or use it. > > Linus, > > Would you be willing to merge the first 3 patches in this patch series at > this point? I'm resending these patches to resolve some conflicts that > was recently introduced. > > To summarize the discussion, there are three uses for this code that have > significant interest. > > One is decreasing the kernel size. Denys Vlasenko has numbers that using > the linker's --gc-sections option (for which these patches are a > prerequisite) saves 10% of the kernel size when CONFIG_MODULES=n, and 1% > when CONFIG_MODULES=y. Paul Mundt thinks many embedded users would use > this if it were available. > > A related use is cleaning up a lot of ifdefs that exist only to decrease > the kernel size. Several developers commented favorably on the direction > of using section garbage collection for dead code removal. > > Finally, Ksplice depends on the option added by this patch series. > > The first 3 patches in this patch series fix problems associated with > using -ffunction-sections. As there are some architectures currently > using -ffunction-sections, these should ideally be merged now, especially > the first patch which involves scattered changes. > Given that this fixes issues with the existing in-tree users, it would help to make them aware of this also.. added to the CC. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/