Skip to content

Commit 91b8457

Browse files
authored
Fix TLS access in JIT with Musl (#13927)
ABI specifies that each DTV element is 8 bytes in size on x86-64. The factor 16 was defined in 71cccc0, but it's probably a merge error of 94ba883, which used the right value.
1 parent 47f0a06 commit 91b8457

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/jit/zend_jit_ir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3255,7 +3255,7 @@ static void zend_jit_setup(void)
32553255
"leaq _tsrm_ls_cache@tlsgd(%%rip), %0\n"
32563256
: "=a" (ti));
32573257
tsrm_tls_offset = ti[1];
3258-
tsrm_tls_index = ti[0] * 16;
3258+
tsrm_tls_index = ti[0] * 8;
32593259
#else
32603260
size_t *ti;
32613261

0 commit comments

Comments
 (0)