projects
/
b43-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4366b5d
)
disassembler: Emit %start directive. This avoids a warning when re-assembling
author
Michael Buesch
<mb@bu3sch.de>
Sun, 19 Sep 2010 18:34:33 +0000
(20:34 +0200)
committer
Michael 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
patch
|
blob
|
history
diff --git
a/disassembler/main.c
b/disassembler/main.c
index a305befb93a73c02e0e8c81b8da4dc86a6517c6a..76295fd5eb2a836b91c1692827c7fb50405e8033 100644
(file)
--- 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: