We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents eb76a83 + 667b08c commit 71cccc0Copy full SHA for 71cccc0
ext/opcache/jit/zend_jit_ir.c
@@ -3256,6 +3256,14 @@ static void zend_jit_setup(void)
3256
asm ("movq _tsrm_ls_cache@gottpoff(%%rip),%0"
3257
: "=r" (ret));
3258
tsrm_ls_cache_tcb_offset = ret;
3259
+#elif defined(__MUSL__)
3260
+ size_t *ti;
3261
+
3262
+ __asm__(
3263
+ "leaq _tsrm_ls_cache@tlsgd(%%rip), %0\n"
3264
+ : "=a" (ti));
3265
+ tsrm_tls_offset = ti[1];
3266
+ tsrm_tls_index = ti[0] * 16;
3267
#else
3268
size_t *ti;
3269
0 commit comments