From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id CC5EFB7BFF for ; Wed, 30 Sep 2009 06:39:08 +1000 (EST) In-Reply-To: <20090929120006.78affe3f@lappy.seanm.ca> References: <20090929120006.78affe3f@lappy.seanm.ca> Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: From: Segher Boessenkool Subject: Re: [PATCH] powerpc: warning: allocated section `.data_nosave' not in segment Date: Tue, 29 Sep 2009 22:40:13 +0200 To: Sean MacLennan Cc: linuxppc-dev List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > We need to align before the output section. Having the align inside > the output section causes the linker to put some filler in there, > which makes it a non-empty section, but this section isn't assigned to > a segment so you get a warning from the linker. > > Signed-off-by: Sean MacLennan > --- > diff --git a/arch/powerpc/kernel/vmlinux.lds.S > b/arch/powerpc/kernel/vmlinux.lds.S index f564293..e853763 100644 > --- a/arch/powerpc/kernel/vmlinux.lds.S > +++ b/arch/powerpc/kernel/vmlinux.lds.S > @@ -236,6 +236,7 @@ SECTIONS > READ_MOSTLY_DATA(L1_CACHE_BYTES) > } > > + . = ALIGN(PAGE_SIZE); > .data_nosave : AT(ADDR(.data_nosave) - LOAD_OFFSET) { > NOSAVE_DATA > } Acked-by: Segher Boessenkool The patch is good and fixes a real problem. But, I still don't see how it caused the "warning: allocated section `.data_nosave' not in segment", it would be good if we can find out. Segher