]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
ARM64: Allow building with unwinding disabled.
authorMike Pall <mike>
Tue, 19 Jul 2022 10:53:34 +0000 (12:53 +0200)
committerMike Pall <mike>
Tue, 19 Jul 2022 10:53:34 +0000 (12:53 +0200)
src/vm_arm64.dasc

index f5f1b5f12f299a83d4d5f60bbd33b27ed543ea5e..3448d0d2b8e1229d423adc2934f54645be116132 100644 (file)
@@ -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