From: Ivan Tadeu Ferreira Antunes Filho Date: Sat, 12 Aug 2023 13:02:39 +0000 (-0400) Subject: Make label private on apple (#788) X-Git-Tag: upstream/3.4.7~62 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1d0a28ab5a2ee2e12b0650d69184d561cd1fd83c;p=platform%2Fupstream%2Flibffi.git Make label private on apple (#788) Private labels on apple must start with L prefix, while on ELF they start with .L prefix. This makes the label start with L on apple instead of .L. --- diff --git a/src/aarch64/sysv.S b/src/aarch64/sysv.S index eeaf3f8..286f1f1 100644 --- a/src/aarch64/sysv.S +++ b/src/aarch64/sysv.S @@ -40,6 +40,12 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #endif #endif +#ifdef __APPLE__ +# define L(X) CONCAT1(L, X) +#else +# define L(X) CONCAT1(.L, X) +#endif + #ifdef __AARCH64EB__ # define BE(X) X #else @@ -288,7 +294,7 @@ CNAME(ffi_closure_SYSV): ldp PTR_REG(0), PTR_REG(1), [x17, #FFI_TRAMPOLINE_CLOSURE_OFFSET] /* load cif, fn */ ldr PTR_REG(2), [x17, #FFI_TRAMPOLINE_CLOSURE_OFFSET+PTR_SIZE*2] /* load user_data */ #ifdef FFI_GO_CLOSURES -.Ldo_closure: +L(do_closure): #endif add x3, sp, #16 /* load context */ add x4, sp, #ffi_closure_SYSV_FS /* load stack */ @@ -518,7 +524,7 @@ CNAME(ffi_go_closure_SYSV): /* Load ffi_closure_inner arguments. */ ldp PTR_REG(0), PTR_REG(1), [x18, #PTR_SIZE]/* load cif, fn */ mov x2, x18 /* load user_data */ - b .Ldo_closure + b L(do_closure) cfi_endproc .globl CNAME(ffi_go_closure_SYSV)