From 2ae0848317a2855dc97745d7be0a9edccbae90e0 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 4 Aug 2011 20:53:58 +0000 Subject: Call bfd_cache_close_all on error 2011-08-04 H.J. Lu PR gas/13056 * output-file.c (output_file_close): Call bfd_cache_close_all on error. * write.c (write_object_file): Revert the last change. --- gas/write.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gas/write.c') diff --git a/gas/write.c b/gas/write.c index 39b88a6..5eb4b56 100644 --- a/gas/write.c +++ b/gas/write.c @@ -2073,14 +2073,13 @@ write_object_file (void) obj_adjust_symtab (); #endif - set_symtab (); - /* Stop if there is an error. */ if (had_errors ()) return; /* Now that all the sizes are known, and contents correct, we can start writing to the file. */ + set_symtab (); /* If *_frob_file changes the symbol value at this point, it is responsible for moving the changed value into symp->bsym->value -- cgit v1.1