Re: 2.5.59 __find_symbol oops

From: Sam Ravnborg (sam@ravnborg.org)
Date: Thu Jan 30 2003 - 14:16:00 EST


On Thu, Jan 30, 2003 at 02:59:40PM +0000, Gianni Tedesco wrote:
> Reproduce by loading a module (AFAICS).

Bug in asm-generic/vmlinux.lds.h
Apply this patch:

===== vmlinux.lds.h 1.4 vs 1.5 =====
--- 1.4/include/asm-generic/vmlinux.lds.h Thu Jan 16 17:02:47 2003
+++ 1.5/include/asm-generic/vmlinux.lds.h Fri Jan 17 17:26:31 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) { \
-
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 : Fri Jan 31 2003 - 22:00:24 EST