aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gas/output-file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gas/output-file.c b/gas/output-file.c
index 127dc73..0c3a811 100644
--- a/gas/output-file.c
+++ b/gas/output-file.c
@@ -99,6 +99,8 @@ output_file_close (void)
res = bfd_cache_close_all ();
else
res = bfd_close (obfd);
+ now_seg = NULL;
+ now_subseg = 0;
filename = out_file_name;
out_file_name = NULL;