From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Mike Frysinger" Subject: Re: [PATCH 5/23] make section names compatible with -ffunction-sections -fdata-sections: blackfin Date: Tue, 1 Jul 2008 18:58:02 -0400 Message-ID: <8bd0f97a0807011558u2c02f6fcre2f3af3d5cced936@mail.gmail.com> References: <200807020235.08025.vda.linux@googlemail.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=EsPmVge1myCI+bC/mFSGPVjWRiJdnezTGyEdMigRsFI=; b=sXEg3zY7wIseTfSDLVKDStVwKdMuJcQxQlqn2mn4GxOAXmUs/Chpl273sM4rrmKAO5 +f71oCtjcvL7GTzoF4lADMVyhyNyk6p4d7ovpXEl+AWTozZIgtvrYVYSS54uGkgC6yF1 BeTQM+3FLY9EyX/J8IeT74bJYNRyAYorx2SL0= In-Reply-To: <200807020235.08025.vda.linux@googlemail.com> Content-Disposition: inline Sender: linux-embedded-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Denys Vlasenko Cc: linux-arch@vger.kernel.org, Russell King , David Howells , Ralf Baechle , Lennert Buytenhek , Josh Boyer , Paul Mackerras , David Woodhouse , Andi Kleen , torvalds@linux-foundation.org, akpm@linux-foundation.org, Paul Gortmaker , linux-embedded@vger.kernel.org, linux-kernel@vger.kernel.org, Tim Bird , Martin Schwidefsky , Dave Miller On Tue, Jul 1, 2008 at 8:35 PM, Denys Vlasenko wrote: > The purpose of this patch is to make kernel buildable > with "gcc -ffunction-sections -fdata-sections". > This patch fixes blackfin architecture. the comment right above what you changed says it already works for Blackfin. so you arent fixing it at all. > /* This gets done first, so the glob doesn't suck it in */ > . = ALIGN(32); > - *(.data.cacheline_aligned) > + *(.cacheline_aligned.data) ive built Blackfin kernels with function/data sections a long time ago ... but iirc, there were toolchain problems, so i havent pursued it since. if you're going to muck with names, you might as well do it right the first time: move the names into asm-generic/vmlinux.lds.h so we dont have to worry about this kind of churn again. -mike