From 0b5a8fb957546b1b4867723ec75568c8f2db588f Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 22 Jan 2002 09:05:07 +0000 Subject: [PATCH] * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Correct sign of TOC_BASE_OFF adjustment. --- bfd/ChangeLog | 3 +++ bfd/elf64-ppc.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index ab767b9284..3dc7b9d1ed 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,8 @@ 2002-01-22 Alan Modra + * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Correct sign of + TOC_BASE_OFF adjustment. + * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. * po/SRC-POTFILES.in: Regenerate. diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index d6b75db749..17d6d0ad95 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. */ -- 2.11.0