aboutsummaryrefslogtreecommitdiff
path: root/gas/write.c
diff options
context:
space:
mode:
Diffstat (limited to 'gas/write.c')
-rw-r--r--gas/write.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gas/write.c b/gas/write.c
index 2beb1d7..f17a6fa 100644
--- a/gas/write.c
+++ b/gas/write.c
@@ -1574,15 +1574,18 @@ write_object_file ()
if (!changed)
break;
}
- /* Relaxation has completed. Freeze all syms. */
- finalize_syms = 1;
+ /* Note - we do not set finalize_syms here because some targets
+ do not finish sizing all of their frags until after size_seg
+ has completed. */
bfd_map_over_sections (stdoutput, size_seg, (char *) 0);
#else
relax_and_size_all_segments ();
- finalize_syms = 1;
#endif /* BFD_ASSEMBLER */
+ /* Relaxation has completed. Freeze all syms. */
+ finalize_syms = 1;
+
#if defined (BFD_ASSEMBLER) && defined (OBJ_COFF) && defined (TE_GO32)
/* Now that the segments have their final sizes, run through the
sections and set their vma and lma. !BFD gas sets them, and BFD gas