From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29240 invoked by alias); 14 Oct 2011 17:25:34 -0000 Received: (qmail 29215 invoked by uid 22791); 14 Oct 2011 17:25:31 -0000 X-SWARE-Spam-Status: No, hits=-6.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS 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, 14 Oct 2011 17:25:14 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p9EHPCjr003475 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 14 Oct 2011 13:25:12 -0400 Received: from host1.jankratochvil.net (ovpn-116-16.ams2.redhat.com [10.36.116.16]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p9EHPAaG004553 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 14 Oct 2011 13:25:12 -0400 Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p9EHP96W005318; Fri, 14 Oct 2011 19:25:09 +0200 Received: (from jkratoch@localhost) by host1.jankratochvil.net (8.14.4/8.14.4/Submit) id p9EHP8j1005313; Fri, 14 Oct 2011 19:25:08 +0200 Date: Fri, 14 Oct 2011 17:29:00 -0000 From: Jan Kratochvil To: Mike Frysinger Cc: Aleksandar Ristovski , gdb@sources.redhat.com Subject: Re: working with split debug files and sectionless ELFs Message-ID: <20111014172508.GA4939@host1.jankratochvil.net> References: <201110121335.56792.vapier@gentoo.org> <20111014154924.GA30442@host1.jankratochvil.net> <20111014162531.GA978@host1.jankratochvil.net> <201110141305.47508.vapier@gentoo.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201110141305.47508.vapier@gentoo.org> User-Agent: Mutt/1.5.21 (2010-09-15) 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: 2011-10/txt/msg00151.txt.bz2 On Fri, 14 Oct 2011 19:05:46 +0200, Mike Frysinger wrote: > build-id is a section. my ELF has no sections. i'm back where i started :). build-id is in a note being both a section and a segment. GDB currently reads it as a section but this can be changed. Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align [...] NOTE 0x000254 0x0000000000400254 0x0000000000400254 0x000044 0x000044 R 0x4 [...] Notes at offset 0x00000274 with length 0x00000024: Owner Data size Description GNU 0x00000014 NT_GNU_BUILD_ID (unique build ID bitstring) It was designed by Roland McGrath exactly this way so that in all cases of debug info stripping build-id remains in the main executable. Otherwise build-id would be useless. Thanks, Jan