xref: /optee_os/lib/libutils/isoc/stack_check.c (revision c211d0a49ecf2673dfb90f29fa31840eda12a18d)
11bb92983SJerome Forissier // SPDX-License-Identifier: BSD-2-Clause
2b0104773SPascal Brand /*
3b0104773SPascal Brand  * Copyright (c) 2014, STMicroelectronics International N.V.
4b0104773SPascal Brand  */
5*c211d0a4SVolodymyr Babchuk #include <compiler.h>
6*c211d0a4SVolodymyr Babchuk void *__stack_chk_guard __nex_data = (void *)0x00000aff;
7b0104773SPascal Brand 
8b0104773SPascal Brand void __attribute__((noreturn)) __stack_chk_fail(void);
9b0104773SPascal Brand 
10b0104773SPascal Brand void __stack_chk_fail(void)
11b0104773SPascal Brand {
12b0104773SPascal Brand 	while (1)
13b0104773SPascal Brand 		;
14b0104773SPascal Brand }
15b0104773SPascal Brand 
16