Imre Kis | 2cfb2b4 | 2021-12-15 19:15:42 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: BSD-3-Clause |
2 | /* | ||||
3 | * Copyright (c) 2021-2022, Arm Limited and Contributors. All rights reserved. | ||||
4 | */ | ||||
5 | |||||
6 | #include "libc_init.h" | ||||
7 | |||||
8 | /* Comes from libc */ | ||||
9 | void __libc_init_array(void); | ||||
10 | |||||
11 | void _init(void) | ||||
12 | { | ||||
13 | /* Dummy */ | ||||
14 | } | ||||
15 | |||||
16 | void libc_init(void) | ||||
17 | { | ||||
18 | /* Initializing global variables, calling constructors */ | ||||
19 | __libc_init_array(); | ||||
20 | } |