Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752251AbZGVEuT (ORCPT ); Wed, 22 Jul 2009 00:50:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751513AbZGVEuT (ORCPT ); Wed, 22 Jul 2009 00:50:19 -0400 Received: from 136-022.dsl.LABridge.com ([206.117.136.22]:2719 "EHLO mail.perches.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751283AbZGVEuS (ORCPT ); Wed, 22 Jul 2009 00:50:18 -0400 Subject: Re: [RFC] move __devinit or __init printk constant format strings to __devinitconst or __initdata? From: Joe Perches To: Matt Mackall Cc: David Daney , linux-embedded@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Gortmaker , David Woodhouse , Tim Bird In-Reply-To: <1248226085.10466.251.camel@calx> References: <1248211253.31365.337.camel@Joe-Laptop.home> <1248212925.10466.143.camel@calx> <1248213403.31365.343.camel@Joe-Laptop.home> <1248217044.10466.202.camel@calx> <1248217502.31365.381.camel@Joe-Laptop.home> <4A665442.1010006@caviumnetworks.com> <1248226085.10466.251.camel@calx> Content-Type: text/plain Date: Tue, 21 Jul 2009 21:50:02 -0700 Message-Id: <1248238202.31365.576.camel@Joe-Laptop.home> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1388 Lines: 38 On Tue, 2009-07-21 at 20:28 -0500, Matt Mackall wrote: > On Tue, 2009-07-21 at 16:50 -0700, David Daney wrote: > > It would be tricky, the string data from the entire compilation unit is > > intermingled. You would have to separate out only those strings > > referenced from __init sections into their own section and fix up all > > symbols and relocations that were affected. > Exactly. Annoying but not impossible. But faster and likely easier to do once in source. > > Probably easier would be to use the plug-in feature that will be part of > > GCC-4.5 (or will that be called GCC-5.0??), and create a special Linux > > kernel GCC plug-in that just emits the __init literal strings to the > > proper section to begin with. Which is what the proposed marking would more or less do today. > > We don't want the kernel to get left > > behind in the GCC plug-in race. Any guess when gcc 4.5/5.0 might become available? It's in stage 1 now. Mid 2010 or so? 4.4.0 was April 21, 2009 4.3.0 was March 5, 2008 4.2.0 was May 13, 2007 Could you please send me what you think is a reasonable .config for an embedded box. cheers, Joe -- 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/