Skip to content

Commit c0b0e9e

Browse files
committed
Account for key change in macos 15 to 32 bit
1 parent 67982fb commit c0b0e9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/opcache/jit/tls/zend_jit_tls_darwin.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ zend_result zend_jit_resolve_tsrm_ls_cache_offsets(
3939
#if defined(__x86_64__)
4040
size_t *ti;
4141
__asm__ __volatile__(
42-
"leaq __tsrm_ls_cache(%%rip),%0"
42+
"movq __tsrm_ls_cache@TLVP(%%rip), %0"
4343
: "=r" (ti));
4444
*module_offset = ti[2];
45-
*module_index = ti[1] * 8;
45+
*module_index = ((size_t)(uint32_t)ti[1]) << 3;
4646

4747
return SUCCESS;
4848
#endif

0 commit comments

Comments
 (0)