This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
Re: uSTL hello world (linker issue fix)
- From: John Dallaway <john at dallaway dot org dot uk>
- To: Uwe Kindler <uwe_kindler at web dot de>
- Cc: ecos-patches at sourceware dot org
- Date: Tue, 06 Oct 2009 13:27:49 +0100
- Subject: Re: uSTL hello world (linker issue fix)
- References: <4ACB0A4E.9020006@web.de>
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