From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13180 invoked by alias); 14 Nov 2003 01:15:52 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 13172 invoked from network); 14 Nov 2003 01:15:51 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 14 Nov 2003 01:15:51 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id hAE1FpM29267 for ; Thu, 13 Nov 2003 20:15:51 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id hAE1Fp627518 for ; Thu, 13 Nov 2003 20:15:51 -0500 Received: from localhost.localdomain (vpn50-2.rdu.redhat.com [172.16.50.2]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id hAE1Fog0023104; Thu, 13 Nov 2003 20:15:50 -0500 Received: (from kev@localhost) by localhost.localdomain (8.11.6/8.11.6) id hAE1Fin06023; Thu, 13 Nov 2003 18:15:44 -0700 Date: Fri, 14 Nov 2003 01:15:00 -0000 From: Kevin Buettner Message-Id: <1031114011544.ZM6022@localhost.localdomain> In-Reply-To: Andrew Cagney "[rfa:ppc64] Get descriptor FN from the same object file as symbol ".FN"" (Nov 13, 7:24pm) References: <3FB420DB.6030809@redhat.com> To: Andrew Cagney , gdb-patches@sources.redhat.com Subject: Re: [rfa:ppc64] Get descriptor FN from the same object file as symbol ".FN" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-11/txt/msg00284.txt.bz2 On Nov 13, 7:24pm, Andrew Cagney wrote: > The attached tweaks the tail end of the ppc64_sysv_abi_push_dummy_call > code so that it restricts the search for the descriptor FN (that > corresponds to function ".FN") to the object file that contains ".FN". > Given shared libraries, several object files can contain the same symbol > so searching for an unqualified "FN" can end up finding the descriptor > in the wrong shared library :-(. This problem occures when trying to go > backwards from ".malloc" to "malloc". > > 2003-11-13 Andrew Cagney > > * Makefile.in (ppc-sysv-tdep.o): Update dependencies. > * ppc-sysv-tdep.c: Include "objfiles.h". > (ppc64_sysv_abi_push_dummy_call): Provide the > the FN's objfile when looking for the descriptor. Okay. Kevin