summaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf32-vax.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index a0402ada9f3..d08bf24231a 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2014-06-16 Alan Modra <amodra@gmail.com>
+
+ * elf32-vax.c (elf_vax_size_dynamic_sections): Clear linker
+ created sections.
+
2014-06-13 Omair Javaid <omair.javaid@linaro.org>
* elfxx-aarch64.c (stdarg.h): Include.
diff --git a/bfd/elf32-vax.c b/bfd/elf32-vax.c
index c28cacadda2..1f418672424 100644
--- a/bfd/elf32-vax.c
+++ b/bfd/elf32-vax.c
@@ -1221,7 +1221,7 @@ elf_vax_size_dynamic_sections (bfd *output_bfd, struct bfd_link_info *info)
continue;
/* Allocate memory for the section contents. */
- s->contents = (bfd_byte *) bfd_alloc (dynobj, s->size);
+ s->contents = (bfd_byte *) bfd_zalloc (dynobj, s->size);
if (s->contents == NULL)
return FALSE;
}