On Linux, a static program has to open its own ELF executable to initialize thread local storage. On #Sortix, the kernel does that.
One way to do the tradeoff without attack surface is have the kernel map the code that does this stuff to userspace ala vdso...
-
-
Then the actual kernel need not do anything but open the ELF file; the code it mapped in userspace can handle the mmaps, etc.
-
I think this is an interesting approach and I have considered it. Maybe I'll do it down the road. It's like privsepping the kernel.
-
Of course with the whole program loader, the TLS parts is just a couple percent of fairly trivial code, not worth splitting out on its own.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.