From: Nick Clifton Date: Tue, 21 Nov 2000 19:47:10 +0000 (+0000) Subject: Fix compile time warning, and remove possibility of infinite loop. X-Git-Tag: newlib-1_9_0~491 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a0fc8ba1d8a2640c984480ab0a08ad7325bbee2c;p=external%2Fbinutils.git Fix compile time warning, and remove possibility of infinite loop. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 9321be7..228300f 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2000-11-21 Nick Clifton + + * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and + remove possibility of infinite loop. + 2000-11-20 Kazu Hirata * aix386-core.c: Fix formatting. 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;