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 _.
This commit is contained in:
Joel Sherrill
2008-10-03 19:42:30 +00:00
parent ba3f9cf6ba
commit 5365e6066f
3 changed files with 15 additions and 2 deletions
+6
View File
@@ -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
+1
View File
@@ -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
+8 -2
View File
@@ -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
/*