0003-lib-c-Update-setjmp.s.patch (1054B)
1 From 8b41ce621d3a4b5215001046846c1c4562264d4c Mon Sep 17 00:00:00 2001 2 From: zerous Naveen Narayanan <zerous@nocebo.space> 3 Date: Fri, 1 Nov 2019 15:21:34 +0100 4 Subject: [PATCH 03/11] [lib/c] Update setjmp.s 5 6 --- 7 src/libc/arch/i386/setjmp.s | 23 ++++++++++++----------- 8 1 file changed, 12 insertions(+), 11 deletions(-) 9 10 diff --git a/src/libc/arch/i386/setjmp.s b/src/libc/arch/i386/setjmp.s 11 index 008f2fa9..39397d1d 100644 12 --- a/src/libc/arch/i386/setjmp.s 13 +++ b/src/libc/arch/i386/setjmp.s 14 @@ -1,16 +1,17 @@ 15 .file "setjmp.s" 16 17 .text 18 - .globl _setjmp 19 + .globl setjmp,_setjmp 20 _setjmp: 21 - mov 4(%esp),%eax 22 - mov %ebx,(%eax) 23 - mov %esi,4(%eax) 24 - mov %edi,8(%eax) 25 - mov %ebp,12(%eax) 26 - lea 4(%esp),%ecx 27 - mov %ecx,16(%eax) 28 - mov (%esp),%ecx 29 - mov %ecx,20(%eax) 30 - xor %eax,%eax 31 +setjmp: 32 + movl 4(%esp),%eax 33 + movl %ebx,(%eax) 34 + movl %ecx,4(%eax) 35 + movl %esi,8(%eax) 36 + movl %edi,12(%eax) 37 + movl %ebp,16(%eax) 38 + movl %esp,20(%eax) 39 + pushl (%esp) 40 + popl 24(%eax) 41 + xor %eax,%eax 42 ret 43 -- 44 2.23.0 45