From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31335 invoked by alias); 7 May 2010 13:23:32 -0000 Received: (qmail 31322 invoked by uid 22791); 7 May 2010 13:23:30 -0000 X-SWARE-Spam-Status: No, hits=-5.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 07 May 2010 13:23:24 +0000 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o47DNF0I026792 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 7 May 2010 09:23:16 -0400 Received: from host0.dyn.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o47DNC3H019619 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 7 May 2010 09:23:14 -0400 Received: from host0.dyn.jankratochvil.net (localhost [127.0.0.1]) by host0.dyn.jankratochvil.net (8.14.4/8.14.4) with ESMTP id o47DNCqj009828; Fri, 7 May 2010 15:23:12 +0200 Received: (from jkratoch@localhost) by host0.dyn.jankratochvil.net (8.14.4/8.14.4/Submit) id o47DNAfG009827; Fri, 7 May 2010 15:23:10 +0200 Date: Fri, 07 May 2010 13:23:00 -0000 From: Jan Kratochvil To: Andrew Stubbs Cc: gdb@sourceware.org Subject: Re: debug problem with prelinked libraries Message-ID: <20100507132310.GA6374@host0.dyn.jankratochvil.net> References: <4BE16915.7080501@codesourcery.com> <20100505143213.GA4735@caradoc.them.org> <4BE187D8.4050804@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4BE187D8.4050804@codesourcery.com> User-Agent: Mutt/1.5.20 (2009-08-17) 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: 2010-05/txt/msg00035.txt.bz2 On Wed, 05 May 2010 16:59:36 +0200, Andrew Stubbs wrote: > > prelink includes code to manipulate the contents of the debug info. [...] > Maybe prelink has failed to relocate the debug info in this case? The attached patch should fix it. Although SHT_MIPS_DWARF value should be recognized only for e_machine as EM_MIPS or EM_MIPS_RS3_LE or EM_MIPS_X? Or are there some other rules? Regards, Jan --- prelink/src/dso.c-orig 2010-04-13 16:41:15.000000000 +0200 +++ prelink/src/dso.c 2010-05-07 15:16:25.000000000 +0200 @@ -1381,6 +1381,7 @@ adjust_dso (DSO *dso, GElf_Addr start, G switch (dso->shdr[i].sh_type) { case SHT_PROGBITS: + case SHT_MIPS_DWARF: name = strptr (dso, dso->ehdr.e_shstrndx, dso->shdr[i].sh_name); if (strcmp (name, ".stab") == 0 && adjust_stabs (dso, i, start, adjust))