fix ltoff22x relaxation buglet
Richard Henderson
rth@redhat.com
Sat Mar 1 02:45:00 GMT 2003
I can't count to 2**21, apparently.
r~
* elfxx-ia64.c (elfNN_ia64_relax_section): Correct bounds
for ltoff22x relaxation.
Index: elfxx-ia64.c
===================================================================
RCS file: /cvs/src/src/bfd/elfxx-ia64.c,v
retrieving revision 1.69
diff -u -p -r1.69 elfxx-ia64.c
--- elfxx-ia64.c 28 Feb 2003 00:22:46 -0000 1.69
+++ elfxx-ia64.c 1 Mar 2003 02:43:38 -0000
@@ -978,8 +978,8 @@ elfNN_ia64_relax_section (abfd, sec, lin
}
/* If the data is out of range, do nothing. */
- if ((bfd_signed_vma) (symaddr - gp) >= 0x400000
- ||(bfd_signed_vma) (symaddr - gp) < -0x400000)
+ if ((bfd_signed_vma) (symaddr - gp) >= 0x200000
+ ||(bfd_signed_vma) (symaddr - gp) < -0x200000)
continue;
if (r_type == R_IA64_LTOFF22X)
More information about the Binutils
mailing list