提交 d4a5edf0 编写于 作者: mysterywolf's avatar mysterywolf

[libc]重构_libc_init_array 防止gcc下芯片无法启动

上级 f4412c3a
......@@ -64,3 +64,9 @@ void * _sbrk_r(struct _reent *ptr, ptrdiff_t incr)
return RT_NULL;
}
#endif /*RT_USING_HEAP*/
void __libc_init_array(void)
{
/* we not use __libc init_aray to initialize C++ objects */
/* __libc_init_array is ARM code, not Thumb; it will cause hardfault. */
}
......@@ -303,6 +303,7 @@ void _system(const char *s)
void __libc_init_array(void)
{
/* we not use __libc init_aray to initialize C++ objects */
/* __libc_init_array is ARM code, not Thumb; it will cause hardfault. */
}
mode_t umask(mode_t mask)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册