* elf64-ppc.c (ppc64_elf_size_stubs): Correct test for crossing
authorAlan Modra <amodra@gmail.com>
Tue, 12 Feb 2002 06:34:57 +0000 (06:34 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 12 Feb 2002 06:34:57 +0000 (06:34 +0000)
64k boundary.

bfd/ChangeLog
bfd/elf64-ppc.c

index a8d4b87d7154ba101024b2f8f1970da784e5b10e..bd3fc783f3855a1d39cb8749b59928267a511e0b 100644 (file)
@@ -1,5 +1,8 @@
 2002-02-12  Alan Modra  <amodra@bigpond.net.au>
 
+       * elf64-ppc.c (ppc64_elf_size_stubs): Correct test for crossing
+       64k boundary.
+
        * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Add dynamic
        DT_PPC64_OPD and DT_PPC64_OPDSZ tags.
        (ppc64_elf_finish_dynamic_sections): Set values for them.
index e0fb9bfaa98e99525823771d124873fe02f4da58..cca9b7f2bda6db3a58c2476c1a8ec869096ce569 100644 (file)
@@ -3255,7 +3255,7 @@ ppc64_elf_size_stubs (obfd, info, changed)
 
   /* If the .plt doesn't have any entries crossing a 64k boundary,
      then there is no need for bigger stubs.  */
-  if (next_64k <= plt_offset + htab->splt->_raw_size)
+  if (plt_offset + htab->splt->_raw_size <= next_64k)
     return true;
 
   /* OK, so we have at least one transition.  Since .plt entries are