Code Address In VTable
Alan Modra
amodra@bigpond.net.au
Fri Oct 11 05:57:00 GMT 2002
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
More information about the Binutils
mailing list