From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1315 invoked by alias); 14 Oct 2011 17:34:03 -0000 Received: (qmail 1238 invoked by uid 22791); 14 Oct 2011 17:34:01 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp.gentoo.org (HELO smtp.gentoo.org) (140.211.166.183) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 14 Oct 2011 17:33:46 +0000 Received: from vapier.localnet (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 15C421B400A; Fri, 14 Oct 2011 17:33:46 +0000 (UTC) From: Mike Frysinger To: Jan Kratochvil Subject: Re: working with split debug files and sectionless ELFs Date: Sat, 15 Oct 2011 05:28:00 -0000 User-Agent: KMail/1.13.7 (Linux/3.1.0-rc4; KDE/4.6.5; x86_64; ; ) Cc: Aleksandar Ristovski , gdb@sources.redhat.com References: <201110121335.56792.vapier@gentoo.org> <201110141305.47508.vapier@gentoo.org> <20111014172508.GA4939@host1.jankratochvil.net> In-Reply-To: <20111014172508.GA4939@host1.jankratochvil.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3461328.rZcC4zTc5A"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201110141333.45923.vapier@gentoo.org> 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/msg00154.txt.bz2 --nextPart3461328.rZcC4zTc5A Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-length: 1121 On Friday 14 October 2011 13:25:08 Jan Kratochvil wrote: > 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 > > :). >=20 > 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. >=20 > Program Headers: > Type Offset VirtAddr PhysAddr FileSiz=20 > 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 bitstrin= g) >=20 > 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. ah, wasn't aware of it also being in the program headers. yes, i should be= =20 able to leverage this, once we fix gdb to fall back to the program header w= hen=20 the section isn't found. -mike --nextPart3461328.rZcC4zTc5A Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. Content-length: 836 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iQIcBAABAgAGBQJOmHJ5AAoJEEFjO5/oN/WBt5EP/394o6dpYwwgVxoOPZORkLjF VzmQ7fLVOkbG6DN6zLVgOIjsYgYYwNhPYSOjB1dHyrnuADxzPHQyCvEmEgLvFVcP YYUuB62XlRXXAn5iWY35EpQyp8fb/elq74a9cYDeY+4CHiXguLkUt77gCwbv0hHo 0P8BU97RQHMeOJPKFXlaw9J3rYOh5TXWqOGVqifh/SaCd02WLcEznpimPGa8z/UQ lM1jWNlhAd9K/7VZ+TcHNpmJ8+rDWg8onIuFYPm3KAwm+CWkLh6IUWLAWQtg1d/Q /WJMRINXbKrnQjj2PpfOUG1JZ3lsmwRRwUFM+23Jt1gzDecMdk+JAknDMA7C4ZUE GahbTy5obpYFnMTuhxSbcPUo1wQE2VPFUK5/JlHRqNtkx/5AijhDwmm8+eewq95c VFztE8/mMX/ldwM92beHGWCCDSJ5C3JLpp1EhxXhqdvSpXQst+qMxwhBwc9djZO/ Au5VWpWHf6rYXLxUm0xi3TecCzAWSwlzleqif/9wppV/wZdYpvGcrkK+5B1hsvst q3QaUOGA2Zcba6nTk8U5eHDEWowEUHeSHZwunjYw0iE2nROpwCv6d8AqmTuXw66P nDK70jREPNDbt25fnkTLLyLe3I1A6us7ihtWpSKE1h9WQt4l83sB6AMmhaTIYdGr 4ZdCpusZbkBnGoay7XE2 =yu3b -----END PGP SIGNATURE----- --nextPart3461328.rZcC4zTc5A--