From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5759 invoked by alias); 21 Jan 2009 20:30:01 -0000 Received: (qmail 5748 invoked by uid 22791); 21 Jan 2009 20:30:00 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_63,SPF_PASS X-Spam-Check-By: sourceware.org Received: from hagrid.ecoscentric.com (HELO mail.ecoscentric.com) (212.13.207.197) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 21 Jan 2009 20:29:57 +0000 Received: from localhost (hagrid.ecoscentric.com [127.0.0.1]) by mail.ecoscentric.com (Postfix) with ESMTP id 1935D3B40071; Wed, 21 Jan 2009 20:29:55 +0000 (GMT) Received: from mail.ecoscentric.com ([127.0.0.1]) by localhost (hagrid.ecoscentric.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IWQXs4f9VuPi; Wed, 21 Jan 2009 20:29:53 +0000 (GMT) Message-ID: <497785C0.50004@eCosCentric.com> Date: Wed, 21 Jan 2009 20:30:00 -0000 From: Jonathan Larmour User-Agent: Thunderbird 1.5.0.12 (X11/20070530) MIME-Version: 1.0 To: John Dallaway CC: ecos-maintainers@ecos.sourceware.org Subject: Re: Building RedBoot for SH3 targets with new toolchain References: <49777C14.8070201@dallaway.org.uk> In-Reply-To: <49777C14.8070201@dallaway.org.uk> OpenPGP: id=A5FB74E6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact ecos-maintainers-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-maintainers-owner@ecos.sourceware.org X-SW-Source: 2009-01/txt/msg00012.txt.bz2 John Dallaway wrote: > Hi Jifl > > There is a problem linking RedBoot for all SH3 targets with the new > sh-elf toolchain based on GCC 4.3.2. For example, linking RAM RedBoot > for sh7708: > >> /var/local/releng/build/redboot/install/lib/extras.o: In function `fis_write': [snip] > Building RedBoot for target sh4_202_md (an SH4 target) works fine with > the new tools and building RedBoot for SH3 targets works fine with the > old tools. > > Any idea what's going wrong here? gcc's lib1funcs.asm has that function surrounded by: #elif defined (__SH3__) || defined (__SH3E__) || defined (__SH4__) || defined (__SH4_SINGLE__) || defined (__SH4_SINGLE_ONLY__) || defined (__SH4_NOFPU__) /* This code used shld, thus is not suitable for SH1 / SH2. */ So it's not built in an sh2 multilib. Therefore we will need to build an sh3 multilib. Bummer. It needs to be added at line 2286 of config.gcc. I'm rebuilding for linux now, so you can try it out when that's done and I've packaged it up, but you may want to add this to any todo list you've got to be sure it's tracked. If that build is ok, I'll have the grief of trying to rebuild the cygwin version. Jifl -- eCosCentric Limited http://www.eCosCentric.com/ The eCos experts Barnwell House, Barnwell Drive, Cambridge, UK. Tel: +44 1223 245571 Registered in England and Wales: Reg No 4422071. ------["Si fractum non sit, noli id reficere"]------ Opinions==mine