From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30148 invoked by alias); 19 Jun 2009 14:42:30 -0000 Received: (qmail 30131 invoked by uid 22791); 19 Jun 2009 14:42:28 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO sibelius.xs4all.nl) (82.92.89.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 19 Jun 2009 14:42:14 +0000 Received: from brahms.sibelius.xs4all.nl (kettenis@localhost [127.0.0.1]) by brahms.sibelius.xs4all.nl (8.14.3/8.14.3) with ESMTP id n5JEg57I016328; Fri, 19 Jun 2009 16:42:05 +0200 (CEST) Received: (from kettenis@localhost) by brahms.sibelius.xs4all.nl (8.14.3/8.14.3/Submit) id n5JEg4QW029005; Fri, 19 Jun 2009 16:42:04 +0200 (CEST) Date: Fri, 19 Jun 2009 14:42:00 -0000 Message-Id: <200906191442.n5JEg4QW029005@brahms.sibelius.xs4all.nl> From: Mark Kettenis To: aristovski@qnx.com CC: gdb-patches@sources.redhat.com In-reply-to: (message from Aleksandar Ristovski on Fri, 19 Jun 2009 10:16:26 -0400) Subject: Re: [patch] solib-svr4.c - allow reading linkmap info from core without executable References: <200906102308.29638.pedro@codesourcery.com> <4A310906.4030603@qnx.com> <200906190004.23937.pedro@codesourcery.com> 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: 2009-06/txt/msg00503.txt.bz2 > From: Aleksandar Ristovski > Date: Fri, 19 Jun 2009 10:16:26 -0400 > > Pedro Alves wrote: > > > > I was thinking on pushing the elf check a bit down instead, > > like the below. However, having now tested this, I see that > > this doesn't work in most of the cores I have here (x86_64-linux). > > In most cases I see, the segment that would contain the program > > headers, as indicated by auxv info, isn't included in the > > core... > > > > (objdump -h) > > Idx Name Size VMA LMA File off Algn > > : > > 6 load1 00000000 0000000000400000 0000000000000000 000008f8 2**0 > > ALLOC, READONLY, CODE > > : > > I'm somewhat amazed that the Linux kernel doesn't dump the auxv stuff. Without the auxv data, debugging core dumps of PIE executables will be impossible. Perhaps the kernel does include the information in the does, but bfd doesn't have the necessary code to turn it into an .auxv section? > It is probably not dumped separately in a note, but if it > is a full core, then it should be retrievable. How do you figure out where to look? Especially for PIE executables this will be very hard. > This is the case I have with Neutrino core files. I suppose Neutrino doesn't support PIE executables?