Remove getenv calls before libc startup
vtikoo opened this issue · 0 comments
vtikoo commented
lkl_start_init is using getenv fairly early in the initialization sequence. Which is requiring an early call to __init_libc
.
According to @davidchisnall -
When we parse the environment variables from the config file, we should pull the SGX-LKL ones into globals and skip them, then we wouldn't need that extra complexity here.
From - lsds/sgx-lkl-musl#18 (comment)