From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1IwdUJ-00089Q-75 for mharc-grub-devel@gnu.org; Mon, 26 Nov 2007 07:54:59 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IwdUH-00088l-Dh for grub-devel@gnu.org; Mon, 26 Nov 2007 07:54:57 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IwdUG-00088I-Al for grub-devel@gnu.org; Mon, 26 Nov 2007 07:54:56 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IwdUG-00088F-5n for grub-devel@gnu.org; Mon, 26 Nov 2007 07:54:56 -0500 Received: from mx1.redhat.com ([66.187.233.31]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IwdUA-0005FP-SM; Mon, 26 Nov 2007 07:54:51 -0500 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.1) with ESMTP id lAQCsnwv027154; Mon, 26 Nov 2007 07:54:49 -0500 Received: from pobox.stuttgart.redhat.com (pobox.stuttgart.redhat.com [172.16.2.10]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id lAQCsnCB022647; Mon, 26 Nov 2007 07:54:49 -0500 Received: from [10.34.0.179] (dhcp-0-179.brq.redhat.com [10.34.0.179]) by pobox.stuttgart.redhat.com (8.13.1/8.13.1) with ESMTP id lAQCsmQi026692; Mon, 26 Nov 2007 07:54:48 -0500 From: Lubomir Kundrak To: Pavel Roskin In-Reply-To: <1196080540.13422.7.camel@dv> References: <1195873630.7449.8.camel@dv> <1196029564.26555.9.camel@localhost.localdomain> <1196072924.26555.13.camel@localhost.localdomain> <1196080540.13422.7.camel@dv> Content-Type: text/plain Organization: Red Hat Inc. Date: Mon, 26 Nov 2007 13:54:45 +0100 Message-Id: <1196081685.26555.25.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 (2.12.1-3.fc8) Content-Transfer-Encoding: 7bit X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Cc: The development of GRUB 2 Subject: Re: [PATCH] Fix for linker build ID in Fedora 8 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Nov 2007 12:54:58 -0000 On Mon, 2007-11-26 at 07:35 -0500, Pavel Roskin wrote: > Hello! > > On Mon, 2007-11-26 at 11:28 +0100, Lubomir Kundrak wrote: > > > > I attach the patch I use. The first hunk is basically the same as yours, > > > the second one is self-explanatory. > > > > Actually, the first hunk should better look like this: > > http://lists.gnu.org/archive/html/grub-devel/2007-11/msg00187.html > > The objcopy test exists to detect certain breakage in objcopy. I'm not > sure that testing it in the condition that it only copies .text is > sufficient to find the original problem. Surely, that will need some > software archeology. The test comes from GRUB 1. Anyway, I'll rather > test objcopy under conditions close to those used in the build process. To be honest, I'm not completely sure either. > And what's the build ID for? Why do we want to keep it? It basically makes it possible to match an executable or library with its core dump and sources it was compiled for. The latter is achieved by placing the sources to build-specific directory. In Fedora and Red Hat Enterprise Linux, debugging information (debugging symbols and source code) are packged together in -debuginfo packages. Since Fedora 8 it is for example possible to comfortably find the debugging information and respective binary package when everything you have is the core dump. You can have multiple versions debugging informations for different builds of the same package installed at the same time and debugger will find the matching code. Moreover, package that doesn't link with build id won't build in our build system, unless you work around it (which would you do for example if you were building encumbered binary-only package, which is definitely not the case). -- Lubomir Kundrak (Red Hat Security Response Team)