Re: 2.5.59 vmlinux.lds.S change broke modules

Mikael Pettersson (mikpe@csd.uu.se)
Sat, 18 Jan 2003 15:36:40 +0100 (MET)


On Fri, 17 Jan 2003 18:11:01 -0600 (CST), Kai Germaschewski wrote:
>Okay, the details I received so far seem to indicate that the appended
>patch will fix it, though I didn't get actual confirmation it does.
>
>If you experience crashes when loading modules (and have RH 8 binutils),
>please give it a shot.
...
>diff -Nru a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h
>--- a/include/asm-generic/vmlinux.lds.h Fri Jan 17 10:09:57 2003
>+++ b/include/asm-generic/vmlinux.lds.h Fri Jan 17 10:09:57 2003
>@@ -13,18 +13,18 @@
> } \
> \
> /* Kernel symbol table: Normal symbols */ \
>- __start___ksymtab = .; \
> __ksymtab : AT(ADDR(__ksymtab) - LOAD_OFFSET) { \
>+ __start___ksymtab = .; \
> *(__ksymtab) \
>+ __stop___ksymtab = .; \
> } \
>- __stop___ksymtab = .; \
> \
> /* Kernel symbol table: GPL-only symbols */ \
>- __start___gpl_ksymtab = .; \
> __gpl_ksymtab : AT(ADDR(__gpl_ksymtab) - LOAD_OFFSET) { \
>+ __start___gpl_ksymtab = .; \
> *(__gpl_ksymtab) \
>+ __stop___gpl_ksymtab = .; \
> } \
>- __stop___gpl_ksymtab = .; \
> \
> /* Kernel symbol table: strings */ \
> __ksymtab_strings : AT(ADDR(__ksymtab_strings) - LOAD_OFFSET) { \
>

This patch fixed the module-loading problem for me. Thanks.

Note that the problem wasn't specific to RH8.0 binutils:
I've also seen it with binutils-2.10.91 from RH7.1.

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