* elflink.h (elf_link_add_object_symbols): Set section_count to 0

when setting sections to NULL.
PR 8600.
This commit is contained in:
Ian Lance Taylor
1995-12-08 22:47:28 +00:00
parent 7609ecebac
commit 010d9f2d13
2 changed files with 6 additions and 0 deletions

View 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. */