From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19550 invoked by alias); 4 Jan 2010 11:54:51 -0000 Received: (qmail 19531 invoked by uid 22791); 4 Jan 2010 11:54:50 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (212.99.106.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 04 Jan 2010 11:54:46 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 2B88F290004; Mon, 4 Jan 2010 12:54:44 +0100 (CET) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OMkT1WhuWSXg; Mon, 4 Jan 2010 12:54:43 +0100 (CET) Received: from ulanbator.act-europe.fr (ulanbator.act-europe.fr [10.10.1.67]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id 94FBD290001; Mon, 4 Jan 2010 12:54:43 +0100 (CET) Subject: Re: Regression on prelinked-sepdebug-shlibs Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=us-ascii From: Tristan Gingold In-Reply-To: <20100104102317.GA27009@host0.dyn.jankratochvil.net> Date: Mon, 04 Jan 2010 11:54:00 -0000 Cc: gdb-patches@sourceware.org Content-Transfer-Encoding: quoted-printable Message-Id: <6B2A3106-D0C5-454A-AB03-C7A7D5F19475@adacore.com> References: <20091225200440.GA3747@host0.dyn.jankratochvil.net> <3346A919-88F5-457A-B6D1-0A35EB2C17F1@adacore.com> <20100104102317.GA27009@host0.dyn.jankratochvil.net> To: Jan Kratochvil X-IsSubscribed: yes 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: 2010-01/txt/msg00053.txt.bz2 On Jan 4, 2010, at 11:23 AM, Jan Kratochvil wrote: > On Mon, 04 Jan 2010 10:50:49 +0100, Tristan Gingold wrote: >> my understanding is that separate debug info and its binary file have the >> same ordering of sections, or to be more precise, the separate debug info >> only appends new debug sections to the binary file while making content >> sections empty. >=20 > $ rpm -V bash bash-debuginfo; rpm -qf /bin/bash /usr/lib/debug/bin/bash.d= ebug > bash-4.0.35-2.fc12.x86_64 > bash-debuginfo-4.0.35-2.fc12.x86_64 [...] Ok, looks like we can't assume that they have identical sections: objcopy l= ooks unable to keep ELF specific sections. >=20 >> Also, if you look at symfile.c:reread_separate_symbols (before my patch), >> there was this code: >=20 > OK, so reread_separate_symbols was wrong. This rereading code needs > a rewrite - to unify it with the common loading code. Unification is already done (was part of my patch). >> BTW, where can I find prelink ? Looks like it is not available on RHEL = S 5.2 >=20 > It has been always provided in RHELs, Fedoras etc.: Thanks. /usr/sbin was not in my path. >> The main drawback of addr-table is that is it much slower. >=20 > IMO this kind of performance difference is negligible to be considered. > It is some overhead per-section while now GDB has many overheads per-symb= ol. Ok, maybe we can use addr-table instead. I am not a big fan of this approa= ch but we may improve this later. Thanks, Tristan.