Current egcs, binutils and kernel (fwd)

Geert Uytterhoeven Geert.Uytterhoeven at
Tue Apr 20 21:39:39 EST 1999

---------- Forwarded message ----------
Date: Tue, 20 Apr 1999 13:15:41 +0200
From: Reinhard Nissl <rnissl at>
To: Geert Uytterhoeven <Geert.Uytterhoeven at>
Cc: "linux-apus at" <linux-apus at>
Subject: Re: Current egcs, binutils and kernel


Geert Uytterhoeven wrote:

> On Wed, 14 Apr 1999, Reinhard Nissl wrote:
> > has anyone had success in compiling (egcs-1.1.2 and binutils-
> > the current APUS kernel with support for network block devices (nbd.c)?
> >
> > I get an undefined reference to __lshrdi3 from nbd_ioctl(), which looks
> > like a compiler / binutils bug.
> Hence a __lshrdi3() routine needs to be added to arch/ppc/kernel/misc.S.

I had a look into misc.S and found similar routines (__ashrdi3) there. Then I
searched in the egcs-1.1.2 sources for files, where such functions are
referenced. I found definitions in egcs-1.1.2/gcc/config/rs6000/ but
they are not native ppc assembler instructions. As I'm not that much used to
*.md files and ppc assembly code, I'm currently not able to define the missing
function in misc.S myself.

I checked the kernel source diffs from version 2.2.4 to 2.2.6 for lshrdi3 and
had only success for arch=sparc. So, is there anybody who can add the missing
function to misc.S for arch=ppc?

> Greetings,
>                                                 Geert

Dipl.-Inform. (FH) Reinhard Nissl
mailto:rnissl at

[[ This message was sent via the linuxppc-dev mailing list.  Replies are ]]
[[ not  forced  back  to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check ]]
[[ and for useful information before posting.   ]]

More information about the Linuxppc-dev mailing list