Skip to content

Commit 9f948a8

Browse files
evgeniy-paltsevnashif
authored andcommitted
ARC: MWDT: libc: add _exit support
Default weak _exit implementation from ARC MWDT libs calls _exit_halt from startup libs. As we are going to get rid of startup libs usage let's implement _exit stub. Signed-off-by: Eugeniy Paltsev <[email protected]> Signed-off-by: Evgeniy Paltsev <[email protected]>
1 parent 6c37258 commit 9f948a8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/libc/arcmwdt/libc-hooks.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,9 @@ int *___errno(void)
7676
{
7777
return z_errno();
7878
}
79+
80+
__weak void _exit(int status)
81+
{
82+
while (1) {
83+
}
84+
}

0 commit comments

Comments
 (0)