Skip to content

Commit

Permalink
fix: remove hack for uninitialised global data, the loader now correc…
Browse files Browse the repository at this point in the history
…tly initialises it
  • Loading branch information
johnyob committed Aug 15, 2024
1 parent 986404a commit a6eb320
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions newlib/libc/sys/hermit/crt0.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit a6eb320

Please sign in to comment.