diff options
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 | ||
