[ECOS] A problem about constructor sequence

Andrew Lunn andrew@lunn.ch
Tue Sep 11 16:48:00 GMT 2007


On Mon, Sep 10, 2007 at 05:14:13PM +0800, taiyun@sunnorth.com.cn wrote:
> 
> Dear all:
> 
> I want to discuss something about eCos kernel, BUT I am not sure whether my
> opinion is correct or someone has reported this problem before.
> I think there is a problem with global constructor sequence. There are two
> global instances, not only they have the same initialized priority but also
> they have some relationship between each other. They are:
> 
> Cyg_Thread cyg_libc_main_thread CYGBLD_ATTRIB_INIT_PRI(CYG_INIT_LIBC) = ...
> AND
> static cyg_libc_startup_dummy_constructor_class cyg_libc_startup_obj
>                                   CYGBLD_ATTRIB_INIT_PRI(CYG_INIT_LIBC);

Here is the patch i have committed to CVS.

     Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: startup.diff
Type: text/x-diff
Size: 1481 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/ecos-discuss/attachments/20070911/c8ce2f51/attachment.bin>
-------------- next part --------------
-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


More information about the Ecos-discuss mailing list