* elf64-ppc.c (edit_opd): Correct local sym adjustment.

This commit is contained in:
Alan Modra 2002-10-11 12:59:06 +00:00
parent fe213ce218
commit 7f6a766382
2 changed files with 2 additions and 3 deletions

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

View 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)