ppc64 "dynreloc miscount" error

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

ppc64 "dynreloc miscount" error

Alan Modra
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