From d2e9ebf48d37a635f2a9e8732efc08ef61c08c47 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 11 Oct 2002 12:59:06 +0000 Subject: [PATCH] * elf64-ppc.c (edit_opd): Correct local sym adjustment. --- bfd/ChangeLog | 2 +- bfd/elf64-ppc.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 3a59982aba..2cfde7c112 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -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 diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index 7c6ec10b27..da7c53f6e3 100644 --- a/bfd/elf64-ppc.c +++ b/bfd/elf64-ppc.c @@ -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) -- 2.11.0