aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-vax.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2014-06-16 10:12:12 +0930
committerAlan Modra <amodra@gmail.com>2014-06-16 12:28:23 +0930
commiteb9a5ecfacc42b9b741a3f83f433252b3c7cd77e (patch)
tree1e233bd574952a29a1fdd4e48dde4a40cbbf244b /bfd/elf32-vax.c
parent4b1a927e92e49f333838f8f11e621608cccb3a03 (diff)
downloadgdb-eb9a5ecfacc42b9b741a3f83f433252b3c7cd77e.zip
gdb-eb9a5ecfacc42b9b741a3f83f433252b3c7cd77e.tar.gz
gdb-eb9a5ecfacc42b9b741a3f83f433252b3c7cd77e.tar.bz2
Fix uninitialised VAX .got and .got.plt section
Cures these failures with MALLOC_PERTURB_=1 FAIL: GOT test (executable) FAIL: GOT test (shared library) FAIL: VAX export class call relocation test FAIL: VAX export class data relocation test * elf32-vax.c (elf_vax_size_dynamic_sections): Clear linker created sections.
Diffstat (limited to 'bfd/elf32-vax.c')
-rw-r--r--bfd/elf32-vax.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf32-vax.c b/bfd/elf32-vax.c
index c28caca..1f41867 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;
}