From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758037AbbJIQjS (ORCPT ); Fri, 9 Oct 2015 12:39:18 -0400 Received: from mail-qg0-f54.google.com ([209.85.192.54]:34649 "EHLO mail-qg0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756565AbbJIQjQ (ORCPT ); Fri, 9 Oct 2015 12:39:16 -0400 Date: Fri, 9 Oct 2015 12:39:13 -0400 (EDT) From: Nicolas Pitre To: Daniel Lezcano cc: Marc Gonzalez , Thomas Gleixner , Mason , LKML Subject: Re: [PATCH v3] clocksource/drivers/tango_xtal: Add new timer for Tango SoCs In-Reply-To: <5617CD59.3050500@linaro.org> Message-ID: References: <5613E45C.5020208@sigmadesigns.com> <5614549F.2070002@linaro.org> <5614D66A.1060402@sigmadesigns.com> <56150369.2050609@sigmadesigns.com> <561510BF.7050207@linaro.org> <56151B5B.90404@sigmadesigns.com> <56154268.5060700@linaro.org> <56157CB9.7010105@free.fr> <5617AF82.4000606@sigmadesigns.com> <5617C028.3040709@linaro.org> <5617C52F.9040309@sigmadesigns.com> <5617CD59.3050500@linaro.org> User-Agent: Alpine 2.20 (LFD 67 2015-01-07) 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 Fri, 9 Oct 2015, Daniel Lezcano wrote: > On 10/09/2015 03:46 PM, Marc Gonzalez wrote: > > On 09/10/2015 15:24, Daniel Lezcano wrote: > > [ ... ] > > > On a tangential subject, it would seem that platforms with verbose logs > > at init might benefit from marking as __initconst strings used in __init > > functions. > > > > I discussed this some time ago: > > https://lkml.org/lkml/2015/3/25/688 > > > > which pointed to an earlier discussion: > > https://lkml.org/lkml/2014/8/21/255 > > https://lkml.org/lkml/2014/6/22/149 > > Thanks for the pointer. > > Nicolas Pitre (Cc'ed) is working on optimizing the memory consumption by > stripping unreferenced code at compile time. Perhaps he thought a solution for > this particular use case. This is different. Here those strings are actually referenced and can't be discarded. The solution is to mark them so they go in the appropriate section as suggested. It might be worth investigating the addition of a new gcc function attribute that provides a replacement section for .data, .rodata, etc. in addition to .text, that would apply to data objects created within that function. Nicolas