This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: dl-load.c suggestion


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]