* elflink.h (elf_link_add_object_symbols): Set section_count to 0
authorIan Lance Taylor <ian@airs.com>
Fri, 8 Dec 1995 22:47:28 +0000 (22:47 +0000)
committerIan Lance Taylor <ian@airs.com>
Fri, 8 Dec 1995 22:47:28 +0000 (22:47 +0000)
when setting sections to NULL.
PR 8600.

bfd/ChangeLog
bfd/elflink.h

index 31e647cc4ac7adaf4270343b5901073bfc5b5df1..ab20f59b5f6868c7d3cd5ac35779b389a5be97c8 100644 (file)
@@ -1,3 +1,8 @@
+Fri Dec  8 17:47:07 1995  Ian Lance Taylor  <ian@cygnus.com>
+
+       * elflink.h (elf_link_add_object_symbols): Set section_count to 0
+       when setting sections to NULL.
+
 Wed Dec  6 17:05:37 1995  Ian Lance Taylor  <ian@cygnus.com>
 
        * xcofflink.c (struct xcoff_loader_info): Add export_defineds
index e0d01ea67c759708e92825c770c7f59560828e3a..1107c0416dc34656f4dff09fbf1202b20bc2ba31 100644 (file)
@@ -464,6 +464,7 @@ elf_link_add_object_symbols (abfd, info)
         still implies that the section takes up space in the output
         file.  */
       abfd->sections = NULL;
+      abfd->section_count = 0;
 
       /* If this is the first dynamic object found in the link, create
         the special sections required for dynamic linking.  */