Re:Doas – Dedicated OpenBSD application subexecutor
by DominikD on Tuesday July 21, 2015 @04:50AM
(#9921089)
Cool, thanks for the details. I guess I should check who's asking before I respond the next time around. ;) It wasn't clear whether you're pulling my leg or you're interested in deep dive I can't provide. But you can. :] So, question then - wasn't it the case (at one point) that you had dependency on stack unwinding library or some external implementation of TLS? My feeling is that what I read about OS development at that point had also something to do with one of these two. Maybe. Unwind is native to Rust right now and is no longer a problem (on platforms supported), no?
Re:Doas – Dedicated OpenBSD application subexecutor
by steveklabnik on Tuesday July 21, 2015 @12:35PM
(#9923505)
:) It's all good, I was a little bit terse... I should consider that in the future.
We do use gcc's unwinding library, last I recall, but if you're writing an OS, you can implement the language items to do whatever you want, including just abort.
There's no inherent TLS implementation that I'm aware of.
That interface is super unstable at the moment, and we're working on stabilizing it, but yeah, that's what you'd have to do: write your own allocator and hook it up.