Re: 2.5.59 __find_symbol oops

Sam Ravnborg (sam@ravnborg.org)
Thu, 30 Jan 2003 20:16:00 +0100


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/