disassembler: Emit %start directive. This avoids a warning when re-assembling
authorMichael Buesch <mb@bu3sch.de>
Sun, 19 Sep 2010 18:34:33 +0000 (20:34 +0200)
committerMichael Buesch <mb@bu3sch.de>
Sun, 19 Sep 2010 18:34:33 +0000 (20:34 +0200)
Signed-off-by: Michael Buesch <mb@bu3sch.de>
disassembler/main.c

index a305befb93a73c02e0e8c81b8da4dc86a6517c6a..76295fd5eb2a836b91c1692827c7fb50405e8033 100644 (file)
@@ -749,7 +749,9 @@ static void emit_asm(struct disassembler_context *ctx)
        if (err)
                exit(1);
 
        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:
        list_for_each_entry(stmt, &ctx->stmt_list, list) {
                switch (stmt->type) {
                case STMT_INSN: