From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24729 invoked by alias); 8 Aug 2008 15:34:35 -0000 Received: (qmail 24717 invoked by uid 22791); 8 Aug 2008 15:34: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; Fri, 08 Aug 2008 15:33:58 +0000 Received: by hiauly1.hia.nrc.ca (Postfix, from userid 1000) id 7EA6E4E7A; Fri, 8 Aug 2008 11:33:55 -0400 (EDT) Subject: Re: [patch] Only force private mapping of shared libraries in solib-som.c on HP-UX 10 and earlier To: brobecker@adacore.com (Joel Brobecker) Date: Fri, 08 Aug 2008 15:34:00 -0000 From: "John David Anglin" Cc: gdb-patches@sourceware.org In-Reply-To: <20080808104815.GA4936@adacore.com> from "Joel Brobecker" at Aug 8, 2008 02:48:15 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: <20080808153355.7EA6E4E7A@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/msg00207.txt.bz2 > This seems OK to me - commit at any time. Just a question: Can't we just > force private mapping on HP/UX 11 the same way we do for v10? Sure but doing so can change the behavior of a program. It makes the text of shared libraries writeable and changes the quadrant where the libraries are loaded. So, a bug that appears when shared libraries are not private can disappear when the libraries are private. The vla6.f90 testcase in the libgomp testsuite is a case in point ;) All HP/UX 11 versions with a fairly recent linker patch have enhanced support in chatr and the dynamic loader for making shared libraries private. This makes it easy to force all shared libraries private, or it can be done on a selective basis. My previous message about changing solib-pa64.c to do the same contained links to the HP/UX chatr and ld manpages (11i v3) that describes this support. The dl_header has not changed since HP/UX 10. Thus, it should be possible to use these features under HP/UX 11 to debug an application built and linked on HP/UX 10. Dave -- J. David Anglin dave.anglin@nrc-cnrc.gc.ca National Research Council of Canada (613) 990-0752 (FAX: 952-6602)