mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-15 15:20:02 +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
|
@ -20,6 +20,7 @@ i32 __sys_fcntl_cp(i32, i32, ...);
|
|||
i32 __sys_fstat(i32, void *);
|
||||
i32 __sys_fstatat(i32, const char *, void *, i32);
|
||||
i32 __sys_gettid(i64 *);
|
||||
i32 __sys_mprotect(void *, u64, i32);
|
||||
i32 __sys_munmap(void *, u64);
|
||||
i32 __sys_openat(i32, const char *, i32, u32);
|
||||
i32 __sys_openat_nc(i32, const char *, i32, u32);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue