Skip to content

Commit 868f56d

Browse files
committed
Fix GH-10398: Fibers are broken on alpine x86 with clang
The arguments were passed incorrectly. This uses the regular approach to pass arguments on the SYSV 32-bit ABI.
1 parent f673449 commit 868f56d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Zend/asm/make_i386_sysv_elf_gas.S

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ make_fcontext:
8282

8383
trampoline:
8484
/* move transport_t for entering context-function */
85-
movl %edi, (%esp)
86-
movl %esi, 0x4(%esp)
85+
pushl %esi
86+
pushl %edi
8787
pushl %ebp
8888
/* jump to context-function */
8989
jmp *%ebx

0 commit comments

Comments
 (0)