dl-load.c suggestion
Ulrich Drepper
drepper@cygnus.com
Fri May 22 23:39:00 GMT 1998
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 `------------------------
More information about the Libc-hacker
mailing list