From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755141Ab1ALQfE (ORCPT ); Wed, 12 Jan 2011 11:35:04 -0500 Received: from co202.xi-lite.net ([149.6.83.202]:42057 "EHLO co202.xi-lite.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751137Ab1ALQfB (ORCPT ); Wed, 12 Jan 2011 11:35:01 -0500 X-Greylist: delayed 570 seconds by postgrey-1.27 at vger.kernel.org; Wed, 12 Jan 2011 11:35:01 EST Message-ID: <4D2DD5F8.5000200@parrot.com> Date: Wed, 12 Jan 2011 17:25:28 +0100 From: Matthieu CASTET User-Agent: Thunderbird 2.0.0.24 (X11/20100228) MIME-Version: 1.0 To: Russell King - ARM Linux CC: Rabin Vincent , Alexander Holler , "linux-kernel@vger.kernel.org" , linux-arm-kernel , Nicolas Pitre Subject: Re: ARM: relocation out of range (when loading a module) References: <4D2B4CE4.9080309@ahsoftware.de> <4D2BFA08.5030104@ahsoftware.de> <20110111155930.GH11039@n2100.arm.linux.org.uk> In-Reply-To: <20110111155930.GH11039@n2100.arm.linux.org.uk> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Russell King - ARM Linux a écrit : > On Tue, Jan 11, 2011 at 09:16:38PM +0530, Rabin Vincent wrote: >> It's possible to hack around this by placing the initramfs at the end of >> the kernel image rather than at the beginning with the rest of the init >> data. Something like the below should work, although you should also >> probably take care of alignment and also have this section freed when >> the rest of the init data is freed. > > You're then running into problems as _sdata.._edata is copied to RAM on > XIP kernels, and you really don't want to waste time copying the > initramfs to RAM. > But in this case initramfs is after edata and before bss. So where is the problem ? Matthieu