diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-10-03 19:42:30 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-10-03 19:42:30 +0000 |
commit | 5365e6066f5778f19c6cf06dda3026cc3363fec9 (patch) | |
tree | 2b07e626b37f897cecae13663ecace6e80d97d0a /cpukit/libcsupport/src/newlibc_exit.c | |
parent | 2008-10-03 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-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.c | 10 |
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 /* |