Roman Bolshakov writes:
> On Mon, Jan 04, 2021 at 03:23:07PM +, Alex Bennée wrote:
>>
>> Roman Bolshakov writes:
>>
>> > Pages can't be both write and executable at the same time on Apple
>> > Silicon. macOS provides public API to switch write protection [1] for
>> > JIT applications,
On Mon, Jan 04, 2021 at 06:02:50PM -0800, Joelle van Dyne wrote:
> Tested-by: Joelle van Dyne
>
> It works for me. But one thing is that if you build it with the macOS
> 11.x SDK it won't run on < 11.x. This is why apple recommends
> something like:
>
> if (__builtin_available(macOS 11,
On Mon, Jan 04, 2021 at 08:28:08PM +, Alex Bennée wrote:
>
> Alexander Graf writes:
>
> > On 04.01.21 16:23, Alex Bennée wrote:
> >> Roman Bolshakov writes:
> >>
> >>> Pages can't be both write and executable at the same time on Apple
> >>> Silicon. macOS provides public API to switch
On Mon, Jan 04, 2021 at 07:39:13PM +0100, Alexander Graf wrote:
>
> On 04.01.21 16:23, Alex Bennée wrote:
> > Roman Bolshakov writes:
> >
> > > Pages can't be both write and executable at the same time on Apple
> > > Silicon. macOS provides public API to switch write protection [1] for
> > >
On Mon, Jan 04, 2021 at 03:23:07PM +, Alex Bennée wrote:
>
> Roman Bolshakov writes:
>
> > Pages can't be both write and executable at the same time on Apple
> > Silicon. macOS provides public API to switch write protection [1] for
> > JIT applications, like TCG.
> >
> > 1.
> >
Tested-by: Joelle van Dyne
It works for me. But one thing is that if you build it with the macOS
11.x SDK it won't run on < 11.x. This is why apple recommends
something like:
if (__builtin_available(macOS 11, *)) {
pthread_jit_write_protect_np();
}
You still need a
Alexander Graf writes:
> On 04.01.21 16:23, Alex Bennée wrote:
>> Roman Bolshakov writes:
>>
>>> Pages can't be both write and executable at the same time on Apple
>>> Silicon. macOS provides public API to switch write protection [1] for
>>> JIT applications, like TCG.
>>>
>>> 1.
>>>
On 04.01.21 16:23, Alex Bennée wrote:
Roman Bolshakov writes:
Pages can't be both write and executable at the same time on Apple
Silicon. macOS provides public API to switch write protection [1] for
JIT applications, like TCG.
1.
Roman Bolshakov writes:
> Pages can't be both write and executable at the same time on Apple
> Silicon. macOS provides public API to switch write protection [1] for
> JIT applications, like TCG.
>
> 1.
>
On Sun, Jan 03, 2021 at 08:52:52AM -0800, Joelle van Dyne wrote:
> MAC_OS_VERSION_11_0 is always defined. You can see in
> usr/include/AvailabilityVersions.h
>
It's not defined on my old MPB that has Catalina (10.15.7). The last
entries are:
#define MAC_OS_X_VERSION_10_15 101500
#define
MAC_OS_VERSION_11_0 is always defined. You can see in
usr/include/AvailabilityVersions.h
...
#define MAC_OS_X_VERSION_10_15 101500
#define MAC_OS_X_VERSION_10_15_1101501
#define MAC_OS_X_VERSION_10_16 101600
#define MAC_OS_VERSION_11_0 11
The proper way is to do an
Pages can't be both write and executable at the same time on Apple
Silicon. macOS provides public API to switch write protection [1] for
JIT applications, like TCG.
1.
https://developer.apple.com/documentation/apple_silicon/porting_just-in-time_compilers_to_apple_silicon
Signed-off-by: Roman
12 matches
Mail list logo