From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21889 invoked by alias); 6 Feb 2007 09:59:25 -0000 Received: (qmail 21879 invoked by uid 22791); 6 Feb 2007 09:59:24 -0000 X-Spam-Check-By: sourceware.org Received: from ns.suse.de (HELO mx1.suse.de) (195.135.220.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 06 Feb 2007 09:59:12 +0000 Received: from Relay1.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id AB862121D9; Tue, 6 Feb 2007 10:59:09 +0100 (CET) From: Andreas Schwab To: Paul Gilliam Cc: gdb@sourceware.org Subject: Re: /lib64/ld64.so.1 not being added to target sections list on ppc64 References: X-Yow: BI-BI-BI-BI-BI-BI-BI-BI-BI-BI-BI-BI-BI-BI-BI-BI-BI-BI-BI-BI-BI-BI-BI-BI-BI-BI- Date: Tue, 06 Feb 2007 09:59:00 -0000 In-Reply-To: (Paul Gilliam's message of "Mon, 5 Feb 2007 17:33:21 -0800") Message-ID: User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-02/txt/msg00034.txt.bz2 Paul Gilliam writes: > There is another table of sections that is used when the gdb command 'info > symbol' is used. If I go: > (gdb) p &malloc > (gdb) info symbol $1 > > gdb responds 'malloc is in the .opd section' > > I don't understand: > 1) why are there two section tables? > 2) why aren't sections from /lib64/ld64.so.1 being loaded into the target > sections table? > 3) why is the function pointer for 'malloc' pointing to a plt in the > /lib64/ld64.so object and not one in the main executable? The problem is that there are two malloc implementation, the early one in ld64.so and the real one in libc.so. Unless you have debugging symbols for libc.so the real one is never found. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."