From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3428 invoked by alias); 11 Oct 2002 12:57:59 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 3420 invoked from network); 11 Oct 2002 12:57:58 -0000 Received: from unknown (HELO mta02bw.bigpond.com) (139.134.6.34) by sources.redhat.com with SMTP; 11 Oct 2002 12:57:58 -0000 Received: from bubble.local ([144.135.24.84]) by mta02bw.bigpond.com (Netscape Messaging Server 4.15 mta02bw Jul 16 2002 22:47:55) with SMTP id H3TIOJ00.JCP for ; Fri, 11 Oct 2002 22:57:55 +1000 Received: from CPE-144-136-184-138.sa.bigpond.net.au ([144.136.184.138]) by bwmam06.mailsvc.email.bigpond.com(MailRouter V3.0n 53/2185907); 11 Oct 2002 22:57:55 Received: (qmail 23207 invoked by uid 179); 11 Oct 2002 12:57:55 -0000 Date: Fri, 11 Oct 2002 05:57:00 -0000 From: Alan Modra To: binutils@sources.redhat.com Cc: Michal Ostrowski , David Edelsohn , Peter Bergner , Olaf Hering , Andreas Jaeger Subject: Re: Code Address In VTable Message-ID: <20021011222755.S979@bubble.sa.bigpond.net.au> Mail-Followup-To: binutils@sources.redhat.com, Michal Ostrowski , David Edelsohn , Peter Bergner , Olaf Hering , Andreas Jaeger References: <1034302579.31498.116735.camel@brick> <20021011140428.H979@bubble.sa.bigpond.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20021011140428.H979@bubble.sa.bigpond.net.au>; from amodra@bigpond.net.au on Fri, Oct 11, 2002 at 02:04:28PM +0930 X-SW-Source: 2002-10/txt/msg00242.txt.bz2 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