Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: "H . J . Lu" <hjl@lucon.org>
To: Geoffrey Espin <espin@idiom.com>
Cc: linux-mips@oss.sgi.com, linux-mips-kernel@lists.sourceforge.net
Subject: Re: Updates for RedHat 7.1/mips
Date: Wed, 24 Apr 2002 14:18:40 -0700	[thread overview]
Message-ID: <20020424141840.A28683@lucon.org> (raw)
In-Reply-To: <20020424141136.A63873@idiom.com>; from espin@idiom.com on Wed, Apr 24, 2002 at 02:11:36PM -0700

On Wed, Apr 24, 2002 at 02:11:36PM -0700, Geoffrey Espin wrote:
> On Wed, Apr 24, 2002 at 02:01:56PM -0700, H . J . Lu wrote:
> > That is a kernel bug which has been fixed in the newer kernel. From my
> > binutils release note:
> > Changes from binutils 2.11.92.0.10:
> > 1. Update from binutils 2001 1121.
> > 2. Fix a linker symbol version bug for common symbols.
> > 3. Update handling relocations against the discarded sections. You may
> > need to apply the kernel patch enclosed here to your kernel source. If
> > you still see things like
> > drivers/char/char.o(.data+0x46b4): undefined reference to `local symbols in discarded
> >  section .text.exit'
> > in the final kernel link, that means you have compiled a driver into
> > the kernel which has a reference to the symbol in a discarded section.
> > Kernel 2.4.17 or above should work fine.
> > H.J.
> 
> Sorry, I should have specified my kernel *IS* recently (Monday)
> from linux-mips.sourceforge.net.  And it was previously sync'd
> to oss.sgi.com on Sunday, 21Apr02.
> 

Your kernel still have references to symbols in discarded sections. Please
read linux/include/linux/init.h:

/* Functions marked as __devexit may be discarded at kernel link time, depending
   on config options.  Newer versions of binutils detect references from
   retained sections to discarded sections and flag an error.  Pointers to
   __devexit functions must use __devexit_p(function_name), the wrapper will
   insert either the function_name or NULL, depending on the config options.
 */
#if defined(MODULE) || defined(CONFIG_HOTPLUG)
#define __devexit_p(x) x 
#else
#define __devexit_p(x) NULL
#endif


H.J.

  reply	other threads:[~2002-04-24 21:18 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-23 22:59 Updates for RedHat 7.1/mips H . J . Lu
2002-04-24 13:35 ` Hartvig Ekner
2002-04-24 13:35   ` Hartvig Ekner
2002-04-24 20:53 ` Geoffrey Espin
2002-04-24 21:01   ` H . J . Lu
2002-04-24 21:11     ` Geoffrey Espin
2002-04-24 21:18       ` H . J . Lu [this message]
2002-04-24 23:28         ` Geoffrey Espin
2002-04-24 23:38   ` Keith Owens

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=20020424141840.A28683@lucon.org \
    --to=hjl@lucon.org \
    --cc=espin@idiom.com \
    --cc=linux-mips-kernel@lists.sourceforge.net \
    --cc=linux-mips@oss.sgi.com \
    /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