diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-04-20 08:51:56 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-04-20 08:51:56 +0000 |
commit | 1b0df5314b050529c61178e45d19e56d6b979328 (patch) | |
tree | b82ebb52047446a5e1348605fd967ecffe975500 /bfd/elf-bfd.h | |
parent | 9e6619e285873fe1cb002da4bb7749be40a5627c (diff) | |
download | gdb-1b0df5314b050529c61178e45d19e56d6b979328.zip gdb-1b0df5314b050529c61178e45d19e56d6b979328.tar.gz gdb-1b0df5314b050529c61178e45d19e56d6b979328.tar.bz2 |
bfd/
* elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Fix +1 overrun of
memmove elements.
Diffstat (limited to 'bfd/elf-bfd.h')
-rw-r--r-- | bfd/elf-bfd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h index 39c7de6..735d2b5 100644 --- a/bfd/elf-bfd.h +++ b/bfd/elf-bfd.h @@ -2405,7 +2405,7 @@ extern asection _bfd_elf_large_com_section; 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--; \ |