Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S268724AbUIXMtQ (ORCPT ); Fri, 24 Sep 2004 08:49:16 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S268717AbUIXMtQ (ORCPT ); Fri, 24 Sep 2004 08:49:16 -0400 Received: from cantor.suse.de ([195.135.220.2]:5507 "EHLO Cantor.suse.de") by vger.kernel.org with ESMTP id S268735AbUIXMtK (ORCPT ); Fri, 24 Sep 2004 08:49:10 -0400 To: Geert Uytterhoeven Cc: Pawe?? Sikora , Linux Kernel Mailing List Subject: Re: unresolved symbol __udivsi3_i4 References: <20040924021050.689.qmail@web53608.mail.yahoo.com> <200409240801.57848.pluto@pld-linux.org> <20040924105207.GH22710@lug-owl.de> <20040924112954.GI22710@lug-owl.de> From: Andreas Schwab X-Yow: CHUBBY CHECKER owns my BUILDING! Date: Fri, 24 Sep 2004 14:49:08 +0200 In-Reply-To: <20040924112954.GI22710@lug-owl.de> (Jan-Benedict Glaw's message of "Fri, 24 Sep 2004 13:29:54 +0200") Message-ID: User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1099 Lines: 28 Jan-Benedict Glaw writes: > 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 libgcc is an intrinsic part of the freestanding implementation provided by the compiler, just like . > 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. Inlining can be less efficient due to icache issues. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux AG, Maxfeldstra?e 5, 90409 N?rnberg, Germany Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/