-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Split lkl_start_init
into 2 stages
#432
Comments
@davidchisnall How do I link this to the relayering project? |
I'd like to replace all libc calls prior to kernel entry. For example, Longer term, musl and glibc ports will live in a separate filesystem bundled with SGX-LKL and be loaded depending on the header in the executable. At that point, having libc sybmols referenced from the kernel component definitely won't work. |
Short term, and more realistically, I think we could have both musl and lkl co-exists in the kernel, but eliminate all code related to lthread, enclave, and lkl from musl (except for the syscall interface). We still have a nice separation, but probably not as pure as we hoped. |
We should separate
lkl_start_init
into 2 stages:snprintf
, are still possible.lkl_mount_disks
. In this stage, we are free to call all libc functions.So the general initialization flow becomes:
The text was updated successfully, but these errors were encountered: