Mercurial > ecos
changeset 2427:9b5bc3c72ac4
* src/cstartup.cxx: Change the INIT priority of
cyg_libc_startup_obj so that it is always called after the thread
has been constructed. Reported by taiyun@sunnorth.com.cn
| author | asl |
|---|---|
| date | Tue, 11 Sep 2007 16:50:54 +0000 |
| parents | e71eca63cb8b |
| children | c4195ff791d2 |
| files | packages/language/c/libc/startup/current/ChangeLog packages/language/c/libc/startup/current/src/cstartup.cxx |
| diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/language/c/libc/startup/current/ChangeLog +++ b/packages/language/c/libc/startup/current/ChangeLog @@ -1,3 +1,9 @@ +2007-09-11 Andrew Lunn <andrew.lunn@ascom.ch> + + * src/cstartup.cxx: Change the INIT priority of + cyg_libc_startup_obj so that it is always called after the thread + has been constructed. Reported by taiyun@sunnorth.com.cn + 2007-07-02 Gary Thomas <gary@mlbassoc.com> * cdl/startup.cdl: Add (char *) casts to make GCC/4.2.x happy.
--- a/packages/language/c/libc/startup/current/src/cstartup.cxx +++ b/packages/language/c/libc/startup/current/src/cstartup.cxx @@ -104,7 +104,7 @@ public: }; static cyg_libc_startup_dummy_constructor_class cyg_libc_startup_obj - CYGBLD_ATTRIB_INIT_PRI(CYG_INIT_LIBC); + CYGBLD_ATTRIB_INIT_AFTER(CYG_INIT_LIBC); #elif defined( CYGSEM_LIBC_STARTUP_MAIN_INITCONTEXT )
