This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Code Address In VTable


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]