Skip to content

Commit a6eb320

Browse files
committed
fix: remove hack for uninitialised global data, the loader now correctly initialises it
1 parent 986404a commit a6eb320

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

newlib/libc/sys/hermit/crt0.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,6 @@ void runtime_entry(int argc, char** argv, char** env)
9090
{
9191
int ret;
9292

93-
// For some reason, the newlib symbol for _impure_ptr is NULL.
94-
_impure_ptr = &_impure_data;
95-
_REENT_INIT_PTR(_impure_ptr);
96-
__sglue = (struct _glue){ NULL, 3, &__sf[0] };
97-
98-
9993
/* call init function */
10094
__libc_init_array();
10195

0 commit comments

Comments
 (0)