Re: [patch] Don't set DT_HP_DEBUG_PRIVATE in solib-pa64.c

Mark Kettenis
2008-08-06T19:49:14Z

> Date: Wed, 6 Aug 2008 15:24:12 -0400 (EDT)
> From: "John David Anglin" <dave@hiauly1.hia.nrc.ca>
>
> Hi,
>
> > One thing that I have noticed is that the shared libraries are always
> > forced private which makes them writeable. I recently had a program
> > which dropped core when the library code was shared but not when they
> > were private.
>
> The patch below implements my suggestion to not set DT_HP_DEBUG_PRIVATE
> in solib-pa64.c as the user can do this with chatr (or pxdb). Tested
> on hppa2.0w-hp-hpux11.11.

Do you run chatr on the executable or on the shared library to do this?

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.

Otherwise, I think this is ok (but perhaps the message that suggests
using chatr can be improved).

Mark