Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756535Ab1BKNzZ (ORCPT ); Fri, 11 Feb 2011 08:55:25 -0500 Received: from mail-vw0-f46.google.com ([209.85.212.46]:53601 "EHLO mail-vw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756279Ab1BKNzY (ORCPT ); Fri, 11 Feb 2011 08:55:24 -0500 Date: Fri, 11 Feb 2011 08:55:20 -0500 (EST) From: Nicolas Pitre X-X-Sender: nico@xanadu.home To: Dave Martin cc: Russell King - ARM Linux , Sachin Verma , Rabin Vincent , Alexander Holler , lkml , linux-arm-kernel , catalin.marinas@arm.com Subject: Re: ARM: relocation out of range (when loading a module) In-Reply-To: Message-ID: References: <4D2D1942.4050905@ahsoftware.de> <20110112184258.GH11039@n2100.arm.linux.org.uk> <20110210154322.GE1742@n2100.arm.linux.org.uk> <20110211093853.GA23404@n2100.arm.linux.org.uk> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-856371771-1297432522=:14920" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2171 Lines: 46 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-856371771-1297432522=:14920 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT On Fri, 11 Feb 2011, Dave Martin wrote: > On Fri, Feb 11, 2011 at 9:38 AM, Russell King - ARM Linux > wrote: > > On Fri, Feb 11, 2011 at 09:31:04AM +0000, Dave Martin wrote: > >> You could probably cook up a good upper bound based on the size of the > >> kernel and the number of symbols in the module: i.e., assume that > >> every undefined symbol in the module needs to be fixed up to point at > >> the most distant symbol in the kernel. > >> > >> For people with normal-sized kernels, this bound will probably work > >> out as zero most of the time (i.e., the current situation). ?For > >> people with big kernels, or when many modules are already loaded, it > >> may work out at 100% -- but that's the price to pay for guaranteed > >> preallocation of the space required for the veneers. ?And anyway, you > >> may really need a substantial chunk of those veneers in such cases. > > > > I think it's going to be easier just to re-order the kernel image link > > order to solve that problem. ?That just leaves uclinux... > > > > But if the kernel is big, or there are many modules, changing the > order can't solve the problem surely? Or is the problem purely caused > by having the initramfs in the way, and we think the amount of actual > code will never be big enough to cause a problem? Right now the biggest problem comes from the size of the initramfs. The solution for that is simply to move it elsewhere towards the end of the kernel image instead of at the beginning. And I think we're good for a couple years before the actual kernel code size becomes an issue. Nicolas --8323328-856371771-1297432522=:14920-- -- 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/