This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
fix ltoff22x relaxation buglet
- From: Richard Henderson <rth at redhat dot com>
- To: binutils at sources dot redhat dot com
- Date: Fri, 28 Feb 2003 18:45:42 -0800
- Subject: fix ltoff22x relaxation buglet
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)