ARC: MWDT: get rid of MWDT startup libs
__cxa_atexit implementation provided by MWDT startup code calls malloc which isn't supported right now. As we don't support calling static destructors in Zephyr let's provide our own __cxa_atexit stub and get rid of MWDT startup libs entirely. Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com> Signed-off-by: Evgeniy Paltsev <PaltsevEvgeniy@gmail.com>
This commit is contained in:
parent
9f948a84f7
commit
60fdec616b
6 changed files with 34 additions and 14 deletions
|
@ -20,11 +20,11 @@ void z_cpp_init_static(void)
|
|||
#else
|
||||
|
||||
#ifdef __CCAC__
|
||||
void _init(void);
|
||||
void __do_global_ctors_aux(void);
|
||||
|
||||
void z_cpp_init_static(void)
|
||||
{
|
||||
_init();
|
||||
__do_global_ctors_aux();
|
||||
}
|
||||
#endif /* __CCAC__ */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue