This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: elf64-ppc.c question
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Mon, 7 Oct 2002 09:34:55 +0930
- Subject: Re: elf64-ppc.c question
- References: <20021006231642.G3451@sunsite.ms.mff.cuni.cz>
On Sun, Oct 06, 2002 at 11:16:42PM +0200, Jakub Jelinek wrote:
> Maybe I'm too sleepy, but where is indx incremented in
> ppc64_elf_build_stubs?
Oops! And thanks..
* elf64-ppc.c (ppc64_elf_build_stubs): Increment .glink indx.
Index: bfd/elf64-ppc.c
===================================================================
RCS file: /cvs/src/src/bfd/elf64-ppc.c,v
retrieving revision 1.64
diff -u -p -r1.64 elf64-ppc.c
--- bfd/elf64-ppc.c 26 Sep 2002 05:19:12 -0000 1.64
+++ bfd/elf64-ppc.c 7 Oct 2002 00:00:23 -0000
@@ -5161,6 +5161,7 @@ ppc64_elf_build_stubs (info)
}
bfd_put_32 (htab->sglink->owner,
B_DOT | ((htab->sglink->contents - p) & 0x3fffffc), p);
+ indx++;
p += 4;
}
htab->sglink->_cooked_size = p - htab->sglink->contents;
--
Alan Modra
IBM OzLabs - Linux Technology Centre