From a6eb320294f94b03fbab00167378282468976de4 Mon Sep 17 00:00:00 2001 From: Alistair Date: Thu, 15 Aug 2024 18:34:26 +0100 Subject: [PATCH] fix: remove hack for uninitialised global data, the loader now correctly initialises it --- newlib/libc/sys/hermit/crt0.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/newlib/libc/sys/hermit/crt0.c b/newlib/libc/sys/hermit/crt0.c index c37b60d7b..067201e8b 100644 --- a/newlib/libc/sys/hermit/crt0.c +++ b/newlib/libc/sys/hermit/crt0.c @@ -90,12 +90,6 @@ void runtime_entry(int argc, char** argv, char** env) { int ret; - // For some reason, the newlib symbol for _impure_ptr is NULL. - _impure_ptr = &_impure_data; - _REENT_INIT_PTR(_impure_ptr); - __sglue = (struct _glue){ NULL, 3, &__sf[0] }; - - /* call init function */ __libc_init_array();