mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-09 08:37:58 +08: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 parent
d9857c8a8c
commit
393a861dbd
2 files changed
+13
-2
No files matched your search
@@ -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