diff options
author | Mike Pall <mike> | 2012-08-11 05:41:09 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2012-08-11 05:41:09 +0200 |
commit | ece23a4788eb4802558fae39add9ccd357e74e37 (patch) | |
tree | 5790db0548ce31ad03468f7fab2d62dfcc6b7ea7 /src | |
parent | 1878d17f1966f3368f1600865b15b449beb3a596 (diff) | |
download | luajit-ece23a4788eb4802558fae39add9ccd357e74e37.tar.gz luajit-ece23a4788eb4802558fae39add9ccd357e74e37.tar.bz2 luajit-ece23a4788eb4802558fae39add9ccd357e74e37.zip |
Do not use DWARF unwinder on Windows.
Diffstat (limited to 'src')
-rw-r--r-- | src/vm_x86.dasc | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/src/vm_x86.dasc b/src/vm_x86.dasc index 44199606..c455795e 100644 --- a/src/vm_x86.dasc +++ b/src/vm_x86.dasc | |||
@@ -6201,51 +6201,6 @@ static void emit_asm_debug(BuildCtx *ctx) | |||
6201 | ".LEFDE3:\n\n", (int)ctx->codesz - fcofs); | 6201 | ".LEFDE3:\n\n", (int)ctx->codesz - fcofs); |
6202 | #endif | 6202 | #endif |
6203 | break; | 6203 | break; |
6204 | case BUILD_coffasm: | ||
6205 | fprintf(ctx->fp, "\t.section .eh_frame,\"dr\"\n"); | ||
6206 | fprintf(ctx->fp, | ||
6207 | "\t.def %slj_err_unwind_dwarf; .scl 2; .type 32; .endef\n", | ||
6208 | LJ_32 ? "_" : ""); | ||
6209 | fprintf(ctx->fp, | ||
6210 | "Lframe1:\n" | ||
6211 | "\t.long LECIE1-LSCIE1\n" | ||
6212 | "LSCIE1:\n" | ||
6213 | "\t.long 0\n" | ||
6214 | "\t.byte 0x1\n" | ||
6215 | "\t.string \"zP\"\n" | ||
6216 | "\t.uleb128 0x1\n" | ||
6217 | "\t.sleb128 -" SZPTR "\n" | ||
6218 | "\t.byte " REG_RA "\n" | ||
6219 | "\t.uleb128 5\n" /* augmentation length */ | ||
6220 | "\t.byte 0x00\n" /* absptr */ | ||
6221 | "\t.long %slj_err_unwind_dwarf\n" | ||
6222 | "\t.byte 0xc\n\t.uleb128 " REG_SP "\n\t.uleb128 " SZPTR "\n" | ||
6223 | "\t.byte 0x80+" REG_RA "\n\t.uleb128 0x1\n" | ||
6224 | "\t.align " SZPTR "\n" | ||
6225 | "LECIE1:\n\n", LJ_32 ? "_" : ""); | ||
6226 | fprintf(ctx->fp, | ||
6227 | "LSFDE1:\n" | ||
6228 | "\t.long LEFDE1-LASFDE1\n" | ||
6229 | "LASFDE1:\n" | ||
6230 | "\t.long LASFDE1-Lframe1\n" | ||
6231 | "\t.long %slj_vm_asm_begin\n" | ||
6232 | "\t.long %d\n" | ||
6233 | "\t.uleb128 0\n" /* augmentation length */ | ||
6234 | "\t.byte 0xe\n\t.uleb128 %d\n" /* def_cfa_offset */ | ||
6235 | #if LJ_64 | ||
6236 | "\t.byte 0x86\n\t.uleb128 0x2\n" /* offset rbp */ | ||
6237 | "\t.byte 0x83\n\t.uleb128 0x3\n" /* offset rbx */ | ||
6238 | "\t.byte 0x8f\n\t.uleb128 0x4\n" /* offset r15 */ | ||
6239 | "\t.byte 0x8e\n\t.uleb128 0x5\n" /* offset r14 */ | ||
6240 | #else | ||
6241 | "\t.byte 0x85\n\t.uleb128 0x2\n" /* offset ebp */ | ||
6242 | "\t.byte 0x87\n\t.uleb128 0x3\n" /* offset edi */ | ||
6243 | "\t.byte 0x86\n\t.uleb128 0x4\n" /* offset esi */ | ||
6244 | "\t.byte 0x83\n\t.uleb128 0x5\n" /* offset ebx */ | ||
6245 | #endif | ||
6246 | "\t.align " SZPTR "\n" | ||
6247 | "LEFDE1:\n\n", LJ_32 ? "_" : "", (int)ctx->codesz, CFRAME_SIZE); | ||
6248 | break; | ||
6249 | /* Mental note: never let Apple design an assembler. | 6204 | /* Mental note: never let Apple design an assembler. |
6250 | ** Or a linker. Or a plastic case. But I digress. | 6205 | ** Or a linker. Or a plastic case. But I digress. |
6251 | */ | 6206 | */ |