From 5677985dc1f19cf0a67112f4365c7fb79237fa16 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Tue, 19 Jul 2022 12:53:34 +0200 Subject: ARM64: Allow building with unwinding disabled. --- src/vm_arm64.dasc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vm_arm64.dasc b/src/vm_arm64.dasc index f5f1b5f1..3448d0d2 100644 --- a/src/vm_arm64.dasc +++ b/src/vm_arm64.dasc @@ -3988,6 +3988,7 @@ static void emit_asm_debug(BuildCtx *ctx) "\t.align 3\n" ".LEFDE1:\n\n", (int)ctx->codesz - fcofs); #endif +#if !LJ_NO_UNWIND fprintf(ctx->fp, "\t.section .eh_frame,\"a\",%%progbits\n"); fprintf(ctx->fp, ".Lframe1:\n" @@ -4055,6 +4056,7 @@ static void emit_asm_debug(BuildCtx *ctx) "\t.byte 0x94\n\t.uleb128 4\n" /* offset x20 */ "\t.align 3\n" ".LEFDE3:\n\n", (int)ctx->codesz - fcofs); +#endif #endif break; #if !LJ_NO_UNWIND -- cgit v1.2.1