[C++] Add _init/_fini routines for GCC

This commit is contained in:
Bernard Xiong 2016-06-28 08:24:26 +00:00
parent bb9bb4ea79
commit 47f0798079
1 changed files with 9 additions and 0 deletions

View File

@ -21,6 +21,7 @@
* Date Author Notes
* 2014-12-03 Bernard Add copyright header.
* 2014-12-29 Bernard Add cplusplus initialization for ARMCC.
* 2016-06-28 Bernard Add _init/_fini routines for GCC.
*/
#include <rtthread.h>
@ -32,6 +33,14 @@ void $Sub$$__cpp_initialize__aeabi_(void)
{
/* empty */
}
#elif defined(__GNUC__)
void _init()
{
}
void _fini()
{
}
#endif
int cplusplus_system_init(void)