This is the mail archive of the binutils@sourceware.org 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]

ppc64 "dynreloc miscount" error


Silly me.  I was trying to track dynamic reloc counts when we don't
have any.

	* elf64-ppc.c (ppc64_elf_edit_opd): Don't call dec_dynrel_count
	when relocatable.

Index: bfd/elf64-ppc.c
===================================================================
RCS file: /cvs/src/src/bfd/elf64-ppc.c,v
retrieving revision 1.218
diff -u -p -r1.218 elf64-ppc.c
--- bfd/elf64-ppc.c	12 Jul 2005 12:03:57 -0000	1.218
+++ bfd/elf64-ppc.c	16 Aug 2005 10:03:26 -0000
@@ -6461,8 +6461,9 @@ ppc64_elf_edit_opd (bfd *obfd, struct bf
 
 	      if (skip)
 		{
-		  if (!dec_dynrel_count (rel->r_info, sec, info,
-					 NULL, h, sym_sec))
+		  if (!info->relocatable
+		      && !dec_dynrel_count (rel->r_info, sec, info,
+					    NULL, h, sym_sec))
 		    goto error_ret;
 		}
 	      else

-- 
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]