All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dave Jones <davej@codemonkey.org.uk>
To: Marc-Christian Petersen <m.c.p@wolk-project.de>
Cc: 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 17:31:44 +0000	[thread overview]
Message-ID: <20021209173144.GA3751@suse.de> (raw)
In-Reply-To: <200212091809.57622.m.c.p@wolk-project.de>

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

  parent reply	other threads:[~2002-12-09 17:27 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-09 15:22 build failure in 2.4.20 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 [this message]
2002-12-09 18:47     ` David Ronis
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=20021209173144.GA3751@suse.de \
    --to=davej@codemonkey.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=m.c.p@wolk-project.de \
    --cc=ronis@onsager.chem.mcgill.ca \
    --cc=ronis@ronispc.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.