From 4849f7f0396e4ed306fc3436da1f425da4b717a8 Mon Sep 17 00:00:00 2001 From: Olaf Seibert Date: Fri, 8 May 2015 02:03:23 +0200 Subject: [PATCH] Reset dot in all sections. write_globals() only does it... if there is an object file. --- macro11.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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;