From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Bottomley Subject: Re: [parisc-linux] kernel module relocation bug Date: 29 Nov 2004 09:33:53 -0600 Message-ID: <1101742439.1714.11.camel@mulgrave> References: <20041127064710.GL9148@tausq.org> Mime-Version: 1.0 Content-Type: text/plain Cc: PARISC list To: Randolph Chung Return-Path: In-Reply-To: <20041127064710.GL9148@tausq.org> List-Id: parisc-linux developers list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: parisc-linux-bounces@lists.parisc-linux.org On Sat, 2004-11-27 at 00:47, Randolph Chung wrote: > currently the kernel module loader does not support long branch stubs. > using the debian 2.6.8-1 kernel, when loading the ipv6 module, i see: > > legolas[6:43] linux-2.6% sudo modprobe ipv6 > FATAL: Error inserting ipv6 (/lib/modules/2.6.8-1-32-smp/kernel/net/ipv6/ipv6.ko): Invalid module format This is pretty nasty. The problem isn't a bad relocation, its that the relocation target is too far away (i.e. ipv6 is too big). We get around this in the kernel by using -ffunction-sections so that the real linker can insert stubs between functions. However, calculating how to do that in the in-kernel module loader would not be a whole lot of fun. James _______________________________________________ parisc-linux mailing list parisc-linux@lists.parisc-linux.org http://lists.parisc-linux.org/mailman/listinfo/parisc-linux