Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756021AbZDZLVY (ORCPT ); Sun, 26 Apr 2009 07:21:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754031AbZDZLVI (ORCPT ); Sun, 26 Apr 2009 07:21:08 -0400 Received: from pfepa.post.tele.dk ([195.41.46.235]:37056 "EHLO pfepa.post.tele.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753984AbZDZLVG (ORCPT ); Sun, 26 Apr 2009 07:21:06 -0400 Date: Sun, 26 Apr 2009 13:23:13 +0200 From: Sam Ravnborg 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 , Paul Mundt , =?iso-8859-1?Q?Am=E9rico?= Wang , Ralf Baechle , Kyle McMartin , David Howells , Benjamin Herrenschmidt Subject: Re: [PATCH 10/15] powerpc: convert to use __HEAD and HEAD_TEXT macros. Message-ID: <20090426112313.GI28642@uranus.ravnborg.org> References: <1240711870-30505-1-git-send-email-tabbott@mit.edu> <1240711870-30505-2-git-send-email-tabbott@mit.edu> <1240711870-30505-3-git-send-email-tabbott@mit.edu> <1240711870-30505-4-git-send-email-tabbott@mit.edu> <1240711870-30505-5-git-send-email-tabbott@mit.edu> <1240711870-30505-6-git-send-email-tabbott@mit.edu> <1240711870-30505-7-git-send-email-tabbott@mit.edu> <1240711870-30505-8-git-send-email-tabbott@mit.edu> <1240711870-30505-9-git-send-email-tabbott@mit.edu> <1240711870-30505-10-git-send-email-tabbott@mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1240711870-30505-10-git-send-email-tabbott@mit.edu> User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4095 Lines: 143 On Sat, Apr 25, 2009 at 10:11:05PM -0400, Tim Abbott wrote: > This has the consequence of changing the section name use for head > code from ".text.head" to ".head.text". Since this commit changes all > users in the architecture, this change should be harmless. > > Signed-off-by: Tim Abbott > Cc: Benjamin Herrenschmidt Acked-by: Sam Ravnborg > --- > arch/powerpc/kernel/head_32.S | 3 ++- > arch/powerpc/kernel/head_40x.S | 3 ++- > arch/powerpc/kernel/head_44x.S | 3 ++- > arch/powerpc/kernel/head_8xx.S | 3 ++- > arch/powerpc/kernel/head_fsl_booke.S | 3 ++- > arch/powerpc/kernel/vmlinux.lds.S | 2 +- > 6 files changed, 11 insertions(+), 6 deletions(-) > > diff --git a/arch/powerpc/kernel/head_32.S b/arch/powerpc/kernel/head_32.S > index 54e68c1..c01467f 100644 > --- a/arch/powerpc/kernel/head_32.S > +++ b/arch/powerpc/kernel/head_32.S > @@ -21,6 +21,7 @@ > * > */ > > +#include > #include > #include > #include > @@ -50,7 +51,7 @@ > mtspr SPRN_DBAT##n##L,RB; \ > 1: > > - .section .text.head, "ax" > + __HEAD > .stabs "arch/powerpc/kernel/",N_SO,0,0,0f > .stabs "head_32.S",N_SO,0,0,0f > 0: > diff --git a/arch/powerpc/kernel/head_40x.S b/arch/powerpc/kernel/head_40x.S > index 56d8e5d..0c96911 100644 > --- a/arch/powerpc/kernel/head_40x.S > +++ b/arch/powerpc/kernel/head_40x.S > @@ -31,6 +31,7 @@ > * > */ > > +#include > #include > #include > #include > @@ -52,7 +53,7 @@ > * > * This is all going to change RSN when we add bi_recs....... -- Dan > */ > - .section .text.head, "ax" > + __HEAD > _ENTRY(_stext); > _ENTRY(_start); > > diff --git a/arch/powerpc/kernel/head_44x.S b/arch/powerpc/kernel/head_44x.S > index b56fecc..18d8a16 100644 > --- a/arch/powerpc/kernel/head_44x.S > +++ b/arch/powerpc/kernel/head_44x.S > @@ -28,6 +28,7 @@ > * option) any later version. > */ > > +#include > #include > #include > #include > @@ -50,7 +51,7 @@ > * r7 - End of kernel command line string > * > */ > - .section .text.head, "ax" > + __HEAD > _ENTRY(_stext); > _ENTRY(_start); > /* > diff --git a/arch/powerpc/kernel/head_8xx.S b/arch/powerpc/kernel/head_8xx.S > index 3c9452d..52ff8c5 100644 > --- a/arch/powerpc/kernel/head_8xx.S > +++ b/arch/powerpc/kernel/head_8xx.S > @@ -19,6 +19,7 @@ > * > */ > > +#include > #include > #include > #include > @@ -38,7 +39,7 @@ > #else > #define DO_8xx_CPU6(val, reg) > #endif > - .section .text.head, "ax" > + __HEAD > _ENTRY(_stext); > _ENTRY(_start); > > diff --git a/arch/powerpc/kernel/head_fsl_booke.S b/arch/powerpc/kernel/head_fsl_booke.S > index 4c22620..5bdcc06 100644 > --- a/arch/powerpc/kernel/head_fsl_booke.S > +++ b/arch/powerpc/kernel/head_fsl_booke.S > @@ -30,6 +30,7 @@ > * option) any later version. > */ > > +#include > #include > #include > #include > @@ -53,7 +54,7 @@ > * r7 - End of kernel command line string > * > */ > - .section .text.head, "ax" > + __HEAD > _ENTRY(_stext); > _ENTRY(_start); > /* > diff --git a/arch/powerpc/kernel/vmlinux.lds.S b/arch/powerpc/kernel/vmlinux.lds.S > index b9ef164..d7425ff 100644 > --- a/arch/powerpc/kernel/vmlinux.lds.S > +++ b/arch/powerpc/kernel/vmlinux.lds.S > @@ -52,7 +52,7 @@ SECTIONS > /* Text and gots */ > .text : AT(ADDR(.text) - LOAD_OFFSET) { > ALIGN_FUNCTION(); > - *(.text.head) > + HEAD_TEXT > _text = .; > *(.text .fixup .text.init.refok .exit.text.refok __ftr_alt_*) > SCHED_TEXT > -- > 1.6.2.1 > -- 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/