summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/newlibc_exit.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-10-03 19:42:30 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-10-03 19:42:30 +0000
commit5365e6066f5778f19c6cf06dda3026cc3363fec9 (patch)
tree2b07e626b37f897cecae13663ecace6e80d97d0a /cpukit/libcsupport/src/newlibc_exit.c
parent2008-10-03 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-5365e6066f5778f19c6cf06dda3026cc3363fec9.tar.bz2
2008-10-03 Joel Sherrill <joel.sherrill@oarcorp.com>
* configure.ac: Add m32r. * libcsupport/src/newlibc_exit.c: For some odd reason, the fini symbol for the m32r in C needs an extra leading _.
Diffstat (limited to 'cpukit/libcsupport/src/newlibc_exit.c')
-rw-r--r--cpukit/libcsupport/src/newlibc_exit.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/cpukit/libcsupport/src/newlibc_exit.c b/cpukit/libcsupport/src/newlibc_exit.c
index f7f8a6e481..f85ec42719 100644
--- a/cpukit/libcsupport/src/newlibc_exit.c
+++ b/cpukit/libcsupport/src/newlibc_exit.c
@@ -123,7 +123,13 @@ void libc_wrapup(void)
#define EXIT_SYMBOL _exit
#if defined(__USE_INIT_FINI__)
- extern void _fini( void );
+ #if defined(__m32r__)
+ #define FINI_SYMBOL __fini
+ #else
+ #define FINI_SYMBOL _fini
+ #endif
+
+ extern void FINI_SYMBOL( void );
#endif
#else
#define EXIT_SYMBOL exit
@@ -136,7 +142,7 @@ void EXIT_SYMBOL(int status)
* run the global destructors now.
*/
#if defined(__USE_INIT_FINI__)
- _fini();
+ FINI_SYMBOL();
#endif
/*