* mtdblock with gcc 2.95.4 patch
@ 2002-08-20 22:46 Alex Pelts
2002-08-31 21:27 ` Adrian Bunk
0 siblings, 1 reply; 2+ messages in thread
From: Alex Pelts @ 2002-08-20 22:46 UTC (permalink / raw)
To: linux-kernel, alexp
Hi,
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.
Thanks,
Alex
--- 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;
wake_up(&thr_wq);
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: mtdblock with gcc 2.95.4 patch
2002-08-20 22:46 mtdblock with gcc 2.95.4 patch Alex Pelts
@ 2002-08-31 21:27 ` Adrian Bunk
0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2002-08-31 21:27 UTC (permalink / raw)
To: Alex Pelts; +Cc: linux-kernel
On Tue, 20 Aug 2002, Alex Pelts wrote:
> Hi,
Hi Alex,
> After installing new debian stable with gcc 2.95.4, kernel 2.4.17
> stopped linking. The error is "undefined reference to local symbols...".
>...
> 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'
this is a known issue with recent binutils - and it's considered to be a
bug in the kernel.
> here is the patch that seems to fix it.
I do currently not understand why your patch should fix it. Could you send
me the .config you used to reproduce the problem in 2.4.19?
> Thanks,
> Alex
>...
TIA
Adrian
--
You only think this is a free country. Like the US the UK spends a lot of
time explaining its a free country because its a police state.
Alan Cox
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-08-31 21:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-20 22:46 mtdblock with gcc 2.95.4 patch Alex Pelts
2002-08-31 21:27 ` Adrian Bunk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox