diff --git a/gnu/dist/bfd/coff-sh.c b/gnu/dist/bfd/coff-sh.c index fd4f2180bce3..ca68c564c766 100644 --- a/gnu/dist/bfd/coff-sh.c +++ b/gnu/dist/bfd/coff-sh.c @@ -1039,7 +1039,7 @@ sh_relax_delete_bytes (abfd, sec, addr, count) val = bfd_get_32 (abfd, contents + nraddr); val += sym.n_value; - if (val >= addr && val < toaddr) + if (val > addr && val < toaddr) bfd_put_32 (abfd, val - count, contents + nraddr); } start = stop = addr; @@ -1275,7 +1275,7 @@ sh_relax_delete_bytes (abfd, sec, addr, count) val = bfd_get_32 (abfd, ocontents + irelscan->r_vaddr - o->vma); val += sym.n_value; - if (val >= addr && val < toaddr) + if (val > addr && val < toaddr) bfd_put_32 (abfd, val - count, ocontents + irelscan->r_vaddr - o->vma); diff --git a/gnu/dist/bfd/elf32-sh.c b/gnu/dist/bfd/elf32-sh.c index 0cdfca9546b0..f525e90291c4 100644 --- a/gnu/dist/bfd/elf32-sh.c +++ b/gnu/dist/bfd/elf32-sh.c @@ -1095,7 +1095,7 @@ sh_elf_relax_delete_bytes (abfd, sec, addr, count) val = bfd_get_32 (abfd, contents + nraddr); val += sym.st_value; - if (val >= addr && val < toaddr) + if (val > addr && val < toaddr) bfd_put_32 (abfd, val - count, contents + nraddr); } } @@ -1318,7 +1318,7 @@ sh_elf_relax_delete_bytes (abfd, sec, addr, count) val = bfd_get_32 (abfd, ocontents + irelscan->r_offset); val += sym.st_value; - if (val >= addr && val < toaddr) + if (val > addr && val < toaddr) bfd_put_32 (abfd, val - count, ocontents + irelscan->r_offset); }