aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-arm.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2019-05-22 18:29:20 +0930
committerAlan Modra <amodra@gmail.com>2019-05-22 18:33:39 +0930
commitb0f4fbf81a1cf67d49558b2e8890e5c8628f8403 (patch)
tree13397874fb14dfc75419551f77d0e0f47776f362 /bfd/elf32-arm.c
parent9ec2f606ce9ebfe9b7d1c6d3db0614d19bd03a6b (diff)
downloadgdb-b0f4fbf81a1cf67d49558b2e8890e5c8628f8403.zip
gdb-b0f4fbf81a1cf67d49558b2e8890e5c8628f8403.tar.gz
gdb-b0f4fbf81a1cf67d49558b2e8890e5c8628f8403.tar.bz2
ARM STM32L4XX erratum test failure with MALLOC_PERTURB_
* elf32-arm.c (arm_allocate_glue_section_space): Clear section contents.
Diffstat (limited to 'bfd/elf32-arm.c')
-rw-r--r--bfd/elf32-arm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
index 7f08526..d35d609 100644
--- a/bfd/elf32-arm.c
+++ b/bfd/elf32-arm.c
@@ -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;