I catch this mail in lklm few minutes ago. It touches old subject: is it safe to use old libgcc.a or you need to use only proper version. Looks like I was right after all :-) At least for ARM. Note last paragraph from following mail. As I have no ARM I can not comment on it, but...
-- cut -- 11-Mar-00 16:26 you wrote:
From sch57!vger.rutgers.edu!owner-linux-kernel-outgoing Sat Mar 11 19:57:25 2000
Received: by khim.sch57.msk.ru (UUPC/@ v7.00, 06Mar97) with UUCP id AA02326; Sat, 11 Mar 2000 19:57:25 +0300 (MSK) Received: from nic.funet.fi (nic.funet.fi [193.166.0.145]) by dell.sch57.msk.ru (8.8.8/8.8.8) with ESMTP id TAA10429 for linux-kernel@khim.sch57.msk.ru; Sat, 11 Mar 2000 19:29:52 +0300 Received: from vger.rutgers.edu ([128.6.190.2]:13428 "EHLO vger.rutgers.edu" ident: "NO-IDENT-SERVICE[2]" smtp-auth: <none> TLS-CIPHER: <none>) by nic.funet.fi with ESMTP id <S5956AbQCKQgQ>; Sat, 11 Mar 2000 18:36:16 +0200 Received: by vger.rutgers.edu via listexpand id <S157604AbQCKM2o>; Sat, 11 Mar 2000 07:28:44 -0500 Received: by vger.rutgers.edu id <S160078AbQCKM1t>; Sat, 11 Mar 2000 07:27:49 -0500 Received: from p27-magpie-gui.tch.enablis.net ([194.168.180.27]:4470 "EHLO caramon.arm.linux.org.uk") by vger.rutgers.edu with ESMTP id <S157686AbQCKMYL>; Sat, 11 Mar 2000 07:24:11 -0500 Received: from raistlin.arm.linux.org.uk (root@raistlin [192.168.0.3]) by caramon.arm.linux.org.uk (8.9.3/8.9.3) with ESMTP id QAA18879; Sat, 11 Mar 2000 16:27:11 GMT From: Russell King rmk@arm.linux.org.uk Received: (from rmk@localhost) by raistlin.arm.linux.org.uk (8.7.4/8.7.3) id QAA07865; Sat, 11 Mar 2000 16:26:21 GMT Message-Id: 200003111626.QAA07865@raistlin.arm.linux.org.uk Subject: Re: ADFS -> undefined reference to __cmpdi2 (2.3.51) To: matti.aarnio@sonera.fi (Matti Aarnio) Date: Sat, 11 Mar 2000 16:26:21 +0000 (GMT) Cc: Philip.Blundell@pobox.com (Philip Blundell), arjan@fenrus.demon.nl (Arjan van de Ven), linux-kernel@vger.rutgers.edu In-Reply-To: 20000311180544.E13396@mea.tmt.tele.fi from "Matti Aarnio" at Mar 11, 2000 06:05:44 PM X-Location: london.england.earth.mulky-way.universe X-Mailer: ELM [version 2.5 PL1] MIME-Version: 1.0 Sender: owner-linux-kernel@vger.rutgers.edu Precedence: bulk X-Loop: majordomo@vger.rutgers.edu X-Orcpt: rfc822;linux-kernel-outgoing-dig Lines: 35 Content-Type: text/plain; charset=us-ascii Content-Length: 1585
Matti Aarnio writes:
As Linus hasn't put it into i386 (nor Alpha), he has some good reason. Ask him for guidance.
That is probably because libgcc contained some stuff which was unsuitable for the kernel on x86.
Mainly I think we should NEVER use slow 64/* division routines in fast paths.
Ah, are you saying that the only thing that libgcc.a is used for is supposidly slow division routines? Some architectures need it for much much more than that.
As an end-result you will get your system free of need for libgcc.a, and possible dangers lurking in it.
No. libgcc.a is dependent on the compiler. I do know that code generated with one ARM gcc compiler does not work with the libgcc.a of a later compiler, suggesting that there is a difference in the API between the two versions of GCC. Hence, the only real way to get the correct behaviour in this case is to use libgcc.a for ARM. _____ |_____| ------------------------------------------------- ---+---+- | | Russell King rmk@arm.linux.org.uk --- --- | | | | http://www.arm.linux.org.uk/~rmk/aboutme.html / / | | +-+-+ --- -+- / | THE developer of ARM Linux |+| /|\ / | | | --- | +-+-+ ------------------------------------------------- /\\ |
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/ -- cut --