mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-29 14:00:29 +00:00
Improve dlopen() on Apple Silicon
- Introduce MAP_JIT which is zero on other platforms - Invent __jit_begin() and __jit_end() which wrap Apple's APIs - Runtime dispatch to sys_icache_invalidate() in __clear_cache()
This commit is contained in:
parent
7a9e176ecf
commit
529cb4817c
20 changed files with 120 additions and 117 deletions
2
libc/sysv/calls/__sys_mprotect.S
Normal file
2
libc/sysv/calls/__sys_mprotect.S
Normal file
|
@ -0,0 +1,2 @@
|
|||
#include "libc/sysv/macros.internal.h"
|
||||
.scall __sys_mprotect,0x04a04a04a204a00a,226,74,globl,hidden
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/macros.internal.h"
|
||||
.scall sys_mprotect,0x04a04a04a204a00a,226,74,globl,hidden
|
Loading…
Add table
Add a link
Reference in a new issue