Skip to content

Commit

Permalink
MIPS: Backport workaround for compact unwind tables.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Pall committed Feb 20, 2017
1 parent b93a1dd commit 1abd779
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lj_arch.h
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,11 @@
#define LJ_NO_SYSTEM 1
#endif

#if !defined(LUAJIT_NO_UNWIND) && __GNU_COMPACT_EH__
/* NYI: no support for compact unwind specification, yet. */
#define LUAJIT_NO_UNWIND 1
#endif

#if defined(LUAJIT_NO_UNWIND) || defined(__symbian__) || LJ_TARGET_IOS || LJ_TARGET_PS3 || LJ_TARGET_PS4
#define LJ_NO_UNWIND 1
#endif
Expand Down
2 changes: 2 additions & 0 deletions src/vm_mips.dasc
Original file line number Diff line number Diff line change
Expand Up @@ -4170,6 +4170,7 @@ static void emit_asm_debug(BuildCtx *ctx)
"\t.align 2\n"
".LEFDE1:\n\n", (int)ctx->codesz - fcofs);
#endif
#if !LJ_NO_UNWIND
fprintf(ctx->fp, "\t.section .eh_frame,\"aw\",@progbits\n");
fprintf(ctx->fp,
"\t.globl lj_err_unwind_dwarf\n"
Expand Down Expand Up @@ -4237,6 +4238,7 @@ static void emit_asm_debug(BuildCtx *ctx)
"\t.byte 0xd\n\t.uleb128 0x10\n"
"\t.align 2\n"
".LEFDE3:\n\n", (int)ctx->codesz - fcofs);
#endif
#endif
break;
default:
Expand Down

0 comments on commit 1abd779

Please sign in to comment.