aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-sh.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2000-11-21 19:47:10 +0000
committerNick Clifton <nickc@redhat.com>2000-11-21 19:47:10 +0000
commita0fc8ba1d8a2640c984480ab0a08ad7325bbee2c (patch)
treeeaedc3e437410b1e79855f3c884bb2bf59409405 /bfd/elf32-sh.c
parent732d96b6ca8092cee2893de8aa1f66a5210b23ea (diff)
downloadgdb-a0fc8ba1d8a2640c984480ab0a08ad7325bbee2c.zip
gdb-a0fc8ba1d8a2640c984480ab0a08ad7325bbee2c.tar.gz
gdb-a0fc8ba1d8a2640c984480ab0a08ad7325bbee2c.tar.bz2
Fix compile time warning, and remove possibility of infinite loop.
Diffstat (limited to 'bfd/elf32-sh.c')
-rw-r--r--bfd/elf32-sh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf32-sh.c b/bfd/elf32-sh.c
index a348303..1132942 100644
--- a/bfd/elf32-sh.c
+++ b/bfd/elf32-sh.c
@@ -789,7 +789,7 @@ sh_elf_reloc_loop (r_type, input_bfd, input_section, contents, addr,
{
bfd_vma start0 = start - 4;
- while (start0 >= 0 && IS_PPI (contents + start0))
+ while (start0 && IS_PPI (contents + start0))
start0 -= 2;
start0 = start - 2 - ((start - start0) & 2);
start = start0 - cum_diff - 2;