From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16120 invoked by alias); 21 Jul 2009 18:08:31 -0000 Received: (qmail 16110 invoked by uid 22791); 21 Jul 2009 18:08:31 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 21 Jul 2009 18:08:24 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id EABFD1070A; Tue, 21 Jul 2009 18:08:21 +0000 (GMT) Received: from caradoc.them.org (209.195.188.212.nauticom.net [209.195.188.212]) by nan.false.org (Postfix) with ESMTP id A944E104B2; Tue, 21 Jul 2009 18:08:21 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1MTJlE-00034t-C2; Tue, 21 Jul 2009 14:08:20 -0400 Date: Tue, 21 Jul 2009 18:13:00 -0000 From: Daniel Jacobowitz To: Aleksandar Ristovski Cc: Pedro Alves , gdb-patches@sources.redhat.com Subject: Re: [patch] solib do not add ldd if in libc Message-ID: <20090721180820.GA11667@caradoc.them.org> Mail-Followup-To: Aleksandar Ristovski , Pedro Alves , gdb-patches@sources.redhat.com References: <4A65DAB3.1040803@qnx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4A65DAB3.1040803@qnx.com> User-Agent: Mutt/1.5.20 (2009-06-14) 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: 2009-07/txt/msg00518.txt.bz2 On Tue, Jul 21, 2009 at 11:11:47AM -0400, Aleksandar Ristovski wrote: > I, unfortunately, can not verify that it doesn't break solaris... I > think it doesn't, but I couldn't test it (AFAIK, solaris has dynamic > linker in a separate shared library and so it should not be found in > the so list, but I don't have Solaris to verify this). You'll break Linux with prelinking; lm_addr is an offset, so on a prelinked system everything ought to load with offset zero. Also, by clearing both lm and ldsomap, you cause this check to run over and over again instead of just once. IIRC you can leave ldsomap set. -- Daniel Jacobowitz CodeSourcery