* elf64-ppc.c (edit_opd): Correct local sym adjustment.
authorAlan Modra <amodra@gmail.com>
Fri, 11 Oct 2002 12:59:06 +0000 (12:59 +0000)
committerAlan Modra <amodra@gmail.com>
Fri, 11 Oct 2002 12:59:06 +0000 (12:59 +0000)
bfd/ChangeLog
bfd/elf64-ppc.c

index 3a59982aba0b5868c727f86fb9bc78e1049aea54..2cfde7c112b09872e90d5aa6d9cd3fd250c34b0e 100644 (file)
@@ -28,7 +28,7 @@
        * elfxx-ia64.c (oor_brl, oor_ip): Conditionally define.
 
        * elf64-ppc.c (edit_opd): Only zero opd syms when function is
-       completely removed.
+       completely removed.  Correct local sym adjustment.
 
 2002-10-10  Stephen Clarke <stephen.clarke@superh.com>
 
index 7c6ec10b276501521491a6312f8619ca98af94d3..da7c53f6e3a33eef83dd60a64921fcca3457664e 100644 (file)
@@ -3804,8 +3804,7 @@ edit_opd (obfd, info)
                             for the function descriptor sym which we
                             don't have at the moment.  So keep an
                             array of adjustments.  */ 
-                         adjust[(rel->r_offset + wptr - rptr) / 24]
-                           = wptr - rptr;
+                         adjust[rel->r_offset / 24] = wptr - rptr;
                        }
 
                      if (wptr != rptr)