OK. Thanks a lot.
JinShan On Mon, 31 Jan 2005 09:34:32 -0800, David Mosberger <[EMAIL PROTECTED]> wrote: > Note that it is very dangerous to compile kernel modules like so: > > >>>>> On Mon, 31 Jan 2005 11:56:43 +0800, JinShan Xiong <[EMAIL PROTECTED]> > >>>>> said: > > JinShan> gcc -c -D__KERNEL__ -DMODULE -I/lib/modules/`uname > > This is missing the -mfixed-range=f12-f15,f32-f127 option, which means > that more complicated modules will end up trashing floating-point > registers which means that your module will cause random crashes in > user-level codes. I'd recommend to compile modules the same way as normal > kernel code, except that you need to remove the -mconstant-gp flag. > > In 2.6, this has gotten a lot easier, since modules are built using > the normal kbuild infrastructure. > > --david > - To unsubscribe from this list: send the line "unsubscribe linux-ia64" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
