[patch] Only force private mapping of shared libraries in solib-som.c on HP-UX 10 and earlier

John David Anglin dave@hiauly1.hia.nrc.ca
Fri Aug 8 15:34:00 GMT 2008


> 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)



More information about the Gdb-patches mailing list