summaryrefslogtreecommitdiff
path: root/gas/write.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2011-08-04 20:53:57 +0000
committerH.J. Lu <hjl.tools@gmail.com>2011-08-04 20:53:57 +0000
commita04e900e42589ad51ab82286b31f08e77ef86d72 (patch)
tree648b7954b1051a938309d715729398a10d9f0d06 /gas/write.c
parent316ac3fdde0c90b88847ac4c8afc02039d5a1510 (diff)
downloadbinutils-redhat-a04e900e42589ad51ab82286b31f08e77ef86d72.tar.gz
Call bfd_cache_close_all on error
2011-08-04 H.J. Lu <hongjiu.lu@intel.com> 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.
Diffstat (limited to 'gas/write.c')
-rw-r--r--gas/write.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gas/write.c b/gas/write.c
index 39b88a68b7..5eb4b56ef7 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