* elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Fix +1 overrun of
memmove elements.
+2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Fix +1 overrun of
+ memmove elements.
+
2011-03-26 John Marino <binutils@marino.st>
* config.bfd: Add x86_64-*-dragonfly*, fix i386-*-dragonfly*.
rel_hdr = _bfd_elf_single_rel_hdr (input_section); \
rel_hdr->sh_size -= rel_hdr->sh_entsize; \
\
- memmove (rel, rel + 1, (relend - rel) * sizeof (*rel)); \
+ memmove (rel, rel + 1, (relend - rel - 1) * sizeof (*rel)); \
\
input_section->reloc_count--; \
relend--; \