Subject: Re: LKM?
To: Emmanuel Dreyfus <p99dreyf@criens.u-psud.fr>
From: Charles M. Hannum <root@ihack.net>
List: port-macppc
Date: 03/28/2001 15:41:11
On Wed, Mar 28, 2001 at 11:01:25PM +0200, Emmanuel Dreyfus wrote:
>
> Do LKM work on PowerPC? I get a bunch of problems:
> 
> kernfs.o: In function `kernfs_link':
> kernfs.o(.text+0x11e4): relocation truncated to fit: R_PPC_REL24 vput
> kernfs.o: In function `kernfs_symlink':
> kernfs.o(.text+0x1260): relocation truncated to fit: R_PPC_REL24 vput
> modload: can't link `kernfs.o' creating `kernfs' bound to 0xe8acd000

No.  Known problem.  Branch instructions have limited range, and the
LKM is loaded `too far' from the main kernel.  This is the same problem
that causes arm32 LKMs to fail as well (except on that platform the
linker doesn't actually barf; it just DTWT and the kernel panics).

Nobody has stepped up to the plate to deal with this yet.