mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-26 06:08:20 +00:00
2008-06-05 Joel Sherrill <joel.sherrill@OARcorp.com>
* libcsupport/src/newlibc_exit.c: Only run the fini section on exit if the target toolset uses init/fini sections.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2008-06-05 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* libcsupport/src/newlibc_exit.c: Only run the fini section on exit if
|
||||
the target toolset uses init/fini sections.
|
||||
|
||||
2008-06-05 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* itron/include/rtems/itron/task.h, itron/src/task.c: ITRON currently
|
||||
|
||||
@@ -127,8 +127,14 @@ void libc_wrapup(void)
|
||||
|
||||
void EXIT_SYMBOL(int status)
|
||||
{
|
||||
extern void _fini( void );
|
||||
_fini();
|
||||
/*
|
||||
* If the toolset uses init/fini sections, then we need to
|
||||
* run the global destructors now.
|
||||
*/
|
||||
#if defined(__USE_INIT_FINI__)
|
||||
extern void _fini( void );
|
||||
_fini();
|
||||
#endif
|
||||
|
||||
/*
|
||||
* We need to do the exit processing on the global reentrancy structure.
|
||||
|
||||
Reference in New Issue
Block a user