* write.c (write_object_file): Call set_symtab even if we had
authorAlan Modra <amodra@gmail.com>
Thu, 4 Aug 2011 10:24:00 +0000 (10:24 +0000)
committerAlan Modra <amodra@gmail.com>
Thu, 4 Aug 2011 10:24:00 +0000 (10:24 +0000)
errors.

gas/ChangeLog
gas/write.c

index d1f16359344dac2dcb7c62b433a3072d64825f77..cb063fb09d922da8c1627076fa98e25ed4316c1e 100644 (file)
@@ -1,3 +1,8 @@
+2011-08-04  Alan Modra  <amodra@gmail.com>
+
+       * write.c (write_object_file): Call set_symtab even if we had
+       errors.
+
 2011-08-04  Tristan Gingold  <gingold@adacore.com>
 
        * config/obj-elf.c (obj_elf_section): Do not free name.
index 5eb4b56ef7b5a9eee08bec47ae94bbf1a77d169c..39b88a68b75c427a8c80b95b92ced4e39f13197e 100644 (file)
@@ -2073,13 +2073,14 @@ 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