diff options
author | Mike Pall <mike> | 2009-12-08 19:49:20 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2009-12-08 19:49:20 +0100 |
commit | 1d1fed48a002dfc0919135911057ebc255a53e0a (patch) | |
tree | c5c6643908374bb8f02f4c7691332d32f6645986 /src/buildvm_asm.c | |
parent | 55b16959717084884fd4a0cbae6d19e3786c20c7 (diff) | |
download | luajit-1d1fed48a002dfc0919135911057ebc255a53e0a.tar.gz luajit-1d1fed48a002dfc0919135911057ebc255a53e0a.tar.bz2 luajit-1d1fed48a002dfc0919135911057ebc255a53e0a.zip |
RELEASE LuaJIT-2.0.0-beta2v2.0.0-beta2
Diffstat (limited to 'src/buildvm_asm.c')
-rw-r--r-- | src/buildvm_asm.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/buildvm_asm.c b/src/buildvm_asm.c index e6972bd5..5daab13b 100644 --- a/src/buildvm_asm.c +++ b/src/buildvm_asm.c | |||
@@ -71,10 +71,7 @@ err: | |||
71 | exit(1); | 71 | exit(1); |
72 | } | 72 | } |
73 | emit_asm_bytes(ctx, cp, n); | 73 | emit_asm_bytes(ctx, cp, n); |
74 | if (!strncmp(sym, LABEL_PREFIX, sizeof(LABEL_PREFIX)-1)) | 74 | fprintf(ctx->fp, "\t%s _%s\n", opname, sym); |
75 | fprintf(ctx->fp, "\t%s _%s\n", opname, sym); | ||
76 | else | ||
77 | fprintf(ctx->fp, "\t%s _" LABEL_PREFIX "wrapper_%s\n", opname, sym); | ||
78 | } | 75 | } |
79 | 76 | ||
80 | /* Emit an assembler label. */ | 77 | /* Emit an assembler label. */ |
@@ -135,7 +132,7 @@ void emit_asm(BuildCtx *ctx) | |||
135 | fprintf(ctx->fp, "\t.text\n"); | 132 | fprintf(ctx->fp, "\t.text\n"); |
136 | emit_asm_align(ctx, 4); | 133 | emit_asm_align(ctx, 4); |
137 | 134 | ||
138 | emit_asm_label(ctx, LABEL_ASM_BEGIN, 0, 1); | 135 | emit_asm_label(ctx, LABEL_ASM_BEGIN, 0, 0); |
139 | if (ctx->mode == BUILD_elfasm) | 136 | if (ctx->mode == BUILD_elfasm) |
140 | fprintf(ctx->fp, ".Lbegin:\n"); | 137 | fprintf(ctx->fp, ".Lbegin:\n"); |
141 | 138 | ||