From: Ben Gras Date: Wed, 3 Feb 2010 16:03:00 +0000 (+0000) Subject: fix for asmconv - stop translating after .sect .end. X-Git-Tag: v3.1.7~317 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/soc.html?a=commitdiff_plain;h=d6598cc7cd519aeb62be896be4305795a71dbc0c;p=minix.git fix for asmconv - stop translating after .sect .end. --- diff --git a/commands/i386/asmconv/emit_gnu.c b/commands/i386/asmconv/emit_gnu.c index ba8c148bf..060cb013a 100644 --- a/commands/i386/asmconv/emit_gnu.c +++ b/commands/i386/asmconv/emit_gnu.c @@ -507,7 +507,8 @@ void gnu_emit_instruction(asm86_t *a) } if (a->opcode == DOT_END) { - /* Ignore .end in gnu mode. */ + /* Stop translating after .sect .end. */ + exit(0); } else if (a->opcode == DOT_LABEL) { assert(a->args->operator == ':');