cpp_init.c 483 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright (c) 2021 Synopsys, Inc.
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Author: Evgeniy Paltsev
  7. */
  8. #ifdef CONFIG_CPP_STATIC_INIT_GNU
  9. void __do_global_ctors_aux(void);
  10. void __do_init_array_aux(void);
  11. void z_cpp_init_static(void)
  12. {
  13. __do_global_ctors_aux();
  14. __do_init_array_aux();
  15. }
  16. #else
  17. #ifdef __CCAC__
  18. void __do_global_ctors_aux(void);
  19. void z_cpp_init_static(void)
  20. {
  21. __do_global_ctors_aux();
  22. }
  23. #endif /* __CCAC__ */
  24. #endif /* CONFIG_CPP_STATIC_INIT_GNU */