linux-mips
[Top] [All Lists]

Re: undefined reference to `__lshrdi3' error with GCC 4.0

To: Ralf Baechle <ralf@linux-mips.org>
Subject: Re: undefined reference to `__lshrdi3' error with GCC 4.0
From: Martin Michlmayr <tbm@cyrius.com>
Date: Fri, 17 Feb 2006 13:57:48 +0000
Cc: linux-mips@linux-mips.org
In-reply-to: <20060117190859.GA2061@linux-mips.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20060117134838.GJ27047@deprecation.cyrius.com> <200601171617.16147.p_christ@hol.gr> <20060117190859.GA2061@linux-mips.org>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.11
* Ralf Baechle <ralf@linux-mips.org> [2006-01-17 19:08]:
> > > arch/mips/kernel/built-in.o: In function `time_init':
> > > : undefined reference to `__lshrdi3'
> 
> Thanks to Martin Michlmayr's testing I now know this problem is limited
> to kernels built with gcc 4.0 and newer when optimizing for size.
...
> There is an awful lot of libgcc bits flying around in the kernel and I guess
> I'd be flamed for submitting even more ;-)  so I tried to come up with
> something to make most if not all unnecessary.  Still needs a little
> polishing but below for testing and commenting.

I think you've cleaned it up in the meantime.  Can you please send the
patch to lkml as a RFC?
-- 
Martin Michlmayr
http://www.cyrius.com/

<Prev in Thread] Current Thread [Next in Thread>
  • Re: undefined reference to `__lshrdi3' error with GCC 4.0, Martin Michlmayr <=