From 7d68ad6bd412ca3e8b6f65b5598cdc92dae466b9 Mon Sep 17 00:00:00 2001 From: ThisALV Date: Sun, 17 Dec 2023 15:15:33 +0100 Subject: [PATCH] fix: avoid segfault at static dtors (#638) --- nx/source/runtime/init.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/nx/source/runtime/init.c b/nx/source/runtime/init.c index f76b1466f..80812a8a4 100644 --- a/nx/source/runtime/init.c +++ b/nx/source/runtime/init.c @@ -189,10 +189,6 @@ void __attribute__((weak)) __libnx_init(void* ctx, Handle main_thread, void* sav void __attribute__((weak)) NX_NORETURN __libnx_exit(int rc) { - // Call destructors. - void __libc_fini_array(void); - __libc_fini_array(); - // Clean up services. __appExit();