newlib: Rename exit to _exit

This patch renames the 'exit' function from newlib/libc-hooks.c to
'_exit' since this is the correct name of the newlib system call.

This patch fixes some linking errors that occur when an applications
uses abort() or assert().

Change-Id: I593e5ec5dc0f84dbbebe4aceb38703256e140914
Signed-off-by: Andre Guedes <andre.guedes@intel.com>
This commit is contained in:
Andre Guedes 2016-01-15 19:29:21 -02:00 committed by Anas Nashif
commit aa47bd8d6c

View file

@ -106,7 +106,7 @@ int _fstat(int file, struct stat *st)
}
void exit(int status)
void _exit(int status)
{
write(1, "exit", 4);
while (1) {