From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1My6rI-0004c0-80 for mharc-grub-devel@gnu.org; Wed, 14 Oct 2009 12:37:52 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1My6rG-0004Yh-1V for grub-devel@gnu.org; Wed, 14 Oct 2009 12:37:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1My6rB-0004S3-Sw for grub-devel@gnu.org; Wed, 14 Oct 2009 12:37:49 -0400 Received: from [199.232.76.173] (port=48933 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1My6rB-0004Rs-NQ for grub-devel@gnu.org; Wed, 14 Oct 2009 12:37:45 -0400 Received: from xvm-190-8.ghst.net ([217.70.190.8]:34035 helo=aybabtu.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1My6rB-0007Vc-Ar for grub-devel@gnu.org; Wed, 14 Oct 2009 12:37:45 -0400 Received: from [192.168.10.10] (helo=thorin) by aybabtu.com with esmtp (Exim 4.69) (envelope-from ) id 1My6r7-0001OH-J7 for grub-devel@gnu.org; Wed, 14 Oct 2009 18:37:43 +0200 Received: from rmh by thorin with local (Exim 4.69) (envelope-from ) id 1My6r6-0000TF-Tu for grub-devel@gnu.org; Wed, 14 Oct 2009 18:37:40 +0200 Date: Wed, 14 Oct 2009 18:37:40 +0200 From: Robert Millan To: The development of GRUB 2 Message-ID: <20091014163740.GA1739@thorin> References: <1255337746.3204.23.camel@fz.local> <20091012.031430.106385568.davem@davemloft.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.18 (2008-05-17) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: powerpc/sparc problems X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Oct 2009 16:37:50 -0000 On Mon, Oct 12, 2009 at 06:31:12PM +0800, Bean wrote: > On Mon, Oct 12, 2009 at 6:14 PM, David Miller wrote: > > > > Good luck when the compiler changes the interface and/or semantics of > > these routines in a future version. Will you enumerate your in-tree > > copies by gcc version with ifdefs or similar? > > > > That's why gcc and it's libgcc are distributed together, and gcc > > configures itself to link with a specific libgcc and only that libgcc. > > > > This whole things perfectly fine in GRUB when I implemented the > > necessary machinery to find if these routines exist in libgcc at > > configure time and to reference them properly in the build. > > > > They've merely been broken meanwhile and someone just needs to rectify > > that regression. > > > > Hi, > > To use the libgcc, we need to link the object file, this doesn't work > in system that use non ELF format like mach-o. And actually, the int > function rarely changed, and some project like openbios also include > the libgcc function directly. David is right. We shouldn't embed a copy of libgcc code if we can avoid it. If an OS uses mach-o, it just means when compiling native programs they need to be in that format, but this is unrelated with the format used by GRUB. GRUB can be built on top of any OS, provided that its dependencies (including an ELF-capable toolchain) were installed. -- Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all."