This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

finalize_syms for coff,ieee


Oops.  Missed these.

gas/ChangeLog
	* 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.

-- 
Alan Modra

Index: config/obj-coff.c
===================================================================
RCS file: /cvs/src/src/gas/config/obj-coff.c,v
retrieving revision 1.46
diff -u -p -r1.46 obj-coff.c
--- obj-coff.c	2001/05/24 21:39:09	1.46
+++ obj-coff.c	2001/05/25 09:32:28
@@ -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:
@@ -3472,6 +3470,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);
 
Index: config/obj-ieee.c
===================================================================
RCS file: /cvs/src/src/gas/config/obj-ieee.c,v
retrieving revision 1.4
diff -u -p -r1.4 obj-ieee.c
--- obj-ieee.c	2001/03/08 23:24:22	1.4
+++ obj-ieee.c	2001/05/25 09:32:30
@@ -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 ();


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]