From: Ian Lance Taylor Date: Fri, 8 Dec 1995 22:47:28 +0000 (+0000) Subject: * elflink.h (elf_link_add_object_symbols): Set section_count to 0 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=010d9f2d133301df6689f360d6a6b4823837ac6f;p=binutils-gdb.git * elflink.h (elf_link_add_object_symbols): Set section_count to 0 when setting sections to NULL. PR 8600. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 31e647cc4ac..ab20f59b5f6 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +Fri Dec 8 17:47:07 1995 Ian Lance Taylor + + * 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 * xcofflink.c (struct xcoff_loader_info): Add export_defineds diff --git a/bfd/elflink.h b/bfd/elflink.h index e0d01ea67c7..1107c0416dc 100644 --- a/bfd/elflink.h +++ b/bfd/elflink.h @@ -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. */