From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10599 invoked by alias); 6 Oct 2009 12:28:04 -0000 Received: (qmail 10589 invoked by uid 22791); 6 Oct 2009 12:28:03 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mtaout01-winn.ispmail.ntl.com (HELO mtaout01-winn.ispmail.ntl.com) (81.103.221.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 06 Oct 2009 12:27:54 +0000 Received: from aamtaout04-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout01-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20091006122752.BBCI17029.mtaout01-winn.ispmail.ntl.com@aamtaout04-winn.ispmail.ntl.com>; Tue, 6 Oct 2009 13:27:52 +0100 Received: from cog.dallaway.org.uk ([213.106.93.52]) by aamtaout04-winn.ispmail.ntl.com (InterMail vG.2.02.00.01 201-2161-120-102-20060912) with ESMTP id <20091006122752.PNYD22934.aamtaout04-winn.ispmail.ntl.com@cog.dallaway.org.uk>; Tue, 6 Oct 2009 13:27:52 +0100 Received: from cog.dallaway.org.uk (cog.dallaway.org.uk [127.0.0.1]) by cog.dallaway.org.uk (8.13.8/8.13.8) with ESMTP id n96CRn69010008; Tue, 6 Oct 2009 13:27:49 +0100 Message-ID: <4ACB37C5.4030507@dallaway.org.uk> Date: Tue, 06 Oct 2009 12:28:00 -0000 From: John Dallaway User-Agent: Thunderbird 2.0.0.22 (X11/20090625) MIME-Version: 1.0 To: Uwe Kindler CC: ecos-patches@sourceware.org Subject: Re: uSTL hello world (linker issue fix) References: <4ACB0A4E.9020006@web.de> In-Reply-To: <4ACB0A4E.9020006@web.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact ecos-patches-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-patches-owner@ecos.sourceware.org X-SW-Source: 2009-10/txt/msg00005.txt.bz2 Hi Uwe Uwe Kindler wrote: > according to the discussion on the ecos-discuss mailinglist > (http://ecos.sourceware.org/ml/ecos-discuss/2009-09/msg00259.html) I > created a patch that fixes the linker issue of the uSTL hello world > example. > > I tested the solution with differend configurations (-O0 and -O2) and it > worked all the time. Thank you for the patch. I have verified that the new definition of CYG_REFERENCE_OBJECT() is compatible with the older eCos toolchain (GCC 3.2.1) so I will check this in. >From your description, it would appear that moving the lines: CYG_REFERENCE_OBJECT(stdin); CYG_REFERENCE_OBJECT(stdout); CYG_REFERENCE_OBJECT(stderr); from open() to cyg_fd_init() is not now necessary for correct behaviour of the minimal uSTL hello world application. However, it may or may not be sensible to make this change anyway. I will leave this to Jifl/Nick. John Dallaway