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]

elf64-ppc.c thinko


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


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