aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-sh64.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-08-23 04:23:37 +0000
committerAlan Modra <amodra@gmail.com>2002-08-23 04:23:37 +0000
commit957dcaa8ef9a9eb3bbb347f666dcc64a24879371 (patch)
treea3b3c07db1844f04b3d3d9aab57cd612f31cb962 /bfd/elf64-sh64.c
parentdd039bc424721c1d86424e39d2c1038dcb8e22a5 (diff)
downloadgdb-957dcaa8ef9a9eb3bbb347f666dcc64a24879371.zip
gdb-957dcaa8ef9a9eb3bbb347f666dcc64a24879371.tar.gz
gdb-957dcaa8ef9a9eb3bbb347f666dcc64a24879371.tar.bz2
* bfd/elf32-sh.c (sh_elf_size_dynamic_sections): Zero initialize
dynamic section. * bfd/elf64-sh64.c (sh64_elf64_size_dynamic_sections): Likewise.
Diffstat (limited to 'bfd/elf64-sh64.c')
-rw-r--r--bfd/elf64-sh64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf64-sh64.c b/bfd/elf64-sh64.c
index b57cc08..48e7e49 100644
--- a/bfd/elf64-sh64.c
+++ b/bfd/elf64-sh64.c
@@ -3717,7 +3717,7 @@ sh64_elf64_size_dynamic_sections (output_bfd, info)
}
/* Allocate memory for the section contents. */
- s->contents = (bfd_byte *) bfd_alloc (dynobj, s->_raw_size);
+ s->contents = (bfd_byte *) bfd_zalloc (dynobj, s->_raw_size);
if (s->contents == NULL && s->_raw_size != 0)
return false;
}