diff --git a/ld/ChangeLog b/ld/ChangeLog index fe68e6ded9..01b93c52cb 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2021-03-15 Jan Beulich + + * pe-dll.c (generate_reloc): Drop padding to reloc_s->size. + 2021-03-12 Alan Modra * Makefile.am (ALL_EMULATION_SOURCES): Move riscv files to.. diff --git a/ld/pe-dll.c b/ld/pe-dll.c index afcf6fea93..eaecb951ef 100644 --- a/ld/pe-dll.c +++ b/ld/pe-dll.c @@ -1752,9 +1752,6 @@ generate_reloc (bfd *abfd, struct bfd_link_info *info) if (page_ptr != (bfd_vma) -1) bfd_put_32 (abfd, reloc_sz - page_ptr, reloc_d + page_ptr + 4); - - while (reloc_sz < reloc_s->size) - reloc_d[reloc_sz++] = 0; } /* Given the exiting def_file structure, print out a .DEF file that