This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Re: dl-load.c suggestion
- To: Roland McGrath <roland@frob.com>
- Subject: Re: dl-load.c suggestion
- From: Ulrich Drepper <drepper@cygnus.com>
- Date: 22 May 1998 23:36:06 -0700
- Cc: GNU libc hacker <libc-hacker@gnu.org>
- References: <199805222348.TAA21166@baalperazim.frob.com>
- Reply-To: drepper@cygnus.com (Ulrich Drepper)
Roland McGrath <roland@frob.com> writes:
> > You mean:
> >
> > - mmap the entire file
>
> No, just all the segments as a contiguous region.
> Please note how the function already works; I think you have forgotten.
This is not what I meant. I thought about mapping the entire file
immediately when we have to get the header. With Richard's patch we
now simply load it. Anyhow, I don't really see how one can load all
segments in one region. The boundaries between code (R-X) and data
(RW-) is in the object file right where the code ends. There is no
padding for page size and the loader has to pay attention of loading
the last code/first data page twice. All the addresses are computed
based on this and therefore it's not possible to use one single
region.
-- Uli
---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com `------------------------