* elfxx-ia64.c (elfNN_ia64_relax_section): Correct bounds
authorRichard Henderson <rth@redhat.com>
Sat, 1 Mar 2003 02:44:45 +0000 (02:44 +0000)
committerRichard Henderson <rth@redhat.com>
Sat, 1 Mar 2003 02:44:45 +0000 (02:44 +0000)
        for ltoff22x relaxation.

bfd/ChangeLog
bfd/elfxx-ia64.c

index 0e87d08c72376f3e946af5035c2360746e2e6b30..869d5c56b3d3b4ed305c9860ed7de823ffee9a37 100644 (file)
@@ -1,3 +1,8 @@
+2003-02-28  Richard Henderson  <rth@redhat.com>
+
+       * elfxx-ia64.c (elfNN_ia64_relax_section): Correct bounds
+       for ltoff22x relaxation.
+
 2003-03-01  Alan Modra  <amodra@bigpond.net.au>
 
        * bfd-in.h (_bfd): Don't define.
index 22c341684394fc29e8ca4a70bd28c7c5c203093e..6678dd6aa32cad1656fecb7e10a1b73f26b67800 100644 (file)
@@ -978,8 +978,8 @@ elfNN_ia64_relax_section (abfd, sec, link_info, again)
            }
 
          /* 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)