diff options
Diffstat (limited to 'src/buildvm_x64win.h')
-rw-r--r-- | src/buildvm_x64win.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/buildvm_x64win.h b/src/buildvm_x64win.h index 97ab59d9..eb0a7eab 100644 --- a/src/buildvm_x64win.h +++ b/src/buildvm_x64win.h | |||
@@ -2390,7 +2390,11 @@ static void emit_asm_debug(BuildCtx *ctx) | |||
2390 | "\t.byte " REG_RA "\n" | 2390 | "\t.byte " REG_RA "\n" |
2391 | "\t.byte 6\n" /* augmentation length */ | 2391 | "\t.byte 6\n" /* augmentation length */ |
2392 | "\t.byte 0x9b\n" /* indirect|pcrel|sdata4 */ | 2392 | "\t.byte 0x9b\n" /* indirect|pcrel|sdata4 */ |
2393 | #if LJ_64 | ||
2394 | "\t.long _lj_err_unwind_dwarf+4@GOTPCREL\n" | ||
2395 | #else | ||
2393 | "\t.long L_lj_err_unwind_dwarf$non_lazy_ptr-.\n" | 2396 | "\t.long L_lj_err_unwind_dwarf$non_lazy_ptr-.\n" |
2397 | #endif | ||
2394 | "\t.byte 0x1b\n" /* pcrel|sdata4 */ | 2398 | "\t.byte 0x1b\n" /* pcrel|sdata4 */ |
2395 | #if LJ_64 | 2399 | #if LJ_64 |
2396 | "\t.byte 0xc\n\t.byte " REG_SP "\n\t.byte " SZPTR "\n" | 2400 | "\t.byte 0xc\n\t.byte " REG_SP "\n\t.byte " SZPTR "\n" |
@@ -2424,11 +2428,15 @@ static void emit_asm_debug(BuildCtx *ctx) | |||
2424 | #endif | 2428 | #endif |
2425 | "\t.align " BSZPTR "\n" | 2429 | "\t.align " BSZPTR "\n" |
2426 | "LEFDE1:\n\n", (int)ctx->codesz, CFRAME_SIZE); | 2430 | "LEFDE1:\n\n", (int)ctx->codesz, CFRAME_SIZE); |
2431 | #if LJ_64 | ||
2432 | fprintf(ctx->fp, "\t.subsections_via_symbols\n"); | ||
2433 | #else | ||
2427 | fprintf(ctx->fp, | 2434 | fprintf(ctx->fp, |
2428 | "\t.non_lazy_symbol_pointer\n" | 2435 | "\t.non_lazy_symbol_pointer\n" |
2429 | "L_lj_err_unwind_dwarf$non_lazy_ptr:\n" | 2436 | "L_lj_err_unwind_dwarf$non_lazy_ptr:\n" |
2430 | ".indirect_symbol _lj_err_unwind_dwarf\n" | 2437 | ".indirect_symbol _lj_err_unwind_dwarf\n" |
2431 | ".long 0\n"); | 2438 | ".long 0\n"); |
2439 | #endif | ||
2432 | break; | 2440 | break; |
2433 | default: /* Difficult for other modes. */ | 2441 | default: /* Difficult for other modes. */ |
2434 | break; | 2442 | break; |