From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MxI6h-00040u-BU for mharc-grub-devel@gnu.org; Mon, 12 Oct 2009 06:26:23 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MxI6e-0003zP-2l for grub-devel@gnu.org; Mon, 12 Oct 2009 06:26:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MxI6Z-0003xQ-0J for grub-devel@gnu.org; Mon, 12 Oct 2009 06:26:19 -0400 Received: from [199.232.76.173] (port=48695 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MxI6Y-0003xF-G6 for grub-devel@gnu.org; Mon, 12 Oct 2009 06:26:14 -0400 Received: from mail-ew0-f228.google.com ([209.85.219.228]:46609) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MxI6U-0000CW-Q0; Mon, 12 Oct 2009 06:26:11 -0400 Received: by ewy28 with SMTP id 28so15977832ewy.42 for ; Mon, 12 Oct 2009 03:26:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=5sVnVsxQHUeR1/SoomRe+jOOgKym8IVphYV5mjuyZnE=; b=ALOa7rThOjCCq8JYZvBRRYNH6sZqUHLtWFefHXr7Cxs6l/5tf103oV8bBwf699HNix lJHRku8VfkuKxF9z3wsyZnWN3csIa3UcQ/6v/Qausdqd8623lnPP+UcfRK8lyrm7YJXE NBXN3ccqkZR8RRHHoOAmRPNJZ3QbcoAGzc2jE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=WfFOBKJkwKgkq+noQDuHyBuVtgIm8o/jqQRyp2oLcAOd3W4x7FBMbT3vxvEj3kLmuD qUKMLGmTLrTcBonizpRWNF6NmCDORQsPm40QF/zmJCwPcxnDXWLPU4nuQBkOC4ZUJO2k +ZB18wB88kIK4g6e6Y7lucODFrUAURO2nTD1A= Received: by 10.210.96.23 with SMTP id t23mr3854978ebb.11.1255343168204; Mon, 12 Oct 2009 03:26:08 -0700 (PDT) Received: from debian.bg45.phnet (gprs01.swisscom-mobile.ch [193.247.250.1]) by mx.google.com with ESMTPS id 7sm981110eyb.32.2009.10.12.03.26.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 12 Oct 2009 03:26:07 -0700 (PDT) Message-ID: <4AD3043C.10204@gmail.com> Date: Mon, 12 Oct 2009 12:26:04 +0200 From: Vladimir 'phcoder' Serbinenko User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090701) MIME-Version: 1.0 To: The development of GRUB 2 References: <1255337746.3204.23.camel@fz.local> <20091012.031430.106385568.davem@davemloft.net> In-Reply-To: <20091012.031430.106385568.davem@davemloft.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Cc: proski@gnu.org, bean123ch@gmail.com, David Miller 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:26:20 -0000 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. > > > It was removed as a part of following commit 2009-06-10 Pavel Roskin * configure.ac: Use -nostdlib when probing for the target. It should not be required to have libc for the target. * configure.ac: Remove checks for __bswapsi2 and __bswapdi2, they fail without libc headers for the target. * include/grub/powerpc/libgcc.h: Use weak attribute for all exports. * include/grub/sparc64/libgcc.h: Likewise. Don't use preprocessor conditionals. Do you think we should just revert it? > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > > -- Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git