diff options
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elf32-arm.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 4f523fa..f2b2ec5 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,10 @@ 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 processing on "size error in section". 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; |