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 | |
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')
-rw-r--r-- | cpukit/ChangeLog | 6 | ||||
-rw-r--r-- | cpukit/configure.ac | 1 | ||||
-rw-r--r-- | cpukit/libcsupport/src/newlibc_exit.c | 10 |
3 files changed, 15 insertions, 2 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index eb6efcfbef..7e7bae04a3 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,9 @@ +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 _. + 2008-10-02 Joel Sherrill <joel.sherrill@oarcorp.com> * score/cpu/Makefile.am: Add new M32R port. It is just a beginning but diff --git a/cpukit/configure.ac b/cpukit/configure.ac index d5306797c5..227657add0 100644 --- a/cpukit/configure.ac +++ b/cpukit/configure.ac @@ -334,6 +334,7 @@ score/cpu/h8300/Makefile score/cpu/i386/Makefile score/cpu/m68k/Makefile score/cpu/m32c/Makefile +score/cpu/m32r/Makefile score/cpu/mips/Makefile score/cpu/nios2/Makefile score/cpu/powerpc/Makefile 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 /* |