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:
Evgeniy Paltsev 2021-08-30 22:40:45 +03:00 committed by Anas Nashif
commit 60fdec616b
6 changed files with 34 additions and 14 deletions

View file

@ -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__ */