public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jan-Benedict Glaw <jbglaw@lug-owl.de>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Pawe?? Sikora <pluto@pld-linux.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: unresolved symbol __udivsi3_i4
Date: Fri, 24 Sep 2004 13:29:54 +0200	[thread overview]
Message-ID: <20040924112954.GI22710@lug-owl.de> (raw)
In-Reply-To: <Pine.GSO.4.61.0409241314530.27692@waterleaf.sonytel.be>

[-- Attachment #1: Type: text/plain, Size: 1957 bytes --]

On Fri, 2004-09-24 13:15:26 +0200, Geert Uytterhoeven <geert@linux-m68k.org>
wrote in message <Pine.GSO.4.61.0409241314530.27692@waterleaf.sonytel.be>:
> On Fri, 24 Sep 2004, Jan-Benedict Glaw wrote:
> > > > > unresolved symbol __udivsi3_i4
> > > > # objdump -T /lib/libgcc_s.so.1|grep div
> > > > 000024c0 g    DF .text  00000162  GLIBC_2.0   __divdi3
> > > > 00002b80 g    DF .text  000001ed  GCC_3.0     __udivmoddi4
> > > > 00002870 g    DF .text  00000120  GLIBC_2.0   __udivdi3
> > > > 
> > > > you can link module with libgcc.a or fix it.
> > > 
> > > Just add an implementation for __udivsi3_i4 to arch/sh/lib/. They already have
> > > udivdi3.c over there.
> > 
> > Either that (which I don't like!), or have a try compiling the kernel
> 
> Why don't you like that? It's done that way on most architectures.

Well, the kernel is (or should be) a freestanding program, so it
shouldn't use *any* external code (and it doesn't, intentionally).
We're working hard not linking in libgcc.a (IIRC some archs actually do
that) (because eg. your compiler was compiled for i686-pc-linux-gnu, you
want to compile for a real i386 and end up with Pentium-alike code in
your i386 kernel).

So people started doing freestanding implementations of eg. __udivsi3 in
their kernel files. But why should they? GCC also could have emitted
inlined code to do that task, without ever calling an external function
for that.

However, this topic has been discussed several times with no real
resolution, so I guess we won't find a real cool solution this time,
too.

MfG, JBG (and greetings from Oldenburg!)

-- 
Jan-Benedict Glaw       jbglaw@lug-owl.de    . +49-172-7608481             _ O _
"Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur | Gegen Krieg  _ _ O
 fuer einen Freien Staat voll Freier Bürger" | im Internet! |   im Irak!   O O O
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2004-09-24 11:29 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-24  2:10 unresolved symbol __udivsi3_i4 Donald Duckie
2004-09-24  2:59 ` Randy.Dunlap
2004-09-24  3:23 ` Randy.Dunlap
2004-09-24  4:49   ` Donald Duckie
2004-09-24 23:14     ` Randy.Dunlap
2004-09-24  6:01 ` Paweł Sikora
2004-09-24  8:33   ` Geert Uytterhoeven
2004-09-24 10:52     ` Jan-Benedict Glaw
2004-09-24 11:15       ` Geert Uytterhoeven
2004-09-24 11:29         ` Jan-Benedict Glaw [this message]
2004-09-24 12:49           ` Andreas Schwab

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=20040924112954.GI22710@lug-owl.de \
    --to=jbglaw@lug-owl.de \
    --cc=geert@linux-m68k.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pluto@pld-linux.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