* coffgen.c (coff_real_object_p): Set obj_raw_syment_count.
authorIan Lance Taylor <ian@airs.com>
Fri, 26 Aug 1994 20:01:21 +0000 (20:01 +0000)
committerIan Lance Taylor <ian@airs.com>
Fri, 26 Aug 1994 20:01:21 +0000 (20:01 +0000)
(coff_get_normalized_symtab): Verify obj_raw_syment_count, rather
than setting it.

bfd/ChangeLog
bfd/coffgen.c

index b82e2f0775b1d4643d100e504a360821760fe20f..e311a168d283cc77d2e7e304e7ed23571c214c30 100644 (file)
@@ -1,3 +1,9 @@
+Fri Aug 26 15:47:57 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
+
+       * coffgen.c (coff_real_object_p): Set obj_raw_syment_count.
+       (coff_get_normalized_symtab): Verify obj_raw_syment_count, rather
+       than setting it.
+
 Thu Aug 25 10:44:53 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
 
        * archive.c (bsd_write_armap): Remove host dependencies.
index 44d1323df8f0fd9eec56504fa5dd70549fe47bac..1faa423218b0c9bc26b1bf5e049e776b5e2f58ee 100644 (file)
@@ -180,7 +180,10 @@ coff_real_object_p (abfd, nscns, internal_f, internal_a)
   if ((internal_f->f_flags & F_EXEC) != 0)
     abfd->flags |= D_PAGED;
 
-  obj_conv_table_size (abfd) = bfd_get_symcount(abfd) = internal_f->f_nsyms;
+  obj_raw_syment_count (abfd) =
+    obj_conv_table_size (abfd) =
+      bfd_get_symcount(abfd) =
+       internal_f->f_nsyms;
   if (internal_f->f_nsyms)
     abfd->flags |= HAS_SYMS;
 
@@ -1423,7 +1426,7 @@ coff_get_normalized_symtab (abfd)
   }
 
   obj_raw_syments(abfd) = internal;
-  obj_raw_syment_count(abfd) = internal_ptr - internal;
+  BFD_ASSERT (obj_raw_syment_count (abfd) == internal_ptr - internal);
 
   return (internal);
 }                              /* coff_get_normalized_symtab() */