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.
This commit is contained in:
Alan Modra 2014-06-16 10:12:12 +09:30
parent 4b1a927e92
commit eb9a5ecfac
2 changed files with 6 additions and 1 deletions

View File

@ -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.

View File

@ -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;
}