public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Alex Pelts <alexp@itvd.sel.sony.com>
To: linux-kernel@vger.kernel.org, alexp@itvd.sel.sony.com
Subject: mtdblock with gcc 2.95.4 patch
Date: Tue, 20 Aug 2002 15:46:53 -0700	[thread overview]
Message-ID: <3D62C6DD.9000306@itvd.sel.sony.com> (raw)

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);


             reply	other threads:[~2002-08-20 22:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-20 22:46 Alex Pelts [this message]
2002-08-31 21:27 ` mtdblock with gcc 2.95.4 patch Adrian Bunk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3D62C6DD.9000306@itvd.sel.sony.com \
    --to=alexp@itvd.sel.sony.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox