* config/obj-ieee.c (write_object_file): Set finalize_syms.
authorAlan Modra <amodra@gmail.com>
Fri, 25 May 2001 09:40:12 +0000 (09:40 +0000)
committerAlan Modra <amodra@gmail.com>
Fri, 25 May 2001 09:40:12 +0000 (09:40 +0000)
* config/obj-coff.c (write_object_file): Likewise.
* (size_section): Remove rs_space assert as fr_symbol is no longer
removed.
(fill_section): Likewise.

gas/ChangeLog
gas/config/obj-coff.c
gas/config/obj-ieee.c

index b7e762f351bf8615ce23d5d47d19c8c0b43584cd..8bcc652af036a11f7e927233da500177ba013003 100644 (file)
@@ -1,5 +1,11 @@
 2001-05-25  Alan Modra  <amodra@one.net.au>
 
+       * config/obj-ieee.c (write_object_file): Set finalize_syms.
+       * config/obj-coff.c (write_object_file): Likewise.
+       * (size_section): Remove rs_space assert as fr_symbol is no longer
+       removed.
+       (fill_section): Likewise.
+
        * configure.in: Replace linuxoldld with linux*oldld.
        * configure: Regenerate.
 
index da07960b3cc18c4b60f698633c90b7547942fe17..84706cfb2c4453e97bb8e99f9e855dd86d3d3761 100644 (file)
@@ -1824,7 +1824,6 @@ size_section (abfd, idx)
          break;
 #endif
        case rs_space:
-         assert (frag->fr_symbol == 0);
        case rs_fill:
        case rs_org:
          size += frag->fr_fix;
@@ -2138,7 +2137,6 @@ fill_section (abfd, h, file_cursor)
 
                  break;
                case rs_space:
-                 assert (frag->fr_symbol == 0);
                case rs_fill:
                case rs_align:
                case rs_align_code:
@@ -3473,6 +3471,9 @@ write_object_file ()
       relax_segment (segment_info[i].frchainP->frch_root, i);
     }
 
+  /* Relaxation has completed.  Freeze all syms.  */
+  finalize_syms = 1;
+
   H_SET_NUMBER_OF_SECTIONS (&headers, 0);
 
   /* Find out how big the sections are, and set the addresses.  */
index 521a0d72a3fcd90f7ed2475ca9247ce8d2cd6d14..8c0e3f253f134c843d3a4cd6d2ca0de563b199fa 100644 (file)
@@ -558,6 +558,9 @@ write_object_file ()
   for (i = SEG_E0; i < SEG_UNKNOWN; i++)
     relax_segment (segment_info[i].frag_root, i);
 
+  /* Relaxation has completed.  Freeze all syms.  */
+  finalize_syms = 1;
+
   /* Now the addresses of the frags are correct within the segment.  */
 
   bfd_as_write_hook ();
This page took 0.03367 seconds and 4 git commands to generate.