[lkml]   [2002]   [Aug]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subjectmtdblock with gcc 2.95.4 patch
After installing new debian stable with gcc 2.95.4, kernel 2.4.17
stopped linking. The error is "undefined reference to local symbols...".
Problem seems to appear in different parts of the kernel at some time or
another. This is patch against 2.4.17 that I am using at this time. This
patch should apply to 2.4.18 and 2.4.19 as well. There seems to be
something tricky about __exit macro and 2.95.4 compiler.
For people getting error:
drivers/mtd/mtdlink.o(.text.lock+0x26c): undefined reference to `local
symbols in discarded section .text.exit'

here is the patch that seems to fix it.

--- linux/drivers/mtd/mtdblock.c Thu Oct 25 13:58:35 2001
+++ linux-2.4.17/drivers/mtd/mtdblock.c Tue Aug 20 14:13:38 2002
@@ -641,7 +641,7 @@
return 0;

-static void __exit cleanup_mtdblock(void)
+static void __devexit cleanup_mtdblock(void)
leaving = 1;
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:28    [W:0.051 / U:1.876 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site