From 28703f82744ed3eb122ae33474e9c53f4fe528d3 Mon Sep 17 00:00:00 2001 From: Michael Buesch Date: Sun, 19 Sep 2010 20:34:33 +0200 Subject: [PATCH] disassembler: Emit %start directive. This avoids a warning when re-assembling Signed-off-by: Michael Buesch --- disassembler/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/disassembler/main.c b/disassembler/main.c index a305bef..76295fd 100644 --- a/disassembler/main.c +++ b/disassembler/main.c @@ -749,7 +749,9 @@ static void emit_asm(struct disassembler_context *ctx) if (err) exit(1); - fprintf(outfile, "%%arch %u\n\n", ctx->arch); + fprintf(outfile, "%%arch %u\n", ctx->arch); + fprintf(outfile, "%%start entry\n\n"); + fprintf(outfile, "entry:\n"); list_for_each_entry(stmt, &ctx->stmt_list, list) { switch (stmt->type) { case STMT_INSN: -- 2.31.1