diff options
author | Alan Modra <amodra@bigpond.net.au> | 2002-08-23 04:23:37 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2002-08-23 04:23:37 +0000 |
commit | 4d08f8566b458d79169c70ea11d1ed4728e31843 (patch) | |
tree | 48f0680b03f83e805df3ec945db1cfc76d20dbd9 /bfd/elf32-sh.c | |
parent | c1773ee3516bdc8f8a3b5c8aae7010a8ba213a74 (diff) | |
download | gdb-4d08f8566b458d79169c70ea11d1ed4728e31843.tar.gz |
* 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/elf32-sh.c')
-rw-r--r-- | bfd/elf32-sh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf32-sh.c b/bfd/elf32-sh.c index ecde70f6206..b31a2a6d88e 100644 --- a/bfd/elf32-sh.c +++ b/bfd/elf32-sh.c @@ -3895,7 +3895,7 @@ sh_elf_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; } |