This is the mail archive of the
libc-hacker@cygnus.com
mailing list for the glibc project.
Re: coping with PT_PHDR not being in loaded segment
- To: Roland McGrath <roland@frob.com>
- Subject: Re: coping with PT_PHDR not being in loaded segment
- From: Ulrich Drepper <drepper@cygnus.com>
- Date: 06 May 1999 23:59:48 -0700
- Cc: GNU libc hacker <libc-hacker@gnu.org>, Franz.Sirl-kernel@lauterbach.com, ian@cygnus.com
- References: <199905062104.RAA04256@baalperazim.frob.com>
- Reply-To: drepper@cygnus.com (Ulrich Drepper)
Roland McGrath <roland@frob.com> writes:
> I think I agree with Ian's analysis here. The current libc (elf/dl-load.c)
> still behaves the way he described for 2.0.7. If the phdr is not visible
> in the loaded image, then I think we should make a malloc'd copy to save in
> the l_phdr pointer.
I've made appropriate changes now. They'll be in 2.1.1pre3. But I
nevertheless think that adding the phdr to a segment is a good idea.
The phdr is always needed so why not load it?
--
---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com `------------------------