public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@fs.tum.de>
To: Greg Ungerer <gerg@snapgear.com>, David Woodhouse <dwmw2@infradead.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.5.56: undefined reference to `_ebss' from drivers/mtd/maps/uclinux.c
Date: Thu, 20 Mar 2003 15:59:28 +0100	[thread overview]
Message-ID: <20030320145927.GF11659@fs.tum.de> (raw)
In-Reply-To: <3E226969.5080406@snapgear.com>

On Mon, Jan 13, 2003 at 05:23:21PM +1000, Greg Ungerer wrote:
> Hi Adrian,
> 
> Adrian Bunk wrote:
> >trying to compile 2.5.56 with CONFIG_MTD_UCLINUX fails on i386 with
> >  undefined reference to `_ebss'
> >at the final linking.
> >
> >It seems _ebss is only defined on the architectures m68knommu and v850?
> 
> Hmm, currently that is correct. There doesn't appear to be a
> "standard" symbol name applied to the immediate end of the bss
> section. Different architectures are using different names:
> 
>   _ebss        -- m68knommu, v850
>   __bss_stop   -- i386, alpha, ppc, s390
>   __bss_end    -- x86_64
>   _end         -- mips, parisc, sparc, (actually most have this)
> 
> Actually it looks like _end is probably closer, it seems to
> almost always fall strait after the bss, on just about every
> architecture that has it.
> 
> Come to think of it _end is probably more appropriate anyway.
> Since that code is trying to find the location of something
> concatenated to the end of the kernel image.


This problem (undefined reference to `_ebss') is still present in 
2.5.65.

It might not be a solution for the whole issue, but is it intentionally
that it's possible to enable CONFIG_MTD_UCLINUX on non-uClinux 
architectures or should an appropriate dependency be added to the 
Kconfig file?


> Regards
> Greg

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


  reply	other threads:[~2003-03-20 14:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-12  9:55 2.5.56: undefined reference to `_ebss' from drivers/mtd/maps/uclinux.c Adrian Bunk
2003-01-13  7:23 ` Greg Ungerer
2003-03-20 14:59   ` Adrian Bunk [this message]
2003-03-20 16:00     ` [patch] " Adrian Bunk
2003-03-21  0:48       ` Greg Ungerer

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=20030320145927.GF11659@fs.tum.de \
    --to=bunk@fs.tum.de \
    --cc=dwmw2@infradead.org \
    --cc=gerg@snapgear.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