Re: [uml-devel] [RFC] UML/x86_64 module loader

2011-08-22 Thread Rusty Russell
On Mon, 22 Aug 2011 23:38:43 +0200, Richard Weinberger wrote: > Hi! > > UserModeLinux is using the arch specific module functions from > arch/x86/kernel/module.c. > On i386 this works perfectly fine but on x86_64 it causes problems. > > apply_relocate_add() assumes modules compiled with -mcmode

[uml-devel] [RFC] UML/x86_64 module loader

2011-08-22 Thread Richard Weinberger
Hi! UserModeLinux is using the arch specific module functions from arch/x86/kernel/module.c. On i386 this works perfectly fine but on x86_64 it causes problems. apply_relocate_add() assumes modules compiled with -mcmodel=kernel because the kernel lives in the negative 2GiB of the address space.