Re: binary compatibity (mixing different gcc versions) in modules

Andi Kleen (ak@muc.de)
18 Jun 2002 02:24:27 +0200


Emmanuel Michon <emmanuel_michon@realmagic.fr> writes:

> Hi,
>
> looking at nvidia proprietary driver, the makefile warns
> the user against insmod'ing a module compiled with a gcc
> version different from the one that was used to compile
> the kernel.
>
> This sounds strange to me, since I never encountered this
> problem.

Some earlier obsolete gcc versions had problems with empty types. This lead
to an #if based on the compiler version that added a dummy field
to spinlocks even for UP kernels. This made structure offsets of
structures with spinlocks change based on gcc version.

Should be long gone with recent compilers.

Still there are enough other variables to structure offsets depending
on the configuration.

-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/