ARM STM32L4XX erratum test failure with MALLOC_PERTURB_

* elf32-arm.c (arm_allocate_glue_section_space): Clear section
	contents.
This commit is contained in:
Alan Modra 2019-05-22 18:29:20 +09:30
parent 9ec2f606ce
commit b0f4fbf81a
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2019-05-22 Alan Modra <amodra@gmail.com>
* elf32-arm.c (arm_allocate_glue_section_space): Clear section
contents.
2019-05-22 Alan Modra <amodra@gmail.com>
* vms-alpha.c (_bfd_vms_write_etir): Don't attempt further

View File

@ -7222,7 +7222,7 @@ arm_allocate_glue_section_space (bfd * abfd, bfd_size_type size, const char * na
s = bfd_get_linker_section (abfd, name);
BFD_ASSERT (s != NULL);
contents = (bfd_byte *) bfd_alloc (abfd, size);
contents = (bfd_byte *) bfd_zalloc (abfd, size);
BFD_ASSERT (s->size == size);
s->contents = contents;