Kernel build parameter CONFIG_REGPARAM breaks binary modules

Alan Cox alan at redhat.com
Wed Mar 17 14:38:52 UTC 2004


On Wed, Mar 17, 2004 at 12:47:13AM +0100, Earle Robert Nietzel wrote:
> Come to find out that in "arch/i386/Makefile":
> 
> CFLAGS += -pipe -mregparm=3 -msoft-float -fno-builtin-sprintf -fno-
> builtin-log2 -fno-builtin-puts
> 
> You'll notice "-mregparm=3"?
> 
> After removing this compiler flag my binary modules began to load
> correctly.
> 
> Anyone care to comment on this?

Your binary modules need to match the kernel. -mregparm=3 tells the
kernel to try and use registers for some of the argument passing, and
thus be more efficient





More information about the fedora-devel-list mailing list