Solaris: add stub shims so that pre-main code works #3566
Labels
A-solarish
Area: affects our Solaris/Illumos target support
C-enhancement
Category: a PR with an enhancement or an issue tracking an accepted enhancement
E-good-first-issue
A good way to start contributing, mentoring is available
Currently, even an empty
main
fails on Solaris as we're hitting some unsupported functions in the pre-mainstd
initialization code -- specifically, the guard page setup.On other OSes we have some shims that don't even try to implement their proper functionality (like this), solely for the purpose of making the guard page work. We likely need something similar here.
We will probably have to extend this hack to also allow solaris, not just macos:
miri/src/shims/unix/mem.rs
Lines 47 to 49 in 10e8bb8
We also need a
stack_getbounds
shim. It looks likestack_getbounds
can just do nothing, but you're going to have to try this out. If not,this.machine.stack_addr
andthis.machine.stack_size
are the fake values we are using elsewhere.Cc @devnexen
The text was updated successfully, but these errors were encountered: