aboutsummaryrefslogtreecommitdiff
path: root/gas/output-file.c
diff options
context:
space:
mode:
Diffstat (limited to 'gas/output-file.c')
-rw-r--r--gas/output-file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/output-file.c b/gas/output-file.c
index 1781d82..5735981 100644
--- a/gas/output-file.c
+++ b/gas/output-file.c
@@ -58,7 +58,7 @@ output_file_close (const char *filename)
return;
/* Close the bfd. */
- if (had_errors ())
+ if (!flag_always_generate_output && had_errors ())
res = bfd_cache_close_all ();
else
res = bfd_close (stdoutput);