[rt0] Enable SUPPORT_CPP_GLOBAL_CONSTRUCTORS

This commit is contained in:
Léa Saviot
2018-08-30 10:17:46 +02:00
parent 03fd17b97d
commit 4eb1df81f6

View File

@@ -55,7 +55,7 @@ void start() {
* between _init_array_start and _init_array_end. So to initialize all C++
* static objects we just have to iterate between theses two addresses and
* call the pointed function. */
#define SUPPORT_CPP_GLOBAL_CONSTRUCTORS 0
#define SUPPORT_CPP_GLOBAL_CONSTRUCTORS 1
#if SUPPORT_CPP_GLOBAL_CONSTRUCTORS
for (cxx_constructor * c = &_init_array_start; c<&_init_array_end; c++) {
(*c)();