Don't output module dependencies if not a module

This commit is contained in:
David Schmenk 2014-11-18 12:55:38 -08:00
parent f2debb1b4d
commit 700b85280d

View File

@ -388,10 +388,13 @@ void emit_trailer(void)
}
void emit_moddep(char *name, int len)
{
if (name)
emit_dci(name, len);
else
printf("\t%s\t$00\t\t\t; END OF MODULE DEPENDENCIES\n", DB);
if (outflags & MODULE)
{
if (name)
emit_dci(name, len);
else
printf("\t%s\t$00\t\t\t; END OF MODULE DEPENDENCIES\n", DB);
}
}
void emit_sysflags(int val)
{