summaryrefslogtreecommitdiff
path: root/bfd/elf64-ppc.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-01-22 09:05:07 +0000
committerAlan Modra <amodra@gmail.com>2002-01-22 09:05:07 +0000
commit60ee0d4a8bc8de293b6161b6154b746388633029 (patch)
treee4ac2378de0a205df9871f19004c66f66c30108e /bfd/elf64-ppc.c
parentc0ef99a773eb736d8c95264c5ee3f165290a1bd3 (diff)
downloadbinutils-gdb-60ee0d4a8bc8de293b6161b6154b746388633029.tar.gz
* elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Correct sign of
TOC_BASE_OFF adjustment.
Diffstat (limited to 'bfd/elf64-ppc.c')
-rw-r--r--bfd/elf64-ppc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index d6b75db7494..17d6d0ad953 100644
--- a/bfd/elf64-ppc.c
+++ b/bfd/elf64-ppc.c
@@ -4384,7 +4384,7 @@ ppc64_elf_finish_dynamic_sections (output_bfd, info)
/* Fill in the first entry in the global offset table.
We use it to hold the link-time TOCbase. */
bfd_put_64 (output_bfd,
- elf_gp (output_bfd) - TOC_BASE_OFF,
+ elf_gp (output_bfd) + TOC_BASE_OFF,
htab->sgot->contents);
/* Set .got entry size. */