This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Another small ppc64 fix
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sources dot redhat dot com
- Date: Tue, 22 Jan 2002 19:34:31 +1030
- Subject: Another small ppc64 fix
Corrects a thinko.
* elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Correct sign of
TOC_BASE_OFF adjustment.
Those watching binutils-cvs mailing list will see I've also updated
Makefile dependencies and regenerated po/ files in a few dirs. If
you really want to see the diffs, get them from CVS. ;)
--
Alan Modra
IBM OzLabs - Linux Technology Centre
Index: bfd/elf64-ppc.c
===================================================================
RCS file: /cvs/src/src/bfd/elf64-ppc.c,v
retrieving revision 1.19
diff -u -p -r1.19 elf64-ppc.c
--- elf64-ppc.c 2002/01/21 12:15:07 1.19
+++ elf64-ppc.c 2002/01/22 08:42:26
@@ -4384,7 +4384,7 @@ ppc64_elf_finish_dynamic_sections (outpu
/* 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. */