Is it still possible to use MAP_JIT
in mmap and execute said code pages in AUs? When I try to operate on a page with proper flags that worked in a prior version of MacOS, I get a SIGBUS
. I am working on getting a minimal example up and running, but this just doesn't seem right to me.
I have a minimal example, but can't entirely figure out how to convey it. I am developing it under Juce and can send that code and the modifications I had to make to the xcode build if anyone wants to replicate. The punch line is that, in the first constructor, I have the following: https://gist.github.com/sternj/00ef1b287314ee7e470db103dacc77c0
A new example, this time even more minimal: https://gist.github.com/sternj/ba000d125d50c7ec6725013694497df9