aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-12-08 22:47:28 +0000
committerIan Lance Taylor <ian@airs.com>1995-12-08 22:47:28 +0000
commit010d9f2d133301df6689f360d6a6b4823837ac6f (patch)
tree9470699bde8577283fa8f18d7548b535e26a6353 /bfd/elflink.h
parent7609ecebac86e6fd1dea5082a1e8395dac76ff50 (diff)
downloadgdb-010d9f2d133301df6689f360d6a6b4823837ac6f.zip
gdb-010d9f2d133301df6689f360d6a6b4823837ac6f.tar.gz
gdb-010d9f2d133301df6689f360d6a6b4823837ac6f.tar.bz2
* elflink.h (elf_link_add_object_symbols): Set section_count to 0
when setting sections to NULL. PR 8600.
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. */