aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2011-08-04 10:24:00 +0000
committerAlan Modra <amodra@gmail.com>2011-08-04 10:24:00 +0000
commit5e9f6467f770557e650283258f6a4352519a6683 (patch)
treed1f90ba41685ac0c79d41f4c1006258c5569c030 /gas
parentf1bb0388993cf26aea6903ad47e03c1a189f72ea (diff)
downloadgdb-5e9f6467f770557e650283258f6a4352519a6683.zip
gdb-5e9f6467f770557e650283258f6a4352519a6683.tar.gz
gdb-5e9f6467f770557e650283258f6a4352519a6683.tar.bz2
* write.c (write_object_file): Call set_symtab even if we had
errors.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/write.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index d1f1635..cb063fb 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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.
diff --git a/gas/write.c b/gas/write.c
index 5eb4b56..39b88a6 100644
--- a/gas/write.c
+++ b/gas/write.c
@@ -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