Fix PR savannah/1417:
authorStephane Carrez <stcarrez@nerim.fr>
Sun, 1 Dec 2002 13:24:03 +0000 (13:24 +0000)
committerStephane Carrez <stcarrez@nerim.fr>
Sun, 1 Dec 2002 13:24:03 +0000 (13:24 +0000)
* elf32-m68hc11.c (m68hc11_elf_relax_delete_bytes): Don't adjust
branch if it goes to the start of the deleted region.

bfd/ChangeLog
bfd/elf32-m68hc11.c

index ae96c5a3c4b9ed77a1cdbe9820ac6746c607f5a9..15468ab4a06e3e007beb341e9bbca36f1c341fc2 100644 (file)
@@ -1,3 +1,9 @@
+2002-12-01  Stephane Carrez  <stcarrez@nerim.fr>
+
+       Fix PR savannah/1417:
+       * elf32-m68hc11.c (m68hc11_elf_relax_delete_bytes): Don't adjust
+       branch if it goes to the start of the deleted region.
+
 2002-12-01  Stephane Carrez  <stcarrez@nerim.fr>
 
        * bfd-in2.h (bfd_mach_m6812): Rebuild.
index aa6cb515161df233554314d5990da253e8efe9ce..98ea6a69cd5310cb1e687281864806e7c0333451 100644 (file)
@@ -1194,7 +1194,7 @@ m68hc11_elf_relax_delete_bytes (abfd, sec, addr, count)
           offset = bfd_get_8 (abfd, contents + irel->r_offset + branch_pos);
           raddr += old_offset;
           raddr += ((unsigned short) offset | ((offset & 0x80) ? 0xff00 : 0));
-          if (irel->r_offset < addr && raddr >= addr)
+          if (irel->r_offset < addr && raddr > addr)
             {
               offset -= count;
               bfd_put_8 (abfd, offset, contents + irel->r_offset + branch_pos);
This page took 0.031827 seconds and 4 git commands to generate.