From 9a3cbcd2ef2105ebea0a1c1ad221472d084f3aa7 Mon Sep 17 00:00:00 2001 From: James Benton Date: Fri, 25 May 2018 21:20:39 +0100 Subject: [PATCH] wutnewlib: Call __fini for global dtors. main calls __eabi which calls __init, but main doesn't call __fini? y u do this --- libraries/wutnewlib/crt0.s | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/wutnewlib/crt0.s b/libraries/wutnewlib/crt0.s index cb78f14..e5def17 100644 --- a/libraries/wutnewlib/crt0.s +++ b/libraries/wutnewlib/crt0.s @@ -11,5 +11,6 @@ _start: lwz 3, 0(1) lwz 4, 4(1) bl main + bl __fini addi 1, 1, 0x8 b exit