diff --git a/macro11.c b/macro11.c index 21fbcd8..ad3c155 100644 --- a/macro11.c +++ b/macro11.c @@ -353,7 +353,15 @@ int main( stack_push(&stack, str); } + /* + * Reset dot in all sections. write_globals() only does it + * if there is an object file. + */ + for (i = 0; i < sector; i++) { + sections[i]->pc = 0; + } DOT = 0; + current_pc->section = &blank_section; last_dot_section = NULL;