gdb/
[deliverable/binutils-gdb.git] / gas / output-file.c
index e993033f4812ed967572a25c4ec36acac222afda..3e871f0db797052b0269ede523bd67aac678e712 100644 (file)
@@ -59,7 +59,10 @@ output_file_close (char *filename)
     return;
     
   /* Close the bfd.  */
-  res = bfd_close (stdoutput);
+  if (had_errors ())
+    res = bfd_cache_close_all ();
+  else
+    res = bfd_close (stdoutput);
 
   /* Prevent an infinite loop - if the close failed we will call as_fatal
      which will call xexit() which may call this function again...  */
This page took 0.039064 seconds and 4 git commands to generate.