aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-ppc.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-10-11 12:59:06 +0000
committerAlan Modra <amodra@gmail.com>2002-10-11 12:59:06 +0000
commit7f6a7663824722e5915c411988de7d13b5c75574 (patch)
treef4df514949e193274be0363df4c1f86a5ee03480 /bfd/elf64-ppc.c
parentfe213ce218807c778bf853d24865342262a1de10 (diff)
downloadgdb-7f6a7663824722e5915c411988de7d13b5c75574.zip
gdb-7f6a7663824722e5915c411988de7d13b5c75574.tar.gz
gdb-7f6a7663824722e5915c411988de7d13b5c75574.tar.bz2
* elf64-ppc.c (edit_opd): Correct local sym adjustment.
Diffstat (limited to 'bfd/elf64-ppc.c')
-rw-r--r--bfd/elf64-ppc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index 7c6ec10..da7c53f 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)