From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4756 invoked by alias); 6 Aug 2008 20:09:35 -0000 Received: (qmail 4744 invoked by uid 22791); 6 Aug 2008 20:09:34 -0000 X-Spam-Check-By: sourceware.org Received: from hiauly1.hia.nrc.ca (HELO hiauly1.hia.nrc.ca) (132.246.100.193) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 06 Aug 2008 20:08:59 +0000 Received: by hiauly1.hia.nrc.ca (Postfix, from userid 1000) id 77A684E87; Wed, 6 Aug 2008 16:08:57 -0400 (EDT) Subject: Re: [patch] Don't set DT_HP_DEBUG_PRIVATE in solib-pa64.c To: mark.kettenis@xs4all.nl (Mark Kettenis) Date: Wed, 06 Aug 2008 20:09:00 -0000 From: "John David Anglin" Cc: drow@false.org, gdb-patches@sourceware.org, randolph@tausq.org In-Reply-To: <200808061948.m76JmOdf028185@brahms.sibelius.xs4all.nl> from "Mark Kettenis" at Aug 6, 2008 09:48:24 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <20080806200857.77A684E87@hiauly1.hia.nrc.ca> 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: 2008-08/txt/msg00139.txt.bz2 > Do you run chatr on the executable or on the shared library to do this? Running chatr on the executable with "+dbg enable" causes all the shared libraries used by the executable to be mapped private (except for the dynamic loader). I've not tried it on a shared library but it looks like from the documentation and chatr's output that this would allow private mapping for a specific set of libraries. > If you need to change the shared library, then I don't think this is > the right thing to do since the user may not have write permission to > do that. The normal situation is to do it on the executable. If a user wanted to use "+dbg enable" on a system library, I believe it would be possible to copy the library and use LD_LIBRARY_PATH to select the copy. In the 32-bit runtime, this is tricker since library paths are hardcoded. > Otherwise, I think this is ok (but perhaps the message that suggests > using chatr can be improved). I'll think about that. Dave -- J. David Anglin dave.anglin@nrc-cnrc.gc.ca National Research Council of Canada (613) 990-0752 (FAX: 952-6602)