elf64-ppc.c thinko

Alan Modra amodra@bigpond.net.au
Mon Feb 11 22:37:00 GMT 2002


Got the test back to front.  Installing mainline and branch.

bfd/ChangeLog
	* elf64-ppc.c (ppc64_elf_size_stubs): Correct test for crossing
	64k boundary.

Index: bfd/elf64-ppc.c
===================================================================
RCS file: /cvs/src/src/bfd/elf64-ppc.c,v
retrieving revision 1.27
diff -u -p -r1.27 elf64-ppc.c
--- elf64-ppc.c	2002/02/12 06:31:29	1.27
+++ elf64-ppc.c	2002/02/12 06:32:59
@@ -3255,7 +3255,7 @@ ppc64_elf_size_stubs (obfd, info, change
 
   /* 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

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list