]> Zhao Yanbai Git Server - minix.git/commitdiff
fix for asmconv - stop translating after .sect .end.
authorBen Gras <ben@minix3.org>
Wed, 3 Feb 2010 16:03:00 +0000 (16:03 +0000)
committerBen Gras <ben@minix3.org>
Wed, 3 Feb 2010 16:03:00 +0000 (16:03 +0000)
commands/i386/asmconv/emit_gnu.c

index ba8c148bf35feb1aede5dd419df96770d3fcc576..060cb013a0e3cdd9a0e7448cc1c19f21888adce0 100644 (file)
@@ -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 == ':');