summaryrefslogtreecommitdiff
path: root/src/buildvm_x86.dasc
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildvm_x86.dasc')
-rw-r--r--src/buildvm_x86.dasc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/buildvm_x86.dasc b/src/buildvm_x86.dasc
index fbeb4f29..3ad0d812 100644
--- a/src/buildvm_x86.dasc
+++ b/src/buildvm_x86.dasc
@@ -5108,7 +5108,11 @@ static void emit_asm_debug(BuildCtx *ctx)
5108 "\t.byte " REG_RA "\n" 5108 "\t.byte " REG_RA "\n"
5109 "\t.byte 6\n" /* augmentation length */ 5109 "\t.byte 6\n" /* augmentation length */
5110 "\t.byte 0x9b\n" /* indirect|pcrel|sdata4 */ 5110 "\t.byte 0x9b\n" /* indirect|pcrel|sdata4 */
5111#if LJ_64
5112 "\t.long _lj_err_unwind_dwarf+4@GOTPCREL\n"
5113#else
5111 "\t.long L_lj_err_unwind_dwarf$non_lazy_ptr-.\n" 5114 "\t.long L_lj_err_unwind_dwarf$non_lazy_ptr-.\n"
5115#endif
5112 "\t.byte 0x1b\n" /* pcrel|sdata4 */ 5116 "\t.byte 0x1b\n" /* pcrel|sdata4 */
5113#if LJ_64 5117#if LJ_64
5114 "\t.byte 0xc\n\t.byte " REG_SP "\n\t.byte " SZPTR "\n" 5118 "\t.byte 0xc\n\t.byte " REG_SP "\n\t.byte " SZPTR "\n"
@@ -5142,11 +5146,15 @@ static void emit_asm_debug(BuildCtx *ctx)
5142#endif 5146#endif
5143 "\t.align " BSZPTR "\n" 5147 "\t.align " BSZPTR "\n"
5144 "LEFDE1:\n\n", (int)ctx->codesz, CFRAME_SIZE); 5148 "LEFDE1:\n\n", (int)ctx->codesz, CFRAME_SIZE);
5149#if LJ_64
5150 fprintf(ctx->fp, "\t.subsections_via_symbols\n");
5151#else
5145 fprintf(ctx->fp, 5152 fprintf(ctx->fp,
5146 "\t.non_lazy_symbol_pointer\n" 5153 "\t.non_lazy_symbol_pointer\n"
5147 "L_lj_err_unwind_dwarf$non_lazy_ptr:\n" 5154 "L_lj_err_unwind_dwarf$non_lazy_ptr:\n"
5148 ".indirect_symbol _lj_err_unwind_dwarf\n" 5155 ".indirect_symbol _lj_err_unwind_dwarf\n"
5149 ".long 0\n"); 5156 ".long 0\n");
5157#endif
5150 break; 5158 break;
5151 default: /* Difficult for other modes. */ 5159 default: /* Difficult for other modes. */
5152 break; 5160 break;