* write.c (write_object_file): Call set_symtab even if we had
errors.
This commit is contained in:
parent
f1bb038899
commit
5e9f6467f7
2 changed files with 7 additions and 1 deletions
|
@ -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>
|
2011-08-04 Tristan Gingold <gingold@adacore.com>
|
||||||
|
|
||||||
* config/obj-elf.c (obj_elf_section): Do not free name.
|
* config/obj-elf.c (obj_elf_section): Do not free name.
|
||||||
|
|
|
@ -2073,13 +2073,14 @@ write_object_file (void)
|
||||||
obj_adjust_symtab ();
|
obj_adjust_symtab ();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
set_symtab ();
|
||||||
|
|
||||||
/* Stop if there is an error. */
|
/* Stop if there is an error. */
|
||||||
if (had_errors ())
|
if (had_errors ())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* Now that all the sizes are known, and contents correct, we can
|
/* Now that all the sizes are known, and contents correct, we can
|
||||||
start writing to the file. */
|
start writing to the file. */
|
||||||
set_symtab ();
|
|
||||||
|
|
||||||
/* If *_frob_file changes the symbol value at this point, it is
|
/* If *_frob_file changes the symbol value at this point, it is
|
||||||
responsible for moving the changed value into symp->bsym->value
|
responsible for moving the changed value into symp->bsym->value
|
||||||
|
|
Loading…
Reference in a new issue