2021-04-26 21:15:49 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2021 Synopsys, Inc.
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Author: Evgeniy Paltsev
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef CONFIG_CPP_STATIC_INIT_GNU
|
|
|
|
|
|
|
|
void __do_global_ctors_aux(void);
|
|
|
|
void __do_init_array_aux(void);
|
|
|
|
|
|
|
|
void z_cpp_init_static(void)
|
|
|
|
{
|
|
|
|
__do_global_ctors_aux();
|
|
|
|
__do_init_array_aux();
|
|
|
|
}
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#ifdef __CCAC__
|
2021-08-31 03:40:45 +08:00
|
|
|
void __do_global_ctors_aux(void);
|
2021-04-26 21:15:49 +08:00
|
|
|
|
|
|
|
void z_cpp_init_static(void)
|
|
|
|
{
|
2021-08-31 03:40:45 +08:00
|
|
|
__do_global_ctors_aux();
|
2021-04-26 21:15:49 +08:00
|
|
|
}
|
|
|
|
#endif /* __CCAC__ */
|
|
|
|
|
|
|
|
#endif /* CONFIG_CPP_STATIC_INIT_GNU */
|