This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Code Address In VTable
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sources dot redhat dot com
- Cc: Michal Ostrowski <mostrows at watson dot ibm dot com>, David Edelsohn <dje at watson dot ibm dot com>, Peter Bergner <bergner at vnet dot ibm dot com>, Olaf Hering <olh at suse dot de>, Andreas Jaeger <aj at suse dot de>
- Date: Fri, 11 Oct 2002 22:27:55 +0930
- Subject: Re: Code Address In VTable
- References: <1034302579.31498.116735.camel@brick> <20021011140428.H979@bubble.sa.bigpond.net.au>
On Fri, Oct 11, 2002 at 02:04:28PM +0930, Alan Modra wrote:
> The last change I made to edit_opd broke linkonce function descriptor
> symbols.
More than that, the adjustment for local syms was wrong.
* elf64-ppc.c (edit_opd): Correct local sym adjustment.
Index: bfd/elf64-ppc.c
===================================================================
RCS file: /cvs/src/src/bfd/elf64-ppc.c,v
retrieving revision 1.68
diff -u -p -r1.68 elf64-ppc.c
--- bfd/elf64-ppc.c 11 Oct 2002 08:33:11 -0000 1.68
+++ bfd/elf64-ppc.c 11 Oct 2002 12:48:52 -0000
@@ -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)
--
Alan Modra
IBM OzLabs - Linux Technology Centre