Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MxIBV-0007Km-1h for mharc-grub-devel@gnu.org; Mon, 12 Oct 2009 06:31:21 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MxIBS-0007JG-Pz for grub-devel@gnu.org; Mon, 12 Oct 2009 06:31:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MxIBP-0007FV-1h for grub-devel@gnu.org; Mon, 12 Oct 2009 06:31:18 -0400 Received: from [199.232.76.173] (port=44263 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MxIBO-0007FH-H5 for grub-devel@gnu.org; Mon, 12 Oct 2009 06:31:14 -0400 Received: from mail-px0-f202.google.com ([209.85.216.202]:64204) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MxIBN-0001EM-Sb for grub-devel@gnu.org; Mon, 12 Oct 2009 06:31:14 -0400 Received: by pxi40 with SMTP id 40so9273478pxi.24 for ; Mon, 12 Oct 2009 03:31:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=Kj6v3Zo2Kqg7K3lJaPHfhhoVDXS72I3y26dGOcWshoo=; b=InxHV1QelnurYBDGxwUgsuZ41kK4b98LipQPn1u2yivKtXaiO39OfBrKoDVW1hl61O +wpnbnH7n4cpbSeRj9ZTeqe+Oi82luLe8lBwsxV0epQ/b3/RRItbXpr5To0e3AlBFsfG yrLK8bJrOMB8SS+TzwzOU27JLaVqZyTfpKd8I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=AXohYZAFhoxSuGFCSnB4Fo5c5+74x0hhwjMf1l+DW3qEj7nCuq+KP/bA4J32gz89BO 8gsRM6Zd6iWLlPuMK+jOktTcqGEnIUx5sRY3bpdUq1CRPWnRft7g1tb/w7yBAUEWePlA 7DPlhQ3+dhDnEPqPxQ+QYW6FXwDYirQXp5Jls= MIME-Version: 1.0 Received: by 10.140.178.2 with SMTP id a2mr437950rvf.274.1255343472957; Mon, 12 Oct 2009 03:31:12 -0700 (PDT) In-Reply-To: <20091012.031430.106385568.davem@davemloft.net> References: <1255337746.3204.23.camel@fz.local> <20091012.031430.106385568.davem@davemloft.net> Date: Mon, 12 Oct 2009 18:31:12 +0800 Message-ID: From: Bean To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by monty-python.gnu.org: Error: [-] ERROR: /var/run/p0f.sock: Connection refused 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: Mon, 12 Oct 2009 10:31:19 -0000 On Mon, Oct 12, 2009 at 6:14 PM, David Miller wrote: > From: Bean > Date: Mon, 12 Oct 2009 17:58:42 +0800 > >> Try my branch, it includes the libgcc functions in grub instead of >> rely on external library. It builds and run properly for >> powerpc-ieee1275 last time I check. > > 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. -- Bean gitgrub home: http://github.com/grub/grub/ my fork page: http://github.com/bean123/grub/