aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.h
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/elflink.h')
-rw-r--r--bfd/elflink.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/elflink.h b/bfd/elflink.h
index e0d01ea..1107c04 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. */