Fix compile time warning, and remove possibility of infinite loop.
authorNick Clifton <nickc@redhat.com>
Tue, 21 Nov 2000 19:47:10 +0000 (19:47 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 21 Nov 2000 19:47:10 +0000 (19:47 +0000)
bfd/ChangeLog
bfd/elf32-sh.c

index 9321be7c0dc89a98ecbc885377263f071f1c2748..228300f3a3baac56d02a40c7d7e65714510f05bb 100644 (file)
@@ -1,3 +1,8 @@
+2000-11-21  Nick Clifton  <nickc@redhat.com>
+
+       * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
+       remove possibility of infinite loop.
+
 2000-11-20  Kazu Hirata  <kazu@hxi.com>
 
        * aix386-core.c: Fix formatting.
index a3483035ed530e9496e4739d89ddb81f7107de71..11329423b4b67601fb2f10aa886e5cec2908e1ca 100644 (file)
@@ -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;
This page took 0.032896 seconds and 4 git commands to generate.