Re: compiling modules with gcc 3.2

From: Arjan van de Ven (arjanv@redhat.com)
Date: Fri Apr 25 2003 - 04:06:24 EST


On Fri, 2003-04-25 at 08:31, devnetfs wrote:
> Hello,
>
> Will kernel modules compiled with gcc 3.2 load in kernel compiled with
> gcc 2.96 (RH system)? The RH 8.0 release notes state that 2.96
> compiled modules can't be loaded on RH8.0 (as its compiled using gcc
> 3.2). So
> does the reverse also hold true?

yes

> Either way why is this so? AFAIK gcc 3.2 has abi incompatiblities
> w.r.t. C++ and not C (which the kernel+modules are written in).

there are some cornercase C ABI changes but nobody except DAC960 will
ever hit those. The more serious change is that the kernel contains
workarounds for older compilers (the test used is major < 3) that
changes the size of structures etc etc, and that breaks the module
stuff.



-
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/



This archive was generated by hypermail 2b29 : Wed Apr 30 2003 - 22:00:20 EST