This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]