mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
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 in71cccc0bcc, but it's probably a merge error of94ba883e19, which used the right value.
This commit is contained in:
@@ -3255,7 +3255,7 @@ static void zend_jit_setup(void)
|
||||
"leaq _tsrm_ls_cache@tlsgd(%%rip), %0\n"
|
||||
: "=a" (ti));
|
||||
tsrm_tls_offset = ti[1];
|
||||
tsrm_tls_index = ti[0] * 16;
|
||||
tsrm_tls_index = ti[0] * 8;
|
||||
#else
|
||||
size_t *ti;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user