abort() is an important runtime function, oftentimes used to signal abnormal execution conditions in generic applications. Worse, they may be used under such circumstances in e.g. compiler support libraries, in which case lack of implementation of this function will lead to link error. Fixes: #29541 Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
15 lines
183 B
C
15 lines
183 B
C
/*
|
|
* Copyright (c) 2020 Linaro Limited
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <stdlib.h>
|
|
#include <zephyr.h>
|
|
|
|
void abort(void)
|
|
{
|
|
printk("abort()\n");
|
|
k_panic();
|
|
}
|