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

@ -88,13 +88,6 @@ SECTIONS {
#include <linker/kobject-text.ld>
} GROUP_LINK_IN(ROMABLE_REGION)
#if defined(CONFIG_CPLUSPLUS) && !defined(CONFIG_CPP_STATIC_INIT_GNU) && defined(__MWDT_LINKER_CMD__)
/* .init section with code iterating over static objects constructors */
SECTION_PROLOGUE(.init,,ALIGN(4)) {
KEEP(*(.init*))
} GROUP_LINK_IN(ROMABLE_REGION)
#endif /* CONFIG_CPLUSPLUS && !CONFIG_CPP_STATIC_INIT_GNU && __MWDT_LINKER_CMD__ */
__text_region_end = .;
__rodata_region_start = .;