diff options
author | Nick Clifton <nickc@redhat.com> | 2013-01-25 14:22:10 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2013-01-25 14:22:10 +0000 |
commit | d79dcc73ac46dad924acf843a2c3546517506f9e (patch) | |
tree | abea293716d7f765389512e00960174efae1a845 /bfd | |
parent | 843b20dc1df1b9ab8e8478b0743ac927e5b132d4 (diff) | |
download | gdb-d79dcc73ac46dad924acf843a2c3546517506f9e.zip gdb-d79dcc73ac46dad924acf843a2c3546517506f9e.tar.gz gdb-d79dcc73ac46dad924acf843a2c3546517506f9e.tar.bz2 |
* 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')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elf32-h8300.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 6dfcb64..e36a37c 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2013-01-25 Michael Schewe <michael.schewe@gmx.net> + + * elf32-h8300.c (elf32_h8_relax_section): When checking for a + second reloc, make sure that the reloc potentially exists first. + 2013-01-24 Nick Clifton <nickc@redhat.com> * archures.c: Add bfd_mach_v850e3v5. diff --git a/bfd/elf32-h8300.c b/bfd/elf32-h8300.c index 388d220..43ac16e 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; |