LibC: implement and call __cxa_finalize() on exit()

This allows global destructors to be actually called
This commit is contained in:
2023-10-30 11:10:08 +02:00
parent 0b5fcb3f88
commit 7c6832cee4
3 changed files with 39 additions and 24 deletions

10
libc/include/icxxabi.h Normal file
View File

@@ -0,0 +1,10 @@
#pragma once
#include <sys/cdefs.h>
__BEGIN_DECLS
int __cxa_atexit(void (*func)(void*), void* data, void* dso_handle);
void __cxa_finalize(void* func);
__END_DECLS