diff options
author | Nick Clifton <nickc@redhat.com> | 2013-01-25 14:22:07 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2013-01-25 14:22:07 +0000 |
commit | f5eff0dd15774e52e06ce52cca2bb564aee79bfc (patch) | |
tree | e81657b6140b21660386e5ad0e74cc93b07701e4 /bfd/elf32-h8300.c | |
parent | e2d2162643fbfd7362a45e54221af940e9c2b1e1 (diff) | |
download | binutils-redhat-f5eff0dd15774e52e06ce52cca2bb564aee79bfc.tar.gz |
* elf32-h8300.c (elf32_h8_relax_section): When checking for a
second reloc, make sure that the reloc potentially exists first.
Diffstat (limited to 'bfd/elf32-h8300.c')
-rw-r--r-- | bfd/elf32-h8300.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf32-h8300.c b/bfd/elf32-h8300.c index 388d2205c5..43ac16e551 100644 --- a/bfd/elf32-h8300.c +++ b/bfd/elf32-h8300.c @@ -1239,7 +1239,7 @@ elf32_h8_relax_section (bfd *abfd, asection *sec, second_reloc = 1; } } - if (irel < irelend) + if (irel + 1 < irelend) { Elf_Internal_Rela *next_reloc = irel + 1; arelent bfd_reloc; |