From 37228a095d8154d90ec15b244941b27d9a852920 Mon Sep 17 00:00:00 2001 From: James Benton Date: Sat, 26 May 2018 18:18:16 +0100 Subject: [PATCH] Disable call to __fini as it breaks stuff. --- libraries/wutnewlib/crt0.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/wutnewlib/crt0.s b/libraries/wutnewlib/crt0.s index e5def17..01fd202 100644 --- a/libraries/wutnewlib/crt0.s +++ b/libraries/wutnewlib/crt0.s @@ -1,6 +1,5 @@ .extern main .extern exit -.extern __init_wut_newlibc .global _start _start: @@ -11,6 +10,7 @@ _start: lwz 3, 0(1) lwz 4, 4(1) bl main - bl __fini + # Calling __fini is leading to crashes! + # bl __fini addi 1, 1, 0x8 b exit