[C++] Add _init/_fini routines for GCC
This commit is contained in:
parent
bb9bb4ea79
commit
47f0798079
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue