mirror of https://github.com/ARMmbed/mbed-os.git
Disable registration of __libc_fini_array in the init process.
With this call, destructors are not registered for execution atexit.pull/2745/head
parent
b67d863c0a
commit
ce23ec3120
|
@ -798,7 +798,6 @@ void pre_main(void) {
|
||||||
singleton_mutex_id = osMutexCreate(osMutex(singleton_mutex));
|
singleton_mutex_id = osMutexCreate(osMutex(singleton_mutex));
|
||||||
malloc_mutex_id = osMutexCreate(osMutex(malloc_mutex));
|
malloc_mutex_id = osMutexCreate(osMutex(malloc_mutex));
|
||||||
env_mutex_id = osMutexCreate(osMutex(env_mutex));
|
env_mutex_id = osMutexCreate(osMutex(env_mutex));
|
||||||
atexit(__libc_fini_array);
|
|
||||||
__libc_init_array();
|
__libc_init_array();
|
||||||
main(0, NULL);
|
main(0, NULL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue