diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-08-26 20:01:21 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-08-26 20:01:21 +0000 |
commit | b8520cf360af031d8285b11a8d12d8826b99b0e5 (patch) | |
tree | 276197d00d79ed0ac7c7655a964c0e823ae95ffc /bfd | |
parent | 055cca8409f6459cab8515d8b9b2ba8aff5a55c6 (diff) | |
download | gdb-b8520cf360af031d8285b11a8d12d8826b99b0e5.zip gdb-b8520cf360af031d8285b11a8d12d8826b99b0e5.tar.gz gdb-b8520cf360af031d8285b11a8d12d8826b99b0e5.tar.bz2 |
* coffgen.c (coff_real_object_p): Set obj_raw_syment_count.
(coff_get_normalized_symtab): Verify obj_raw_syment_count, rather
than setting it.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 6 | ||||
-rw-r--r-- | bfd/coffgen.c | 7 |
2 files changed, 11 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index b82e2f0..e311a16 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -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. diff --git a/bfd/coffgen.c b/bfd/coffgen.c index 44d1323..1faa423 100644 --- a/bfd/coffgen.c +++ b/bfd/coffgen.c @@ -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() */ |