From: Ben Gras Date: Wed, 3 Feb 2010 15:30:26 +0000 (+0000) Subject: mimic old .sect .end behaviour X-Git-Tag: v3.1.6~3 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=a6c6a2b4aa773fc5658ec8429893693003f611dd;p=minix.git mimic old .sect .end behaviour --- 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 == ':');