From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6089 invoked by alias); 17 Apr 2008 21:31:57 -0000 Received: (qmail 6071 invoked by uid 22791); 17 Apr 2008 21:31:56 -0000 X-Spam-Check-By: sourceware.org Received: from mtagate1.de.ibm.com (HELO mtagate1.de.ibm.com) (195.212.29.150) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 17 Apr 2008 21:31:22 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate1.de.ibm.com (8.13.8/8.13.8) with ESMTP id m3HLVJ7N137840 for ; Thu, 17 Apr 2008 21:31:19 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v8.7) with ESMTP id m3HLVJiV4259986 for ; Thu, 17 Apr 2008 23:31:19 +0200 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m3HLVIdR007147 for ; Thu, 17 Apr 2008 23:31:19 +0200 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with SMTP id m3HLVISH007144; Thu, 17 Apr 2008 23:31:18 +0200 Message-Id: <200804172131.m3HLVISH007144@d12av02.megacenter.de.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Thu, 17 Apr 2008 23:31:18 +0200 Subject: Re: [RFA/solib-svr4] use AT_BASE auxiliary entry to compute load base address To: drow@false.org (Daniel Jacobowitz) Date: Thu, 17 Apr 2008 21:45:00 -0000 From: "Ulrich Weigand" Cc: brobecker@adacore.com (Joel Brobecker), gdb-patches@sourceware.org In-Reply-To: <20080417173711.GN17488@caradoc.them.org> from "Daniel Jacobowitz" at Apr 17, 2008 01:37:11 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-04/txt/msg00371.txt.bz2 Daniel Jacobowitz wrote: > On Thu, Apr 17, 2008 at 05:11:38PM +0200, Ulrich Weigand wrote: > > GDB used to work correctly in the presence of prelinking anyway, > > because for regular shared libraries it detected that mismatch by > > comparing the load addresses from the BFD it reads with those > > recorded in the dynamic loader's data structures (LM_ADDR_CHECK), > > and adjusting its expectations if it detects prelinking. > > Can we read the dynamic linker's ELF header from the target, to > compare? > > Wait, no, we can't... if we knew where it was loaded we wouldn't > need AT_BASE. Well, we could ask gdbserver to read from the > target filesystem for us... Yes, that's on my to-do list anyway ... However, even that would not fix the same issue with core files (if prelink changed a library between core file generation and use in GDB). Bye, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com