8000 Fix linker failure when building opcache statically by arnaud-lb · Pull Request #18939 · php/php-src · GitHub
[go: up one dir, main page]

Skip to content

Fix linker failure when building opcache statically #18939

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 13 commits into from
Prev Previous commit
Next Next commit
Fix
  • Loading branch information
arnaud-lb committed Jul 4, 2025
commit c76e26ca1ae756aef956def39e79f9f86eeb42be
8 changes: 4 additions & 4 deletions ext/opcache/jit/tls/zend_jit_tls_darwin.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ zend_result zend_jit_resolve_tsrm_ls_cache_offsets(

#if defined(__x86_64__)
size_t *ti;
__asm__(
__asm__ __volatile__(
"leaq __tsrm_ls_cache(%%rip),%0"
: "=r" (ti));
*module_offset = ti[2];
Expand All @@ -58,13 +58,13 @@ void *zend_jit_tsrm_ls_cache_address(
) {

if (tcb_offset) {
char *base;
char *addr;
__asm__ __volatile__(
"movq %%gs:(%1), %0\n"
: "=r" (base)
: "=r" (addr)
: "r" (tcb_offset)
);

return addr;
}
if (module_index != (size_t)-1 && module_offset != (size_t)-1) {
char *base;
Expand Down
0