From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MxHB3-0000vE-3Q for mharc-grub-devel@gnu.org; Mon, 12 Oct 2009 05:26:49 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MxHB1-0000u4-AK for grub-devel@gnu.org; Mon, 12 Oct 2009 05:26:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MxHAw-0000qW-6Y for grub-devel@gnu.org; Mon, 12 Oct 2009 05:26:46 -0400 Received: from [199.232.76.173] (port=44112 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MxHAw-0000qQ-1i for grub-devel@gnu.org; Mon, 12 Oct 2009 05:26:42 -0400 Received: from fg-out-1718.google.com ([72.14.220.155]:49266) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MxHAv-00065p-Lp for grub-devel@gnu.org; Mon, 12 Oct 2009 05:26:41 -0400 Received: by fg-out-1718.google.com with SMTP id 16so309407fgg.12 for ; Mon, 12 Oct 2009 02:26:40 -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; bh=JNfYe8SLgD5YHtI7ehUmOWXYsW7+GUhovdfe6YsnTX4=; b=SOXTVrVKFtZb2TAguICBwepKFuWwMNw1YLvu5X/5pTcLhHJSalL42xz1wibsJHjpx4 zWIHPs2kHmJ/ZqGi2Dba00sjugCWsCCRFPUbrBHmpCv20jKcFWqsYqfEtBadWtORr3DW Bv3jRgunLI0GdIPvUpB7V1ODr5FmyJlNT4FTs= 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; b=gc1KT91xBorPBCVfUNtM9Lw+3eQaQXLFkaw3PGtCekN3vOMOvorpHg27M52zZzBR+h +P1KgBYnsJjLlEDYadpfRbBX2aq8TOWVUE/b6+a/zICODXDSJFfTSGN5aRUJlTRgHH5z NPvM1pieb0ozZ4aL70mUGBBBIfQsFl5tgbFe4= Received: by 10.86.251.6 with SMTP id y6mr5100697fgh.24.1255339600031; Mon, 12 Oct 2009 02:26:40 -0700 (PDT) Received: from debian.bg45.phnet (hpx-public-dock-62-dhcp.ethz.ch [82.130.83.62]) by mx.google.com with ESMTPS id d6sm8604355fga.15.2009.10.12.02.26.38 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 12 Oct 2009 02:26:39 -0700 (PDT) Message-ID: <4AD2F64E.5020403@gmail.com> Date: Mon, 12 Oct 2009 11:26:38 +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> In-Reply-To: <1255337746.3204.23.camel@fz.local> Content-Type: multipart/mixed; boundary="------------080501060901060307070200" X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Cc: 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 09:26:47 -0000 This is a multi-part message in MIME format. --------------080501060901060307070200 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Felix Zielcke wrote: > David are you still there? > And also anyone who has access to a powerpc machine (and experience)? > > In Debian we the problem that the `__ashldi3' and `__bswapsi2' symbols > can't be found in the grub-ieee1275 build on powerpc and also sparc. > > I've come across the same problem when porting grub2 to MIPS. The solution is the attached patch. I'll test it today on my imac g3 > Jordi already noticed this with the 1.96+20090721-4 IIRC and now other > people noticed this with 1.97~beta3 > AFAICS there wasn't anything relevant changed on our side, so seems to > be a gcc issue. > > `__ashldi3' is listed in include/grub/powerpc/libgcc.h and `__bswapsi2' > in the sparc64 header. > But something has now changed that this isn't enough anymore, at least > in Debian. > > We used gcc 4.3.3 at the time Jordi noticed this and now switched to > gcc-4.4.1. > > And David we still have this sparc bug open, which I forwared to > grub-devel: > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=538030 > > > -- Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git --------------080501060901060307070200 Content-Type: text/x-patch; name="ppcfix.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="ppcfix.diff" diff --git a/include/grub/powerpc/libgcc.h b/include/grub/powerpc/libgcc.h index ea4b073..0ff8964 100644 --- a/include/grub/powerpc/libgcc.h +++ b/include/grub/powerpc/libgcc.h @@ -16,9 +16,9 @@ * along with GRUB. If not, see . */ -void EXPORT_FUNC (memset) (void) __attribute__ ((weak)); -void EXPORT_FUNC (__ashldi3) (void) __attribute__ ((weak)); -void EXPORT_FUNC (__ashrdi3) (void) __attribute__ ((weak)); -void EXPORT_FUNC (__lshrdi3) (void) __attribute__ ((weak)); -void EXPORT_FUNC (__trampoline_setup) (void) __attribute__ ((weak)); -void EXPORT_FUNC (__ucmpdi2) (void) __attribute__ ((weak)); +void EXPORT_FUNC (memset) (void); +void EXPORT_FUNC (__ashldi3) (void); +void EXPORT_FUNC (__ashrdi3) (void); +void EXPORT_FUNC (__lshrdi3) (void); +void EXPORT_FUNC (__trampoline_setup) (void); +void EXPORT_FUNC (__ucmpdi2) (void); diff --git a/include/grub/sparc64/libgcc.h b/include/grub/sparc64/libgcc.h index 5d18c5c..6a3d804 100644 --- a/include/grub/sparc64/libgcc.h +++ b/include/grub/sparc64/libgcc.h @@ -21,7 +21,7 @@ void EXPORT_FUNC (memset) (void); typedef int SItype __attribute__ ((mode (SI))); -SItype EXPORT_FUNC (__bswapsi2) (SItype) __attribute__ ((weak)); +SItype EXPORT_FUNC (__bswapsi2) (SItype); typedef int DItype __attribute__ ((mode (DI))); -DItype EXPORT_FUNC (__bswapdi2) (DItype) __attribute__ ((weak)); +DItype EXPORT_FUNC (__bswapdi2) (DItype); --------------080501060901060307070200--