From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tony Lindgren Subject: Re: [PATCH] ARM: Make sure appended device tree data won't overlap kernel BSS Date: Mon, 9 May 2011 17:49:50 +0300 Message-ID: <20110509144949.GE30958@atomide.com> References: <20110427142306.GI3755@atomide.com> <20110427144335.GK3755@atomide.com> <20110429102623.GX3755@atomide.com> <20110429135334.GR5126@n2100.arm.linux.org.uk> <20110504072317.GU2092@atomide.com> <20110509111929.GA11410@atomide.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20110509111929.GA11410-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org To: Nicolas Pitre Cc: Russell King - ARM Linux , devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, glikely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org List-Id: devicetree@vger.kernel.org * Tony Lindgren [110509 14:16]: > Do this before relocating the compressed kernel + device tree data. > Otherwise we would have to split the copying into two parts, or copy > the device tree data twice. > > As we only have one register available, pass the size of kernel BSS > via linker and do the following calculation using r1. Blah, this still needs a bit more work.. The calculation is wrong and we can get multiple relocations now. Tony