From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13381 invoked by alias); 27 Jul 2004 21:48:17 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 13317 invoked from network); 27 Jul 2004 21:48:16 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 27 Jul 2004 21:48:16 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i6RLmGe3028484 for ; Tue, 27 Jul 2004 17:48:16 -0400 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 i6RLmGa16087; Tue, 27 Jul 2004 17:48:16 -0400 Received: from localhost.localdomain (vpn50-55.rdu.redhat.com [172.16.50.55]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id i6RLmFSS015336; Tue, 27 Jul 2004 17:48:15 -0400 Received: from saguaro (saguaro.lan [192.168.64.2]) by localhost.localdomain (8.12.11/8.12.10) with SMTP id i6RLm96R001795; Tue, 27 Jul 2004 14:48:10 -0700 Date: Tue, 27 Jul 2004 22:06:00 -0000 From: Kevin Buettner To: "Bloch, Jack" Cc: gdb@sources.redhat.com Subject: Re: Determining base address of shared library from core file Message-Id: <20040727144809.292dbe10@saguaro> In-Reply-To: <7A25937D23A1E64C8E93CB4A50509C2A0310F2CC@stca204a.bus.sc.rolm.com> References: <7A25937D23A1E64C8E93CB4A50509C2A0310F2CC@stca204a.bus.sc.rolm.com> Organization: Red Hat Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SW-Source: 2004-07/txt/msg00350.txt.bz2 On Mon, 26 Jul 2004 14:13:40 -0700 "Bloch, Jack" wrote: > BTW, if I run readelf -d on my executable, it show a debug segment with a > 0x0. I don't have to load the executable into memory somehow do I? Yes, you have to fetch the dynamic section from the loaded process and scan it instead of the contents of the executable. The dynamic linker will have adjusted the in-memory copy of the dynamic section to contain values relevant to the running process. Kevin