from ChangeLog:
 > 	* coff-sh.c (sh_relax_delete_bytes): Correct address comparisons
 > 	when handling 32 bit immediate relocs.
 > 	* elf32-sh.c (sh_elf_relax_delete_bytes): Likewise.
This commit is contained in:
msaitoh 2001-03-01 10:39:20 +00:00
parent db6f3bcf39
commit 67087bcc78
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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);
}