mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-26 03:24:41 +08:00
bfd/
* elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Fix +1 overrun of memmove elements.
This commit is contained in:
parent
9e6619e285
commit
1b0df5314b
@ -1,3 +1,8 @@
|
||||
2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||
|
||||
* elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Fix +1 overrun of
|
||||
memmove elements.
|
||||
|
||||
2011-04-20 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* libbfd.c (bfd_log2): Do return rounded up value.
|
||||
|
@ -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--; \
|
||||
|
Loading…
Reference in New Issue
Block a user