From a3b0224b0c6dcf92a7bf06bff47bc53ccbc7b74f Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Thu, 6 Oct 2022 13:01:18 +0800 Subject: [PATCH] Darwin make_ppc32: fix addi in l1 --- src/asm/make_ppc32_sysv_macho_gas.S | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/asm/make_ppc32_sysv_macho_gas.S b/src/asm/make_ppc32_sysv_macho_gas.S index e5c1b67c..672f3c2b 100644 --- a/src/asm/make_ppc32_sysv_macho_gas.S +++ b/src/asm/make_ppc32_sysv_macho_gas.S @@ -106,12 +106,12 @@ _make_fcontext: ; load LR mflr r0 ; jump to label 1 - bl 1f -1: + bl l1 +l1: ; load LR into R4 mflr r4 ; compute abs address of label finish - addi r4, r4, finish - 1b + addi r4, r4, lo16((finish - .) + 4) ; restore LR mtlr r0 ; save address of finish as return-address for context-function