From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753236AbbDBQAn (ORCPT ); Thu, 2 Apr 2015 12:00:43 -0400 Received: from relay1.mentorg.com ([192.94.38.131]:61683 "EHLO relay1.mentorg.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752203AbbDBQAm (ORCPT ); Thu, 2 Apr 2015 12:00:42 -0400 Date: Thu, 2 Apr 2015 16:00:33 +0000 From: Joseph Myers X-X-Sender: jsm28@digraph.polyomino.org.uk To: Joe Perches CC: Andrew Morton , , Mathias Krause , Mason , Linux ARM , LKML , Ingo Molnar Subject: Re: String literals in __init functions In-Reply-To: <1427407120.15849.34.camel@perches.com> Message-ID: References: <5512F6C6.1020304@free.fr> <1427306517.2717.0.camel@perches.com> <5513FE2F.3040306@free.fr> <1427386390.15849.13.camel@perches.com> <1427392393.15849.16.camel@perches.com> <20150326144058.56ef6916b00ad38030296089@linux-foundation.org> <1427407120.15849.34.camel@perches.com> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 26 Mar 2015, Joe Perches wrote: > > I'd have thought that a function-wide > > __attribute__((__string_section__(foo)) > > wouldn't be a ton of work to implement. > > Maybe not. > > Could some future version of gcc move string constants > in a function to a specific section marked in a manner > similar to what Andrew described above? Putting string constants in a special section is an old project idea at . I still think support for that would make sense. -- Joseph S. Myers joseph@codesourcery.com From mboxrd@z Thu Jan 1 00:00:00 1970 From: joseph@codesourcery.com (Joseph Myers) Date: Thu, 2 Apr 2015 16:00:33 +0000 Subject: String literals in __init functions In-Reply-To: <1427407120.15849.34.camel@perches.com> References: <5512F6C6.1020304@free.fr> <1427306517.2717.0.camel@perches.com> <5513FE2F.3040306@free.fr> <1427386390.15849.13.camel@perches.com> <1427392393.15849.16.camel@perches.com> <20150326144058.56ef6916b00ad38030296089@linux-foundation.org> <1427407120.15849.34.camel@perches.com> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Thu, 26 Mar 2015, Joe Perches wrote: > > I'd have thought that a function-wide > > __attribute__((__string_section__(foo)) > > wouldn't be a ton of work to implement. > > Maybe not. > > Could some future version of gcc move string constants > in a function to a specific section marked in a manner > similar to what Andrew described above? Putting string constants in a special section is an old project idea at . I still think support for that would make sense. -- Joseph S. Myers joseph at codesourcery.com