From: David Ronis <ronis@ronispc.chem.mcgill.ca>
To: Dave Jones <davej@codemonkey.org.uk>
Cc: Marc-Christian Petersen <m.c.p@wolk-project.de>,
linux-kernel@vger.kernel.org, ronis@onsager.chem.mcgill.ca,
David Ronis <ronis@ronispc.chem.mcgill.ca>
Subject: Re: build failure in 2.4.20
Date: Mon, 9 Dec 2002 13:47:05 -0500 [thread overview]
Message-ID: <15860.58665.606855.853566@ronispc.chem.mcgill.ca> (raw)
In-Reply-To: <20021209173144.GA3751@suse.de>
Ok, with Marc-Christian's change and my guess about --oformat I am
able to build and install the kernel and its modules. It actually
even boots.
One last thing, the kernel version seems to have regressed a bit. It
thinks it's 2.4.0.
Dave, I haven't had a chance to look at the URL you suggested yet (and
probably do not have the expertise to fix things the way you're
suggesting either); is Marc-Christian's fix safe in the mean time?
David
Dave Jones writes:
> On Mon, Dec 09, 2002 at 06:09:57PM +0100, Marc-Christian Petersen wrote:
> > > drivers/net/net.o(.data+0xd4): undefined reference to `local symbols in
> > > discarded section .text.exit' make: *** [vmlinux] Error 1
> > > It sounds like this is a problem with ld or as, but I'm not sure. Any
> > > suggestions?
> > $editor arch/i386/vmlinux.lds
> >
> > you'll see starting at line 67 this:
> >
> > /* Sections to be discarded */
> > /DISCARD/ : {
> > *(.text.exit)
> > *(.data.exit)
> > *(.exitcall.exit)
> > }
> >
> > remove this:
> >
> > *(.text.exit)
>
> This may get rid of the compile error, but this is *not* the correct way
> to fix this problem. The correct fix is to run reference_discarded [1]
> to find out which driver is causing the problem, and add __devexit
> tags where relevant.
>
> Dave
>
> [1] http://kernelnewbies.org/scripts/reference_discarded.pl
>
> --
> | Dave Jones. http://www.codemonkey.org.uk
> | SuSE Labs
next prev parent reply other threads:[~2002-12-09 18:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-09 15:22 David Ronis
2002-12-09 17:09 ` Marc-Christian Petersen
2002-12-09 17:30 ` David Ronis
2002-12-09 17:55 ` David Ronis
2002-12-09 17:31 ` Dave Jones
2002-12-09 18:47 ` David Ronis [this message]
2002-12-09 18:47 ` Dave Jones
2002-12-09 18:49 ` Marc-Christian Petersen
2002-12-10 13:42 ` Adrian Bunk
2002-12-10 14:23 ` David Ronis
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=15860.58665.606855.853566@ronispc.chem.mcgill.ca \
--to=ronis@ronispc.chem.mcgill.ca \
--cc=davej@codemonkey.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=m.c.p@wolk-project.de \
--cc=ronis@onsager.chem.mcgill.ca \
/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
all inboxes | Powered by JetHome®