Fix compatibility issues with Illumos.

Thanks to Theo Schlossnagle.
This commit is contained in:
Mike Pall
2013-05-25 10:18:12 +02:00
parent d686217926
commit 5a261dd92c
3 changed files with 23 additions and 13 deletions

View File

@@ -6152,7 +6152,11 @@ static void emit_asm_debug(BuildCtx *ctx)
".LEFDE1:\n\n", (int)ctx->codesz - fcofs);
#endif
#if (defined(__sun__) && defined(__svr4__))
#if LJ_64
fprintf(ctx->fp, "\t.section .eh_frame,\"a\",@unwind\n");
#else
fprintf(ctx->fp, "\t.section .eh_frame,\"aw\",@progbits\n");
#endif
#else
fprintf(ctx->fp, "\t.section .eh_frame,\"a\",@progbits\n");
#endif